OpenCode
Set up OpenCode with Claude API — open-source terminal AI assistant. Configure API key and model selection.
Config Path
Windows:
C:\Users\User\.config\opencode\opencode.jsoncLinux / macOS:
~/.config/opencode/opencode.jsoncExample Config
opencode.jsoncjson
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"options": {
"baseURL": "https://api2.claudestore.store/v1",
"apiKey": "sk-cs2-YOUR_KEY"
}
}
}
}Notes
- Use your API key from the dashboard
- OpenCode should point to
/v1 - Recommended model IDs are the same stable Claude IDs used everywhere else