How to connect OpenCode to Anchor
Add the Anchor server to OpenCode's config, then sign in with your Anchor account.
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?"