Integrations/OpenCode
OpenCode
Open-source terminal coding agent with custom OpenAI-compatible providers.
Steps
Edit ~/.config/opencode/opencode.json:
json
{
"provider": {
"bigmodel": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://www.starunion.net/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"YOUR_MODEL_ID": {}
}
}
}
}Save, run opencode, then use /models to switch to the provider's models.
Updated: 2026-08-24