How to connect OpenCode to Anchor
Step-by-step setup for every MCP-compatible agent. One URL, OAuth sign-in, and you're done.
OpenCode
- Open
~/.config/opencode/opencode.jsonin a text editor:Paste this into the file: - Authenticate: A sign-in window opens — use your Anchor account to connect.
- Restart OpenCode. The Anchor server appears in your MCP server list.
- Ask OpenCode "What is Anchor, and what can I use it for?"