Cursor’s agent can work on your code, but pages behind your logins are harder to reach. That matters when you want it to check a dashboard, pull a report, fill a form in an internal tool, or review a staging site with your real logins.
Chrome Relay lets the agent use your everyday Chrome, signed in as you, in background tabs. Cursor runs commands from its terminal through the open-source agent-browser CLI by Vercel Labs.
There are four reasons I’d use this approach:
- It works with the agent you already use. Chrome Relay supports Cursor, Claude Code, Codex, and Paseo, rather than being tied to one AI company’s extension.
- It stays in the background. Tabs open inactive in a collapsed “Agents” tab group. No focus switch, nothing moving on screen.
- The agent can follow the whole task. Popups and “open in new tab” become its own hidden tabs. It clicks through Google sign-in hops when you’re already signed in, and stops to ask when a password, passkey, or 2-step verification is needed.
- It’s fast because Chrome is already open. About 0.15 seconds per command and about 0.6 seconds to open a page.
A browser session looks like this:
agent-browser --cdp "$(chrome-relay url [email protected])" open https://app.example.com/
agent-browser snapshot -i
agent-browser click @e5
agent-browser close
The snapshot lists the page’s buttons, links, and fields, each with a ref such as @e5 that the agent can use.
Setup
Setup is once per Mac and takes about two minutes. The fastest route is to paste the setup prompt from the Chrome Relay site (agent-chrome-relay.aindeev.com) into Cursor and let the agent do it.
To set it up by hand:
-
Have macOS, Google Chrome, and Node.js 20+ installed, then run:
npm i -g agent-browser git clone https://github.com/aindeev/agent-chrome-relay cd agent-chrome-relay bin/chrome-relay setup -
In each Chrome profile you want agents to use, open
chrome://extensions, turn on Developer mode, click Load unpacked, and select the clone’sextensionfolder. -
Check the setup:
chrome-relay doctor
Then point Cursor at the skill file. Add a line like this to your Cursor rules or AGENTS.md, replacing <path> with the actual path:
For any browser step that needs my logins, follow <path>/agent-chrome-relay/skill/SKILL.md.
Safety and limits
Chrome Relay uses a per-Mac secret. Only Claude Code, Codex, Cursor, and Paseo processes may connect; connections from web pages are refused. Agents never type credentials. Every action goes into a local audit log, with typed text stored only as a length.
This is not a boundary against malware already running as you.
It’s currently macOS + Chrome only, and the extension is loaded unpacked. Chrome shows its “started debugging this browser” bar while agents work. Chrome Relay is free and MIT licensed.
I’d like to hear how this works with your Cursor tasks, especially where setup or a browser step gets stuck.