Agent Chrome

opencode browser MCP: let opencode control your real Chrome

To let opencode control your real Chrome, run curl -fsSL https://agentchrome.dev/install | sh and load the Agent Chrome extension once. The installer adds a remote MCP server named agentchrome to ~/.config/opencode/opencode.json, and opencode can then work in your signed-in browser with tools such as navigate, computer and read_page.

opencode supports remote MCP servers, and Agent Chrome is one: a URL, https://agentchrome.dev/mcp, and an Authorization header.

Install with one command

curl -fsSL https://agentchrome.dev/install | sh

It needs Node.js 18 or newer and Chrome 120 or newer. When it finds opencode (the opencode command or a ~/.config/opencode folder), the installer:

  1. Creates your account and saves the key to ~/.config/agentchrome/config.json.
  2. Adds agentchrome under the mcp key of ~/.config/opencode/opencode.json, after saving opencode.json.bak-agentchrome.
  3. Links the agentchrome skill into ~/.config/opencode/skills.
  4. Unpacks the extension to ~/.agentchrome/extension and prints a pairing code.

To install for opencode only, run agentchrome install opencode.

Load the extension once per Chrome profile

  1. Open chrome://extensions and turn on Developer mode.
  2. Click Load unpacked and choose ~/.agentchrome/extension.
  3. Press Sign in to connect in the popup, or paste the pairing code.

Manual configuration

Add this to ~/.config/opencode/opencode.json. opencode keeps MCP servers under mcp, not mcpServers, and marks remote ones with "type": "remote":

{
  "mcp": {
    "agentchrome": {
      "type": "remote",
      "url": "https://agentchrome.dev/mcp",
      "enabled": true,
      "headers": {
        "Authorization": "Bearer <key from agentchrome key>"
      }
    }
  }
}

The installer reads the file even if it has comments or trailing commas, merges the entry in, and leaves your other settings alone.

Use OAuth instead of a key

agentchrome install opencode --oauth

This writes the same entry without headers. Whether opencode shows a sign-in prompt depends on your opencode version. If it does not, use the key form above.

Proxy and custom config folders

If you run opencode with a separate config, such as OPENCODE_CONFIG=~/.opencode-proxy/opencode.json, the installer also looks for folders named ~/.opencode-* that contain an opencode.json. It adds the same entry to each one. Run agentchrome install opencode again when you create a new one.

Example prompts for opencode

What you see while opencode works

Pressing Cancel on Chrome's "started debugging this browser" bar halts every agent. Optional settings add a prompt before each new site and a block list. History access is off by default.

Notes for opencode users

Check that it works

After you load the extension, confirm the whole chain before you rely on it:

agentchrome status

You should see your Chrome profile with a green dot and a check mark next to opencode. Then start a new opencode session and ask it to call list_browsers. It should report your profile as "online": true. Next ask it to call tabs_context and navigate to https://example.com. A tab group appears in Chrome with a blue border around the page.

If the agent says No browser is connected, Chrome is closed or the profile is not paired. Open Chrome, check that the popup says Connected, or run agentchrome pair for a new code. If a tool says the session is paused, someone pressed Stop or Cancel on the debugging bar, and you can resume from the popup. Opening file:// pages needs Allow access to file URLs in the extension's details page. More fixes are in troubleshooting.

Related pages

Frequently asked questions

How do I add a browser MCP server to opencode?

Run the Agent Chrome installer and load the extension. It adds a "type": "remote" entry named agentchrome to ~/.config/opencode/opencode.json. After you restart opencode, the browser tools show up.

Which file configures MCP servers in opencode?

~/.config/opencode/opencode.json, under the mcp key. Remote servers use type, url, enabled and optional headers.

Can I use Agent Chrome with an opencode proxy config?

Yes. The installer detects ~/.opencode-* folders that contain an opencode.json and writes the same entry there.

Does opencode use my real signed-in Chrome?

Yes. The extension lives in your Chrome profile, so opencode sees the sessions you already have. It works in its own tab group and never moves your real mouse.

How do I remove it?

Run agentchrome uninstall opencode. It deletes the agentchrome entry from opencode.json and unlinks the skill.

Updated 2026-11-04 · Agent Chrome is open source (MIT) and operated by Circo, Inc.

Try Agent Chrome

One command sets up every agent on your machine. Or add https://agentchrome.dev/mcp as a connector in Claude or ChatGPT.

curl -fsSL https://agentchrome.dev/install | sh