Docs
Tabhand lets your AI agents use your own Chrome, in background tabs of their own. Here’s how to set it up, what your agents get, and what to do when something goes wrong.
Setup
You need macOS or Windows, Node.js 20 or later, and Chrome, Brave, Edge or Dia (Dia on macOS).
npx tabhand setup
Setup does four things:
- It installs Tabhand in
~/.tabhandand connects it to Chrome, and to Brave, Edge and Dia if you have them. - It adds Tabhand to every agent it finds, for all your projects. Each new session gets the browser tools, and the server’s instructions tell the agent when to use them.
- It asks before changing anything. Where an agent has its own
mcp addcommand, setup uses it. Otherwise it edits the agent’s settings file in place, keeping your comments, and backs up the original to~/.tabhand/backups. - It opens Tabhand in the Chrome Web Store, so you can add the extension, which you only do once.
Agent sessions that were already open pick up Tabhand after a restart.
Adding the extension
Add Tabhand from the Chrome Web Store. Setup opens the page for you and waits for Chrome. Once the extension connects, setup says All set.
Added the extension before running setup? That’s fine: it connects on its own once setup has run.
Brave, Edge and Dia
Add the extension from the same Chrome Web Store page in each browser you want agents to use. Edge asks you to allow extensions from other stores first. Each browser shows up to agents as one more profile: click the Tabhand icon in it, then its name at the top of the panel, and give it a name such as “Brave”, so agents can ask for it.
Arc isn’t supported: tab groups and screenshots never finish there, so Tabhand stays out of Arc even if you add the extension. Arc shuts down on December 22, 2026, and Dia works.
If you loaded Tabhand by hand before it was in the store, add the store version, then remove the old one, marked Unpacked, at chrome://extensions. npx tabhand status tells you if both are installed.
On Windows
- Get Node.js 20 or later from nodejs.org, or run
winget install OpenJS.NodeJS.LTS. - In PowerShell, if
npxsays running scripts is disabled on this system, runnpx.cmd tabhand setupinstead, or use Command Prompt. - Setup registers Tabhand with Chrome and Edge, and with Brave if you have it, under
HKEY_CURRENT_USERin the registry. Nothing needs an administrator. - Agents reach the helper over a named pipe, not a network port, and each has to show a token kept in your own AppData.
- Tested on Windows 11 with Chrome, and with Claude Code as the agent.
Updating
Chrome keeps the extension up to date. To update the rest of Tabhand, run setup again with the latest version.
npx tabhand@latest setup
Agents
Setup adds Tabhand to each of these that it finds on your computer:
- Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Qwen Code
- VS Code (Copilot), Copilot CLI, Kiro, Amp, Factory Droid, Warp, Junie, Antigravity
- Devin Desktop, Windsurf, Claude Desktop, Cline, Zed
To add it to only some of them:
npx tabhand setup --harness claude,codex
Any other app that speaks MCP can start the server itself with ~/.tabhand/bin/tabhand mcp. Add --label and --theme to choose the name and colors on the agent’s cursor, for example tabhand mcp --label Researcher --theme agent.
Using it
Ask your agent in plain words, like “check that signup works on staging” or “find the March invoice in my email”. It opens a tab of its own in the background and gets to work.
- Each agent session gets its own tab group, named after the agent, and its own cursor and tab icon.
- An agent can only reach the tabs it opened, plus tabs and popups those pages open.
- Agent tabs are muted, and Chrome never comes to the front.
- Tabhand tells agents to ask you before sending messages, posting, buying, deleting or changing settings.
- To pause every agent, click the Tabhand icon in Chrome’s toolbar, or Cancel on Chrome’s “started debugging” bar. Click the icon again to resume.
Several Chrome profiles
If Tabhand is in more than one Chrome profile, say work and personal, your agent sees each one and can work in the one you ask for: “use my Work profile”.
- To give a profile a name, right-click the Tabhand icon in that profile and choose “Name this profile”. You can type a name or fill in the profile’s Google email.
- If you don’t say which profile, agents use the one that connected first.
- Pause Tabhand in one profile and new work goes to a profile where it’s on.
- An agent that asked for a profile stays in it. If you pause that one, the agent tells you rather than switching to another account.
Tools
These are the tools your agent gets. Every one of them only works on the agent’s own tabs.
| Tool | What it does |
|---|---|
browser_open_tab |
Open a background tab in the agent’s tab group, optionally loading a URL, in the Chrome profile it asks for |
browser_navigate |
Load a URL in one of the session’s tabs |
browser_reload |
Reload a tab for fresh data, optionally skipping the cache |
browser_snapshot |
Read the page as an accessibility outline; things the agent can act on get refs like e123, including plain elements a page made clickable or draggable. On long pages, find reads just the part with some text and interactiveOnly just what can be acted on |
browser_click |
Click an element by ref, or by the text it shows |
browser_hover |
Move the pointer over an element (by ref or text) to reveal controls that only show on hover, and get a fresh snapshot with refs for them |
browser_drag |
Drag one element onto another, by ref or text: reorder lists, move cards between columns |
browser_type |
Type into a field, optionally clearing it first and pressing Enter after, or choose a dropdown option by its text |
browser_press_key |
Press a key or a combination such as Shift+Tab |
browser_scroll |
Scroll up or down |
browser_upload_file |
Attach files from your computer to a file field, or through a button that opens a file picker. No dialog appears. |
browser_handle_dialog |
Accept or dismiss a confirm or prompt dialog the page opened. Alerts are closed for you. |
browser_screenshot |
Screenshot a tab, even in the background |
browser_list_tabs |
List the session’s tabs, in every Chrome profile |
browser_list_profiles |
List the Chrome profiles that have Tabhand, by name, and whether each is on or paused |
browser_close_tab |
Close one of the session’s tabs |
Commands
| Command | What it does |
|---|---|
npx tabhand setup |
Install Tabhand, add it to your agents and connect Chrome |
npx tabhand status |
Check the install, the Chrome connection and each agent |
npx tabhand remove |
Take Tabhand out of every agent and delete its files |
Troubleshooting
Your agent says Chrome isn’t connected. Open Chrome and check that Tabhand is turned on at chrome://extensions. Then run npx tabhand status.
Your agent doesn’t have the browser tools. Restart the agent’s session. Sessions that were open before setup pick up Tabhand after a restart. npx tabhand status shows which agents have it.
Chrome never connects. The helper’s log says why. It’s at ~/Library/Application Support/tabhand/host.log on macOS and %LOCALAPPDATA%\tabhand\host.log on Windows, and it never contains URLs, page content or anything typed.
Chrome shows “Tabhand started debugging this browser”. That bar is how Chrome shows that an extension can control tabs. Tabhand only attaches to tabs its agents opened. Clicking Cancel pauses every agent.
Removing it
npx tabhand remove
This takes Tabhand out of every agent and deletes its files. Then remove the extension at chrome://extensions.
How Tabhand compares
- A Claude in Chrome alternative for any agent: every agent in your Chrome, not just Claude
- A Codex Chrome extension alternative: one extension for Codex, in the terminal too, and every other agent
- Tabhand vs Playwright MCP: skip the sign-in page
- Tabhand vs Browserbase: no meter, no logins to set up
- A Kernel.sh alternative: every site you’re signed in to, not three
- A Browser Use alternative: each coding agent in its own tabs, not your whole Chrome
- Tabhand vs Chrome DevTools MCP: signed in from the start, and in the background
Guides
- Let Claude Code use your logged-in Chrome
- Codex browser control in your logged-in Chrome
- Cursor browser automation in your logged-in Chrome
- A browser MCP for OpenCode, in your logged-in Chrome
- The best MCP servers for browser automation
- Let an AI agent log in to websites without your password
Contributing
Tabhand is open source under the MIT License. To work on it:
git clone https://github.com/tabhand/tabhand
cd tabhand
npm install
node bin/tabhand.mjs setup # builds dist/tabhand.mjs and installs it from this checkout
node bin/tabhand.mjs reload # after changing the extension's code
npm test runs the test suites. Issues and pull requests are welcome on GitHub.