OpenCode Browse: Let AI Agents Use Your Real Browser
Connect OpenCode, Claude Code, Codex, Cursor, and other MCP clients to a signed-in Chromium browser for page inspection, screenshots, and human handoffs.
Last updated: 2026-11-17
OpenCode Browse connects an MCP-compatible coding agent to a Chromium browser on your computer. A local relay and browser extension let the agent inspect pages, open background tabs, click and type, take screenshots, record a tab, and capture network traffic. You can also lend it a tab you already have open.
OpenCode Browse is useful when an agent needs to work with a page in the browser you already use, such as checking a signed-in dashboard or reproducing a browser-only issue. Its agent tabs stay grouped in the background, so they do not take over the window while it works.

Original diagram of local browser control and human handoff, based on the product documentation.
Use OpenCode Browse with your coding agent
OpenCode Browse provides an MCP server for OpenCode, Claude Code, Codex, Cursor, Zed, and other MCP clients. OpenCode receives individual browser tools; other clients can use an execute tool with a Playwright-style page interface. The release also provides a command-line interface for browser actions.
The extension supports Chrome, Edge, Brave, Arc, Helium, Vivaldi, Opera, and Chromium. It uses Chromium's debugger interface, so it does not support Firefox or Safari.
Agents can read page structure, navigate, interact with page elements, capture screenshots, record tabs, and collect network traces. You can set an allowed-sites list for agent navigation and lend an existing tab with the extension button. Agent tabs can be grouped and collapsed in the background.
OpenCode Browse uses a tab ID as the handle for subsequent actions. Ask the agent to keep that ID when it reads, clicks or takes a screenshot, especially when several similar pages are open. A named tab can be reused without opening another copy. Agent-created tabs that remain idle for ten minutes normally close automatically; named tabs remain until you or the agent closes them.
You handle logins and other human steps
When a task reaches a login, two-factor prompt, or payment, OpenCode Browse can hand the tab back to you. Complete the step yourself, then click Continue to let the agent resume. Browse does not require a separate account sign-in; you pair each browser with the local relay once.
The extension badge shows ON for a lent tab, RUN while the agent works, and WAIT when it needs you. Clicking the toolbar button can take a tab back even while the agent is running. OpenCode Browse requires a real click on the handoff card or toolbar button to finish the handoff, so instructions inside the page cannot supply that confirmation.
Install and connect
The installer can add OpenCode Browse to selected coding agents, connect the browser extension, and pair the extension with the relay. It edits the selected agents' MCP configuration, so restart the agent or reload its MCP servers after setup.
On macOS or Linux, the official installer is:
curl -fsSL https://opencode.ai/browse/install | bash
For Windows PowerShell, use:
irm https://opencode.ai/browse/install.ps1 | iex
If you prefer npm, install and run the setup command:
npm install -g @opencode/browse
browse install
The installer defaults to the stable channel. It opens the Chrome Web Store if the extension is not installed, then guides the pairing. You can choose which supported agent configurations to update.
How OpenCode Browse affects task cost
OpenCode Browse is MIT-licensed software that runs a local relay; the official product and repository do not list a separate Browse per-task or hosted-browser price. Model calls still use the API balance or subscription allowance of the provider configured in your agent. The prompt, page observations, screenshots and repeated actions affect that usage. Browse does not publish a standard token count or cost per task.
For an illustrative task on Qwen4-Max’s Singapore API, suppose the agent consumes 100,000 fresh input tokens, 20,000 cache-read tokens and 5,000 output tokens across all its turns. At the published rates, the model portion is $0.15 + $0.0015 + $0.0225 = $0.174. Three attempts with those same token amounts cost $0.522. This example excludes explicit cache creation and separately billed tools; it is a token-budget calculation, not a measured Browse task. Use your provider’s actual usage to price the work you accept.
Check the connection and recover a task
After reloading the agent, run browse status in your terminal. OpenCode Browse reports the relay, connected browsers, pairing state and the next step when a component is missing. Start with one page you can inspect yourself: ask the agent to open it, read a specific visible value and capture a screenshot. Check the value before giving the agent a longer workflow.
If the extension is missing or unpaired, rerun browse install or use browse pair and enter its code in the extension options. Pairing codes are single-use and last ten minutes. When an agent reports that its MCP server is from an older Browse version, restart the agent. The project’s status command is a better first check than repeatedly submitting the same page action.
After a relay restart, OpenCode Browse normally reconnects the extension within about half a minute, and calls wait during that interval. If it stays disconnected, inspect ~/.local/state/browse/logs/relay.log. A different HTTP server on port 19988 makes the relay try ports 19990–19997, which the extension can discover. A process that holds the port without answering HTTP needs separate attention: stop that process or follow the README’s custom-port setup, then check the connection again.
Set OpenCode Browse navigation and interaction controls
The browser extension needs permission to work on websites so the agent can use the sites you ask it to open. OpenCode Browse accepts allowedOrigins when opening a tab to limit navigation, including top-level documents and agent-opened tabs or popups. It does not filter requests that the page makes for its own images, scripts, frames or API calls. An allowed dashboard can still load resources from other origins.
For an inspection task, readOnly blocks ordinary clicks, hover, drag, typing, key presses, filling, selecting, uploads and navigation after the tab opens. Reading snapshots, taking screenshots and scrolling remain available. OpenCode Browse also leaves eval and page-provided WebMCP tools able to run JavaScript, which can make requests or change the page. Choose the tools the task needs and keep unrelated private pages out of the tabs you give the agent.
Capture network traffic and check what reaches the agent
OpenCode Browse exposes network for a tab’s traffic and console for its messages and errors. For a dashboard bug, give the agent a narrow task: reproduce one failing action, inspect the relevant request and response, and report the result alongside the visible page state. This keeps the diagnosis focused and makes it easier to compare a browser failure with the application’s own logs.
Network capture redacts credentials by common names and patterns, including authorization and API-key headers, cookie values, secret-named fields and token-like path segments. A sensitive value under an ordinary field name can still appear. OpenCode Browse masks fill values for password and one-time-code fields, while snapshots omit typed values in editable fields. Page text, screenshots, console messages and eval results pass through as content; the agent may send them to its model provider under that provider’s terms.
Choose OpenCode Browse or a hosted browser engine
Use OpenCode Browse when the task depends on the browser session, tabs or extensions you already have. Kitesurf offers a separate browser-engine route for compatible pages, with its own hosted and self-hosted costs. For an agent that operates a wider desktop environment, see agent-desktop.
Keep browser infrastructure and model usage in the same task budget. The Hy4 Flash guide offers another model-cost comparison for everyday agent tasks; changing the model also calls for checking the page-reading and action quality you need.
Sources
Checked November 17, 2026: OpenCode Browse product page, Browse v0.1.0 release notes, Browse README, Browse privacy policy, and MIT license.