Introduction
Let your AI agents use your real browser: your tabs, your logins, your extensions. A small native MCP server, with a Chromium extension and direct WebDriver BiDi support for Firefox-family browsers (beta), for OpenCode, Claude Code, Codex, Cursor and any other MCP client.
Agents get a browse MCP server. They open tabs in the background, read pages, click, type, take screenshots, capture network traffic and record the screen, in tabs grouped out of your way. When it's your turn (a login, a 2FA prompt, a payment), they hand the tab back to you and continue once you click Continue.
It works in Chrome, Edge, Brave, Arc, Helium, Vivaldi, Opera and Chromium (via the extension), and in Firefox, Firefox Developer Edition and Firefox Nightly (beta, directly over WebDriver BiDi, no extension needed).
Install
curl -fsSL https://opencode.ai/browse/install | bash
Or paste this into your agent: *"Set up browse so you can use my Chrome: run curl -fsSL https://opencode.ai/browse/install | bash"*. It sets browse up for the agent that ran it.
Other ways to install, all of which end in the same browse install:
| How | Command | Where browse lives, and what updates it | |
|---|---|---|---|
| Install script (macOS, Linux) | `curl -fsSL https://opencode.ai/browse/install \ | bash` | ~/.local/bin/browse ($XDG_BIN_HOME when set); updates itself |
| Install script (Windows) | `irm https://opencode.ai/browse/install.ps1 \ | iex` in PowerShell | %USERPROFILE%\.local\bin\browse.exe; updates itself |
| npx, bunx | npx @opencode/browse install | copied to ~/.local/bin/browse once; updates itself from then on | |
| npm | npm i -g @opencode/browse, then browse install | npm's global browse; browse runs npm install -g to update | |
| bun | bun add -g @opencode/browse, then browse install | ~/.bun/bin/browse; browse runs bun add -g to update | |
| pnpm, yarn, volta | pnpm add -g / yarn global add / volta install @opencode/browse, then browse install | that manager's browse; updated with the same manager |
There's always exactly one browse: a global package install is left to its package manager (nothing is copied next to it, and a leftover ~/.local/bin/browse from an earlier install is removed), and agents run the same browse your terminal does. If browse install finds another browse on your PATH it tells you which one and how to remove it.
The install script reads the channel's manifest from Anomaly's release service, downloads the binary for this computer and checks its size and SHA-256 before installing it. --channel stable|beta|dev picks the channel (stable by default); --version installs a specific version from npm, checked against npm's published SHA-512 integrity. With npm, @opencode/browse@dev is the dev channel. The npm package is a small Node launcher (Node 22+) that runs the native binary npm installed for your platform.
What browse install does
- Puts browse in place (see above) and adds
~/.local/binto your PATH when it copied browse there (--no-modify-pathskips that). - Adds the browse MCP server to your agents. In a terminal you get a picker: OpenCode and the agents found on this computer start checked (your last choice next time). Type to search all supported agents, ↑/↓ to move, Space or Tab to toggle, Enter to confirm. An agent running
browse installsets up itself. Without a terminal OpenCode is the default. Edits keep the comments and formatting of each agent's config, and a config that's a symlink (a dotfiles repo, Nix Home Manager) stays one: browse writes the file it points at. - Connects the extension. If no browser has browse yet, install opens it in the Chrome Web Store; add it, and install pairs it once it's there. If a browser already has it, install opens its setup page with a one-time pairing code in the link, so it pairs without copying anything. Over SSH or without a display it prints a code instead.
Then ask your agent to *"open news.ycombinator.com and tell me the top story"*. An agent that was already running needs a restart (or an MCP reload) to load browse.
browse install -a claude codex # these agents, without asking (--agent; names below)
browse install -a '*' # every supported agent, installed or not
browse install -y # every agent found on this computer
browse install --agent none # no agent: print the MCP entry to add by hand
Supported agents and their user-level config files
CONFIG is $XDG_CONFIG_HOME or ~/.config. APP is ~/Library/Application Support on macOS, %APPDATA% on Windows, or CONFIG on Linux. The paths below are defaults; a client's existing config or location override can apply.
| Agent (flag) | User config | Format / server key |
|---|---|---|
OpenCode (opencode) | CONFIG/opencode/opencode.json or .jsonc | JSONC · mcp.servers |
Claude Code (claude) | ~/.claude.json | JSON · mcpServers |
Claude Desktop (claude-desktop) | APP/Claude/claude_desktop_config.json | JSON · mcpServers |
Cursor (cursor) | ~/.cursor/mcp.json | JSON · mcpServers |
Codex (codex) | ~/.codex/config.toml | TOML · mcp_servers |
VS Code, including Copilot agent mode (vscode) | APP/Code/User/mcp.json | JSONC · servers |
Windsurf (windsurf) | ~/.codeium/windsurf/mcp_config.json or existing CONFIG/devin/mcp_config.json (APP/devin on Windows) | JSON · mcpServers |
Amp (amp) | ~/.config/amp/settings.json or .jsonc | JSONC · literal amp.mcpServers |
Antigravity (antigravity) | ~/.gemini/config/mcp_config.json | JSON · mcpServers |
Augment (Auggie CLI) (augment) | ~/.augment/settings.json | JSON · mcpServers |
Cline (cline) | ~/.cline/data/settings/cline_mcp_settings.json; also recognizes the existing VS Code extension file in APP/Code/User/globalStorage/saoudrizwan.claude-dev/settings/ | JSON · mcpServers |
CodeBuddy Code (codebuddy) | ~/.codebuddy/.mcp.json (or existing mcp.json) | JSONC · mcpServers |
Cortex Code (cortex) | ~/.snowflake/cortex/mcp.json | JSON · mcpServers |
DeepSeek Harness (dsh) | $DSH_HOME/cordis.patch.yml (default ~/.dsh/cordis.patch.yml) | YAML · insert patch row |
Factory Droid (droid) | ~/.factory/mcp.json | JSON · mcpServers |
Gemini CLI (gemini) | ~/.gemini/settings.json | JSON · mcpServers |
GitHub Copilot CLI (copilot) | ~/.copilot/mcp-config.json | JSON · mcpServers |
Goose (goose) | CONFIG/goose/config.yaml; Windows: APP/Block/goose/config/config.yaml | YAML · extensions |
Grok Build (grok) | ~/.grok/config.toml | TOML · mcp_servers |
Hermes Agent (hermes) | ~/.hermes/config.yaml | YAML · mcp_servers |
Junie (junie) | ~/.junie/mcp/mcp.json | JSON · mcpServers |
Kilo Code (kilo) | CONFIG/kilo/kilo.json (also .jsonc, config.json) | JSONC · mcp |
Kimi Code CLI (kimi) | ~/.kimi/mcp.json | JSON · mcpServers |
Kiro (kiro) | ~/.kiro/settings/mcp.json | JSON · mcpServers |
LM Studio (lm-studio) | ~/.lmstudio/mcp.json | JSON · mcpServers |
Mistral Vibe (vibe) | ~/.vibe/config.toml | TOML · [[mcp_servers]] |
Pi (pi) | ~/.pi/agent/mcp.json | JSON · mcpServers |
Qoder CLI (qoder) | ~/.qoder/settings.json | JSON · mcpServers |
Qwen Code (qwen-code) | ~/.qwen/settings.json | JSON · mcpServers |
Roo Code (VS Code) (roo) | APP/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json | JSON · mcpServers |
Trae CN (trae-cn) | APP/Trae CN/User/mcp.json | JSON · mcpServers |
Warp (warp) | ~/.warp/.mcp.json | JSON · mcpServers |
WorkBuddy (workbuddy) | ~/.workbuddy/mcp.json | JSON · mcpServers |
Zed (zed) | macOS: ~/.config/zed/settings.json; Linux: CONFIG/zed/settings.json; Windows: APP/Zed/settings.json | JSONC · context_servers |
For any other stdio MCP client, run browse mcp:
{ "mcpServers": { "browse": { "command": "/home/you/.local/bin/browse", "args": ["mcp"] } } }
(browse install --agent none prints this with your path.) Re-running install updates the entries it wrote and leaves servers named browse that it didn't write alone. With OPENCODE_BROWSER_PORT set, install writes the port into each entry's environment so agents start browse mcp on the relay the extension is paired with. dsh and Mistral Vibe are the exception: add OPENCODE_BROWSER_PORT to their env by hand (an entry you write yourself needs it too). Install never removes a port it wrote, so if you stop pinning, delete it from those entries or re-run install with the new port.
Pairing
There's nothing to sign in to. Each browser pairs with browse once and gets a key of its own (see Security). If pairing didn't happen by itself, run browse install again, or run browse pair: it prints a one-time code (XXXX-XXXX, good for 10 minutes) and waits. Open Extensions → browse → Options, expand advanced (or click Pair with a code), enter the code under Pairing code and click Connect. browse pair --list shows paired browsers; browse pair --revoke unpairs one.
Firefox (beta)
Firefox support is in beta: browse connects directly over WebDriver BiDi (no extension needed), so it may still have rough edges. It works with Firefox, Firefox Developer Edition and Firefox Nightly:
browse firefox # connect your real Firefox profile (starts it with remote control if closed)
browse firefox --relaunch # restart an already-open Firefox with remote control (tabs restore; private windows don't)
browse firefox --dedicated # open a separate clean browse profile instead of touching your running Firefox
browse firefox --headless # dedicated headless profile (browse disconnect quits it)
browse firefox --app nightly # pick a specific app (firefox, dev, nightly, or a path)
browse disconnect # disconnect a directly driven browser
You can also pass --firefox to browse install to connect a Firefox-family browser instead of the Chrome extension. While browse drives Firefox, Firefox shows a robot icon in the address bar and pages see navigator.webdriver = true. Both Chrome (extension) and Firefox (BiDi) can be connected at the same time; pass browser to navigate or tabs new (from status) to pick one.
Browser on another computer
When your agent runs on one machine and your browser on another (over Tailscale, say), browse runs next to the agent and the extension connects to it across the network:
- On the agent's machine run
browse install --remote(orbrowse set hostname 0.0.0.0after installing). browse then listens on every network, restarting the relay if it runs, and prints this machine's address and a pairing code. Other computers reach only the extension link; the HTTP API answers on127.0.0.1only. - In the browser, open browse's setup page, choose Connect an agent on another computer and enter the address and code (or use Relay address and Pairing code under advanced on the options page).
The connection isn't encrypted by browse; use a network that is (Tailscale or WireGuard), not the open internet. browse set hostname 127.0.0.1 goes back to this computer only.
Updates
Updates are automatic. Every relay checks at launch and then hourly, whatever the update setting, and installs the channel's release when it isn't the one running (a rollback reaches everyone too):
- every install reads its channel's manifest from the release service (
stable, ordev/betafor those builds), withbrowse///cli/as the User-Agent; - the install script's binary replaces
~/.local/bin/browsewith the manifest's tarball after checking its size and SHA-256; - global installs run the package manager that installed them (
npm install -g,bun add -g,pnpm add -g,yarn global add,volta install) to install `@opencode/browse@