Most OpenCode Go guides for Claude Code still show the old /zen/go/ base URL. It worked in July. The current harness documentation points somewhere else, and the difference explains a week of 404s and silent fallbacks. The correct base URL is https://opencode.ai/inference/go/anthropic. Claude Code appends /v1/messages itself, so do not add that path.
This is the reference page: current URL, auth variable, model aliases, and the mistakes that survive a reboot.
The current configuration
OpenCode's Claude Code harness page shows the Go setup. Put it in ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_BASE_URL": "https://opencode.ai/inference/go/anthropic",
"ANTHROPIC_AUTH_TOKEN": "oc_sk_...",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "minimax-m3",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5"
}
}
Three details matter more than the JSON.
First, use ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. The harness documentation says so explicitly. If you are signed in to a Claude account, run /logout first, otherwise Claude Code may send that login instead of the OpenCode key.
Second, leave /v1/messages off the base URL. Claude Code adds it. A URL ending in /v1/messages becomes /v1/messages/v1/messages and fails.
Third, the Go plan is a subscription workspace, not pay-as-you-go credit. The key has to come from a workspace with a Go or Go Plus subscription. If the Go endpoint rejects the key, check which product the workspace is on before changing the URL.
Which models work in Claude Code
Claude Code only speaks the Anthropic Messages API. OpenCode's harness page lists the Go models that accept it: Claude Haiku 5.5, Kimi K3, DeepSeek V4, MiniMax M3, and the Qwen models. GPT, Gemini, and most other open models are not available in Claude Code yet. Use Pi or Hermes for those.
That list is narrower than the full Go catalogue, which includes Grok 4.7, GLM 5.3, Gemini 4 Argon, GPT 6 Luna, and others. They are available through OpenCode or another harness, not through Claude Code. This is the single most common misunderstanding: people buy Go for the model list and then discover Claude Code can only reach a slice of it.
The aliases matter too. Claude Code sends background work to the Haiku alias, so mapping Haiku to an expensive model quietly raises cost. A sensible setup uses MiniMax M3 for Sonnet and Opus work and Claude Haiku 5.5 or a Qwen model for the Haiku slot.
What Go costs and how much it allows
Go is $10 per month. Go Plus is $40 per month. Both include the same models at the same token prices, but Go Plus raises the monthly usage ceiling. Each model has its own monthly allowance, split into a 5-hour window at 20% and a weekly window at 50%.
The practical numbers from OpenCode's Go documentation are uneven. On the Go plan, MiniMax M3 allows roughly 16,000 requests per month, Qwen3.7 Plus about 21,600, and Qwen3.8 Max only 810. Grok 4.7 sits at 845. That spread is why "unlimited models" is not the same as "usable models."
For Claude Code, the important allowance is your main coding model. If you wire Qwen3.8 Max into every slot, you will hit the cap in days. If you use MiniMax M3 for real work and Haiku 5.5 for background tasks, the $10 plan is reasonable for part-time use.
Common failures and fixes
A 401 usually means the key is from a Console workspace without Go, or Claude Code is still using a Claude login. Run /status and check the base URL and token. Then /logout and restart.
A 400 from a non-Claude model usually means Claude Code sent Claude-specific request options. The harness page recommends setting CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 in the same env block. Do that before blaming the provider.
A silent fallback to Anthropic billing usually means the env block is in the wrong file. Claude Code reads ~/.claude/settings.json, project .claude/settings.json, and managed settings. If you put the values in a shell profile but launch Claude Code from a desktop app or IDE, the app may not inherit them. The settings file is more reliable.
If you previously followed a guide with /zen/go/, switch to the current harness URL and test with /status. The old path may still resolve for some accounts, but it is not the documented Go endpoint for Claude Code.
What this setup is good for
Go is a budget backend for scaffolding, tests, refactors, and CRUD work. It is not a replacement for Opus or Fable on architecture and hard debugging. The $10 plan is best treated as a second lane: keep a direct Claude subscription for the work that needs frontier judgment, and send the mechanical work through Go.
The permanent-setup mechanics, including why shell exports die on reboot, are in the earlier setup guide. This page is the current URL and model reference. Bookmark it, because the endpoint has already changed once.
FAQ
What is the OpenCode Go base URL for Claude Code?
Use https://opencode.ai/inference/go/anthropic. Claude Code appends /v1/messages, so do not include that path. Older guides show https://opencode.ai/zen/go/, which is not the current documented endpoint.
Should I use ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN?
Use ANTHROPIC_AUTH_TOKEN with an oc_sk_ key from a Go workspace. The OpenCode harness documentation specifically says not to use ANTHROPIC_API_KEY, and Claude Code may prefer a signed-in Claude account if you do not log out first.
Which Go models work in Claude Code?
Claude Haiku 5.5, Kimi K3, DeepSeek V4, MiniMax M3, and the Qwen models. GPT, Gemini, Grok, and most other open models need a different harness such as Pi or Hermes.
Why do I get a 404 after setting the base URL?
You probably added /v1/messages to the base URL. Claude Code adds it automatically. Use the base URL exactly as shown in the harness documentation.



