cd /news/ai-agents/show-hn-chrome-relay-background-tabs… · home › topics › ai-agents › article
[ARTICLE · art-148667] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: Chrome Relay – background tabs in your real Chrome for coding agents

Developer aindeev released Chrome Relay, an open-source tool that lets coding agents including Claude Code, Codex, Cursor and Paseo drive the user's everyday Chrome with real logins from the command line in background tabs, at roughly 0.15 seconds per command. The tool requires macOS, Google Chrome, Node.js 20+ and Vercel Labs' agent-browser, and is opt-in: it installs no extension automatically and runs only on Macs whose owner set it up. Chrome Relay authenticates each agent connection with a per-Mac secret stored in ~/.chrome-relay/token and an allowlist of agent apps, and refuses connections carrying a browser Origin header, though the author notes it is not a boundary against malware already running as the user.

read5 min views7 publishedOct 10, 2026
Show HN: Chrome Relay – background tabs in your real Chrome for coding agents
Image: Michielbdejong (auto-discovered)

Website: https://agent-chrome-relay.aindeev.com

Lets your coding agents (Claude Code, Codex, Cursor, Paseo) use your everyday Chrome, with your real logins, from the command line, in background tabs: nothing takes focus, no dialogs, ~0.15s per command.

agent-browser --cdp "$(chrome-relay url you@company.com)" open https://app.example.com/
agent-browser snapshot -i          # the page's buttons, links and fields, each with a ref like @e5
agent-browser click @e5
agent-browser close

It's opt-in: nothing installs the extension for you, and it only runs on Macs whose owner set it up.

agent-browser (CLI) ──ws──▶ relay (127.0.0.1:9333, LaunchAgent) ──ws──▶ Chrome Relay extension ──chrome.debugger──▶ agent tab
  • Extension (extension/ , MV3, one per Chrome profile you load it in): opens each agent tabinactive in a collapsed "Agents" tab group and runs DevTools commands in it viachrome.debugger . No remote-debugging port, so Chrome never shows "Allow remote debugging?". Chrome does show "Chrome Relay started debugging this browser" while agents work.
  • Relay (relay/relay.mjs ): a DevTools endpoint per agent. Each agent sees and controls only the tabs it opened; commands that could raise or focus the browser are swallowed.
  • CLI (bin/chrome-relay ): setup, the connection URL, diagnostics, audit trail.

Fastest: paste this prompt into Claude Code, Codex or Cursor and let your agent do it. By hand:

Needs macOS, Google Chrome, Node.js 20+ and agent-browser (npm i -g agent-browser).

git clone https://github.com/aindeev/agent-chrome-relay
cd agent-chrome-relay
bin/chrome-relay setup     # secret, background service, identities, `chrome-relay` on PATH, Claude Code skill

Then, in each Chrome profile agents should use: open chrome://extensions, turn on Developer mode, Load unpacked, and pick the extension folder of your clone. Check with chrome-relay doctor.

After git pull: chrome-relay update (restarts the relay, reloads the extension in every profile). To remove: chrome-relay uninstall, then remove the extension in each profile.

Claude Code: setup links the skill (skill/SKILL.md) into ~/.claude/skills/chrome-relay, so every repo gets it. Codex, Cursor and others: point them at the same file, e.g. a line in your global ~/.codex/AGENTS.md: "For any browser step that needs my logins, follow <path>/agent-chrome-relay/skill/SKILL.md." A repo's CLAUDE.md/ AGENTS.md only needs a one-line pointer to the skill.

Two checks on every agent connection:

  1. This Mac's secret : generated at setup in~/.chrome-relay/token (mode 600) and embedded in the URL thatchrome-relay url prints.
  2. An allowed agent app : the connecting process must come from Claude Code, Codex, Cursor or Paseo. The relay looks the process up (lsof ,ps ) and checks the markers those apps set in their child processes (CLAUDECODE ,CODEX_* ,CURSOR_* ,PASEO_AGENT_ID ), then its parent processes.

Connections that carry a browser Origin header (a web page) are refused even with the secret. Only this checkout's extension may connect as the extension: Chrome derives an unpacked extension's ID from its folder, setup records that ID in ~/.chrome-relay/config.json, the relay checks the connection's Origin: chrome-extension://<id> (which pages cannot fake), and the connecting process must be Chrome.

This keeps other local tools, web pages and accidents out. It is not a boundary against malware already running as you, which could read the secret and fake the markers.

Agents never type credentials. When a site bounces through Google and the right account is already signed in, the extension clicks the account and Continue/Allow itself (page scripting, so it works even with 1Password's frame on the page). A password, passkey, 2-step screen or signed-out account stops the hop, and the agent gets SIGN-IN NEEDED: ... and asks you to sign in in your own window.

Which Google account a site uses comes from ~/.chrome-relay/identities.json (chrome-relay identities): your Chrome profiles (filled in by setup), optional hand-set sites.rules, and sites.learned, which the relay fills in after each successful hop. Default: the profile's own account.

Every agent action is recorded in ~/.chrome-relay/audit/YYYY-MM-DD.jsonl; read it with chrome-relay audit: who connected (app, Claude/Paseo session id, working folder, AGENT_BROWSER_SESSION), pages, clicks with positions, special keys, the agent's own scripts, screenshots, uploads, popups, sign-in clicks and blocked pages. Typed text is stored only as a character count, and URLs lose their query string.

  • Popups and target=_blank links open as new hidden tabs owned by the same agent; popup sign-in flows thatpostMessage back to the opener and close themselves keep working. Message origins are the ones the relay saw each tab load (never what the page claims), andtargetOrigin is enforced. A safety net adopts any tab an agent page opens anyway and hands focus back to the tab you were on.
  • 1Password : Chrome drops an extension's debugger from a page that contains another extension's frame (1Password's menu on login forms). The agent's commands wait while the extension re-attaches.
  • Self-cleaning : tabs of an agent silent for 30 minutes are closed. When the relay restarts, the extension closes the agent tabs it opened (tracked by tab id, so your own tab groups are never touched).
  • Real input in background tabs : focus emulation is on in every agent tab, so clicks and typing land.
cd relay && npm install && npm test     # who may connect: secret, allowed apps, Chrome-only extension, audit

Logs: chrome-relay logs (~/.chrome-relay/relay.log). Testing extension changes: edit extension/, then chrome-relay update. CHROME_RELAY_HOME and CHROME_RELAY_PORT override the data folder and port.

Made by Alexey Indeev, co-founder and CTO of Spare. I write about building more with AI, whether you code or not, at The Leveraged Mind.

Questions, ideas or bugs: open an issue or reach out on X.

MIT. See LICENSE.

── more in #ai-agents 4 stories · sorted by recency
── more on @chrome relay 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-chrome-relay…] indexed:0 read:5min 2026-10-10 · —