Comment and Edit on any live page, with your agent.
Anchor Comments and Edits to any block, preview Variants from your coding agent on the live page, and track what needs you in one Inbox.
Add to Chrome · Open web app · Watch the film (0:38)
Pick a heading, paragraph, button, image, or the whole page, including inside embedded frames. Threads stay anchored to that block while teammates reply, react, mention people, share syntax-highlighted code blocks with a Copy button, and resolve the thread when done.
Describe an Edit in plain words, or make hands-on tweaks in Edit page mode and send them as a batch. Your agent can answer with Variants you compare directly on the live page: previews are indicative, so where source is known the real render is the truth, and on a page nobody can change a picked variant stays applied for you as a kept edit (on for you, off for everyone else until they switch it on).
Write @agent in any thread, create an Edit, or pick a variant on a site whose source is known, then click Copy for agent to put a short pointer on your clipboard. Your agent connects over MCP, reads the thread and block, replies, posts Variants, or updates your source and marks the Edit implemented. It acts as you, and everything it writes shows under your name with an "agent" tag.
The Inbox shows what needs you, what waits on others or an agent, and what recently resolved across every page and space. Open it from the extension's command bar (Ctrl+.), the toolbar popup, or the web app at app.onlay.dev, which works on a phone.
Everyone starts with a personal space that only they can see. Create shared workspaces (if your deployment allows it) and invite teammates by email (no email is sent; they join at their next sign-in, or right away if they already have an account), or share a single thread by email with an outsider so a guest can read, reply, react, and pick variants without seeing anything else in the space.
Onlay runs in Chrome, Edge, Brave, and other Chromium browsers. Add to Chrome from the Chrome Web Store, then pin Onlay in your toolbar.
If you prefer the unpacked build, download onlay-extension.zip and follow the Developer mode steps at onlay.dev/install.
Click the Onlay toolbar button and choose Sign in, or sign in at app.onlay.dev/app/ with an email code, Google, or a Microsoft personal, work, or school account. The extension signs in through a tab on app.onlay.dev, and your first sign-in creates your personal space. Open any page, press Ctrl+. or click the launcher, and pick a block.
Install the plugin once per agent. The first tool call opens Onlay's sign-in in your browser (your agent client must support OAuth for remote MCP servers).
Claude Code
claude plugin marketplace add malhashemi/onlay
claude plugin install onlay@onlayCodex
codex plugin marketplace add malhashemi/onlay
codex plugin add onlay@onlayOther agents: install the skill with npx skills add malhashemi/onlay --skill onlay, then add a remote (Streamable HTTP) MCP server named onlay at https://app.onlay.dev/mcp. See plugin/README.md.
Tip
An agent can change a page's source only when Onlay knows which file each block came from. On a site you develop, add the source stamp: a dev-only build plugin for Vite, Next, SvelteKit and Astro, installed with npm i -D https://onlay.dev/download/onlay-stamp.tgz (or pnpm add -D, bun add -d). The agent offers to add it when an Edit reads Source: unknown; the configuration is in packages/stamp/README.md.
One Cloudflare Worker bridges the Chromium extension, the web app, and MCP coding agents to a D1 directory and one isolated Durable Object per space.
Onlay separates page isolation, workspace state, and agent access into four pieces:
- Extension overlay (
packages/extension): An isolated content script mounts in a closed shadow root withadoptedStyleSheets, intercepting keyboard, input, and clipboard events while focus is inside the overlay so host pages never see your typing. The service worker holds one WebSocket per space and feeds synced snapshots to the overlay as a pure view. - One Cloudflare Worker (
packages/server): One Worker serves two origins.app.onlay.devhandles sign-in, the web app,/api, spaces, and/mcp;onlay.devserves only static public pages and downloads and never reads or sets a credential. - D1 directory and per-space Durable Objects: Cloudflare D1 holds people, hashed sessions and tokens, spaces, memberships, invitations, shares, and the control outbox. Each space runs in its own SQLite-backed Durable Object storing threads, captures, variant sets, and durable sessions. Every request resolves one credential at the edge, runs one authorization read against D1, and forwards a verified caller header to the space.
- MCP server (
/mcp): Coding agents connect over Streamable HTTP with WorkOS AuthKit OAuth and act as their person, never as separate agent accounts. An agent inherits its person's exact access, claims pending items on a 10-minute lease (take), and every write carriesagent: true.
- Page addresses stay local until needed. Browsing sends no page content. The extension sends a page's address to Onlay only when you start a thread on that page (including the first thread on a site) or visit pages of a site where one of your spaces already has threads so it can show them. On every other site, nothing about the page is sent.
- Page text and other people's words are marked as data. Anything taken from a page or written by another person (or their agent) reaches an agent wrapped in explicit untrusted-data framing and labeled as data, not instructions. Agents cannot create new threads on their own, and a guest's
@agentnever starts agent work. - Retention and data use. Open threads stay until resolved. Resolved threads, with their messages and captures, are deleted 30 days after resolution. Onlay does not sell data or use it for advertising. See onlay.dev/privacy for full details.
One redaction policy for all uploaded markup
Creating or updating a thread uploads markup and a screenshot of only the block or page that thread is about. Everything that leaves the browser passes through one redaction policy: form values, textarea text, hidden inputs, page data-* attributes (data-onlay-* stays), comments from the page, unrendered text, and attributes whose names contain token, secret, nonce, csrf, auth, or session are removed, and URLs inside markup are cut to their origin and path. Screenshots still show whatever pixels are visible inside the chosen block.
Automatic variant captures
When you request an Edit and your agent answers with Variants, the extension in the Edit author's own browser automatically captures and uploads a screenshot and structured capture of that same block with each variant applied, without a further click. This runs only in the Edit author's browser, only for variants written by them or their agent, and never for a variant with refused operations. For each variant written by the Edit author or their agent, that browser also tells Onlay how many steps apply to the captured, redacted copy of the block, which do not and why, and whether that copy was reduced to fit: step numbers, counts and reasons only, not page content, readable by the people who can read the Edit and their agents.
Live variant policy
Before a variant preview touches a live page, every operation is checked against PagePolicy and any disallowed operation is refused. Programs may load resources only from origins the page already loads from (plus data:image/ in styles) and link only to http, https, mailto, and tel (with noopener noreferrer, no-referrer, and no ping). Styles forbid custom properties, @import, expression(, -moz-binding, and behavior. Programs may never set on* handlers, style, srcdoc, action, formaction, http-equiv, integrity, nonce, is, or a meta tag's content, and may never insert script, style, link, meta, base, frames, embeds, or form controls. A program can still restyle an allowed block to cover the viewport; previews remain indicative until verified against real source.
You can run the whole stack on one machine with Bun 1.3 and Chrome: the Cloudflare Worker, space Durable Objects, a local D1 database on http://localhost:8787, the web app, the landing page, and an unpacked extension pointed at localhost. Local development uses a built-in dev sign-in stub (a one-field email form in the browser and Bearer dev:<email> for local MCP clients) that works only on loopback, so you can test the entire product with no external accounts.
bun install
cp packages/server/.dev.vars.example packages/server/.dev.vars
# set SESSION_SECRET in packages/server/.dev.vars to a fresh value: openssl rand -base64 48
# optional: SUPER_ADMINS=you@example.com lets you create workspaces
bun run --filter @onlay/server dev:db # the local D1: once, and after each new migration
bun run --filter @onlay/server dev # builds the web app and landing page, then serves http://localhost:8787
ONLAY_SERVER_ORIGIN=http://localhost:8787 bun run build:extThen open chrome://extensions, turn on Developer mode, Load unpacked packages/extension/dist, and choose Sign in in the toolbar popup: the dev form signs you in as any email you type. Use localhost throughout, not 127.0.0.1. To try an agent locally, point an MCP client at http://localhost:8787/mcp with the header Authorization: Bearer dev:<email>.
Running your own hosted instance requires a Cloudflare account (Workers, D1, and Durable Objects) and a WorkOS account with AuthKit configured for web sign-in and OAuth MCP clients. You provision a D1 database, apply the migrations, configure your service and site origins, set the required secrets (WORKOS_API_KEY, SESSION_SECRET, SUPER_ADMINS, plus optional VAPID keys for web push), and build the extension against your service origin. The complete one-time setup runbook is in packages/server/README.md.
The outline, from packages/server
Start your Worker config from packages/server/wrangler.example.jsonc: your origins, WorkOS client id and AuthKit issuer, extension ids, and database id. The runbook lists the WorkOS dashboard settings (redirect, sign-out and MCP resource URIs) that must match.
bunx wrangler login
bunx wrangler d1 create <your-database> # put its id in your Wrangler config
bunx wrangler d1 migrations apply <your-database> --remote
bunx wrangler secret put WORKOS_API_KEY
bunx wrangler secret put SESSION_SECRET # openssl rand -base64 48
bunx wrangler secret put SUPER_ADMINS # comma-separated emails
(cd ../.. && ONLAY_SERVICE_ORIGIN=https://app.example.com bun run build:web)
(cd ../.. && ONLAY_SERVER_ORIGIN=https://app.example.com ONLAY_SITE_ORIGIN=https://example.com bun run build:ext:release)
bunx wrangler deploy --var SHA:$(git rev-parse HEAD)Never deploy the dev environment: it is the only one with the dev sign-in stub.
| Package | What it does |
|---|---|
packages/protocol |
Shared schemas, wire frames, payload limits, untrusted-text types, and the fenced code-block grammar. |
packages/kernel |
Pure state reducers for sessions, interactions, admission, agent work, kept edits, and attention. |
packages/render |
Portable block renderer, live variant preview engine, code-block highlighter, and shared UI helpers for the clients. |
packages/server |
Cloudflare Worker serving the API, sign-in, D1 directory, per-space Durable Objects, MCP server, web app, and public site. |
packages/stamp |
Dev-only build plugins for Vite, Next.js, SvelteKit, and Astro that mark blocks with their source file and line. |
packages/extension |
Chromium Manifest V3 extension with the page overlay, command bar, toolbar popup, options page, and service worker. |
packages/pwa |
Web app at /app/ for the cross-space Inbox, threads, replies, and account or workspace settings on desktop and phone. |
packages/site |
Public landing page with an in-memory simulated overlay that sends and stores nothing. |
e2e |
Playwright end-to-end suites covering smoke flows, typing isolation, strict CSP, embedded frames, and capture fidelity. |
plugin |
Agent plugin manifest, MCP server configuration, and the onlay skill for coding agents. |
Contributions are welcome, from bug fixes and browser edge cases to framework stamps and documentation. Read CONTRIBUTING.md before opening a pull request, keep changes focused, and run the repository checks locally. For larger architectural or product proposals, open an issue first to align on scope.
Report security vulnerabilities through GitHub's private vulnerability reporting on this repository rather than opening a public issue. See SECURITY.md for what is in scope and what information helps us reproduce a report.
Built on Bun and Cloudflare Workers, with sign-in by WorkOS. Variants descend from pbakaus/impeccable's live variant mode.
Onlay is released under the MIT License, copyright © 2026 M. Adel Alhashemi. The MIT License does not grant rights to the Onlay name, logo, or brand marks.
