Quick setup
Add the server from the terminal:Use an API key instead
For CI, a remote machine, or a project other than your default, send an API key instead of signing in. Create one at API Keys, export it asANCHORBROWSER_API_KEY, and add the server with a header:
{env:ANCHORBROWSER_API_KEY} through unchanged. opencode reads the variable each time it connects, so the key itself is never written to the config file.
Config file
The commands above write to~/.config/opencode/opencode.json (opencode.jsonc on some installs). This is what the API key setup looks like there:
headers block. To share the server with a repository, put the same mcp block in an opencode.json at the project root.
Try it
Troubleshooting
- Sign-in problems: run
opencode mcp debug anchor. It shows the auth status and whether the server answers. - Sign-in on a remote machine: there is no browser to open. Use the API key setup.
- 401 with an API key: confirm
ANCHORBROWSER_API_KEYis exported in the shell that starts opencode. failedinopencode mcp list: check that the URL is exactlyhttps://api.anchorbrowser.io/v1/mcp.
Next steps
- MCP servers and tools: the three Anchor servers and what each tool does.
- All integrations

