Add OpenRouter Claude provider config to OpenCode #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Reintroduce Claude-class models to OpenCode through OpenRouter instead of restoring the old direct Anthropic auth path.
Why
The repo used to be Claude-first, but the old setup depended on direct Anthropic wiring that we do not want to bring back. OpenCode now supports OpenAI-compatible custom providers, so this should be expressed as a new OpenRouter provider migration rather than a revert.
Scope
dot-config/opencode/opencode.jsonhttps://openrouter.ai/api/v1using@ai-sdk/openai-compatibleopencode-claude-authAcceptance criteria
opencode.jsonhas a dedicated OpenRouter provider block