Skip to content
trajchePublic

About

Plugin for Chrome, Firefox, Edge, Arc that allows Claude Code, Codex, Cursor to control tabs that you allow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tab Driver

Let AI agents drive your real browser, with your logins, while you watch.

Claude Code, Codex, Cursor and other MCP agents open tabs, read pages, click, type, upload and download in Chrome, Arc, Brave, Edge or Firefox. You step in for logins and 2FA; they do the clicking.

agent ─MCP─▶ tabdriver mcp ─unix socket─▶ tabdriver (native host) ─▶ browser extension

One Go binary is both the MCP server and the native messaging host. No ports, no API keys.

Install

1. App

# macOS
brew tap trajche/tabdriver https://github.com/trajche/tabdriver && brew trust trajche/tabdriver && brew install tabdriver

# macOS, Linux
curl -fsSL https://raw.githubusercontent.com/trajche/tabdriver/main/install.sh | sh
# Windows
irm https://raw.githubusercontent.com/trajche/tabdriver/main/install.ps1 | iex
# or: scoop bucket add tabdriver https://github.com/trajche/tabdriver; scoop install tabdriver

Each of these registers the app with your browsers. Or download it directly: macOS arm64 · macOS x64 · Linux x64 · Linux arm64 · Windows x64 · Windows arm64, then run tabdriver install.

2. Extension

  • Firefox 142+: open tabdriver-firefox.xpi in Firefox (signed by Mozilla, updates itself)
  • Chrome, Arc, Brave, Edge: unzip tabdriver-chrome.zip, then chrome://extensions → Developer mode → Load unpacked

The popup dot turns green when the extension reaches the app.

3. Agent

claude mcp add --scope user tabdriver -- tabdriver mcp
codex mcp add tabdriver -- tabdriver mcp

Run tabdriver without arguments to print the config for other agents.

Use

Open https://bank.example.com, wait for me to log in, then download the August transactions as CSV.

  • Agents act only on tabs they opened or that you allowed (popup, or Allow in the page).
  • Controlled tabs show "Agent is controlling this tab" with a Stop button. The agent's pointer glides to everything it clicks or types into, so you can follow along (switch it off in the popup).
  • wait_for_user hands the tab to you and waits for Done. Raise your agent's tool timeout for it (Claude Code MCP_TOOL_TIMEOUT, Codex tool_timeout_sec).
  • In Firefox, agents work in the background: their tabs open behind yours, and screenshots, clicks and typing don't switch tabs or take focus. When one needs you, the toolbar button shows ! and its popup takes you to the tab. Turn off Work in the background in the popup to have tabs come to the front. Other browsers bring the tab to the front for new tabs, screenshots and prompts.
  • Several agents can work at once, each in its own tabs.
  • With Arcsidebar in Firefox, controlled tabs show a robot in the sidebar (blinking while the agent works), and right-clicking a tab lets agents take it or stops them. A line under the tab's title says what the agent is doing — what it told you with set_status ("Checking backlinks"), or else the command it is running ("Clicking", "Reading the page") — and "Done" when it gives the tab back.

Tools

browser_status select_browser list_tabs open_tab close_tab navigate request_tab_access release_tab set_status snapshot click type select_option press_key scroll wait_for get_text hover screenshot (path, annotate) console errors evaluate wait_for_user list_downloads wait_for_download upload_file record_start record_stop network network_request har_start har_stop dogfood_guide emulate_device

snapshot takes selector (part of the page) and diff (only what changed since the last one).

set_status tells the user what you are up to in a tab, in your own words; sidebars that support it show it under the tab's title. Set it when a task starts and when it changes.

Phone view

emulate_device shows a tab as on a phone or tablet (iphone, iphone-se, iphone-max, pixel, ipad, or any width × height, landscape): viewport, touch and mobile user agent. The page reloads, logins are kept, and every other tool sees the mobile page until device: "off".

  • Chromium uses the debugger's device emulation and shows the "being debugged" bar meanwhile.
  • Firefox gives extensions no access to its Responsive Design Mode, so the tab shows the site in a phone-sized frame, which also works in the background. Sites that forbid framing are allowed in that tab only: X-Frame-Options is dropped, and so is the Content-Security-Policy of hosts that use frame-ancestors (the agent is told which). CSS hover/pointer queries still see a mouse, and a page without a viewport meta tag isn't zoomed out.

Storyboards

record_start / record_stop record a flow as a storyboard: before every action, and after every page load, a screenshot shows a pointer with an icon for what happens where (click, type, choose, hover, scroll, key, file drop). You get storyboard.html (a numbered grid with captions), storyboard.md, recording.gif and the frames in steps/.

Dogfood

Exploratory QA of a web app in your own browser: the agent uses it like a user, logs bugs and UX problems, and writes a report with annotated screenshots and console errors for every issue. In Claude Code, run /mcp__tabdriver__dogfood https://app.example.com; other agents: "dogfood app.example.com" (they call dogfood_guide). The report goes to ./dogfood-output/. The agent hands you logins and 2FA, and doesn't pay, delete or send anything.

Network and HAR

Controlled tabs keep a log of their last 500 requests. network lists them (types: "xhr" for the API calls a page makes), and network_request shows one in full: headers, request body and, while recording, the response body. har_start / har_stop save a HAR 1.2 file with request and response bodies, and list the API endpoints the page called (GET api.example.com/invoices/:id ×3 [200]), a starting point for scripting a web service. Chrome shows a "being debugged" bar while it records.

Cookies, auth headers and password/token/card-like fields are redacted unless the agent passes includeSecrets: true. HAR files are written only to your disk, readable only by you.

Security

  • The browser launches the host only for this extension. Agents reach it through a Unix socket in ~/.tabdriver/hosts/ that only your user can open.
  • Page content is untrusted and may try to instruct the agent. Watch the tab, and don't let an agent approve payments.
  • Chromium's debugger permission is used only for evaluate and trusted clicks. Neither exists in Firefox.

Development

make install        # build from source (Go) into ~/.local/bin and register it
make test           # vet + end-to-end test in Chromium (needs Node)
make test-firefox   # same in a throwaway Firefox profile
make firefox chrome # extension packages in build/ (make firefox-sign: signed .xpi)
make snapshot       # local release build with GoReleaser, publishes nothing

Release: push a tag like v0.3.0. The workflow builds all binaries, publishes the GitHub release, updates the Homebrew cask and Scoop manifest, and signs the Firefox add-on with Mozilla (unlisted, so it isn't in the AMO catalogue) for updates.json.

Logs: ~/.tabdriver/host.log (host), stderr (MCP server).

License

MIT

About

Plugin for Chrome, Firefox, Edge, Arc that allows Claude Code, Codex, Cursor to control tabs that you allow.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages