OpenCode with
Claude Opus 5.
Add ireze as an OpenAI-compatible provider in OpenCode, paste your key, and use the model picker like any other provider. The same account works in the browser playground.
opencode.json OpenAI-compatible 4M daily credits
Configuration
Add this provider to opencode.json or ~/.config/opencode/opencode.json.
{
"provider": {
"ireze": {
"npm": "@ai-sdk/openai-compatible",
"name": "ireze",
"options": {
"baseURL": "https://ireze.site/v1",
"apiKey": "sk-opus-your_key"
},
"models": {
"claude-opus-5": {
"name": "Claude Opus 5"
}
}
}
}
}Then select it: open OpenCode’s model picker and choose
ireze / Claude Opus 5. If you use a different config path, keep the same provider shape.Verify
- Restart OpenCode after saving the config so the provider is loaded.
- Pick the model from the model list and send a short prompt.
- Check Billing on ireze to confirm the request was counted.
FAQ
Should the provider use the Anthropic SDK?
For this setup, use the OpenAI-compatible provider and point it at https://ireze.site/v1. The gateway also exposes an Anthropic Messages endpoint if your client supports it.
Can I commit the key to my dotfiles?
No. Keep the key out of git. Use an environment variable or a local untracked config file.
What if the model list is empty?
Restart OpenCode, confirm the JSON is valid, and check that the provider entry is inside the top-level provider object.