opencode
Coding agents & IDEsOpen-source terminal coding agent with a custom-provider config.
Fill the guide with your values
Stays in this browser tab — never sent or stored by us. Sign in to create one
Your system
Setup
- 1Add an
ultragptprovider toopencode.json(project) or~/.config/opencode/opencode.json. - 2Export
ULTRAGPT_API_KEY, runopencodeand pick the model with/models.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ultragpt": {
"npm": "@ai-sdk/openai-compatible",
"name": "UltraGPT",
"options": {
"baseURL": "https://api.ultragpt.pro/v1",
"apiKey": "{env:ULTRAGPT_API_KEY}"
},
"models": {
"claude-opus-4.8": { "name": "claude-opus-4.8" },
"grok-4.7": { "name": "grok-4.7" }
}
}
},
"model": "ultragpt/claude-opus-4.8"
}Tips
- Any model id from Models works; suffixes like :online (web search) and :nitro work too.
- Give each tool its own key with a spend limit, so usage shows separately in Activity.
- Something off? Error codes · Support