opencode can connect to SU8 Codes through a custom provider.
The SU8 Codes OpenCode example uses @ai-sdk/openai-compatible.
What to fill in opencode
Create or update opencode.json in your project directory. Focus on these fields:
options.baseURL:https://www.su8.codes/v1(remove/responsesfromhttps://www.su8.codes/v1/responses)options.apiKey:<your SU8 Codes API Key>(or use{env:SU8_API_KEY}to read from an environment variable)models: add the model name you want to use. You can copy it from Models and channels
Example with only the key fields kept, so it is easier to compare while filling values:
{
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://www.su8.codes/v1",
"apiKey": "<your SU8 API Key>"
},
"models": {
"gpt-5.5": {
"name": "gpt-5.5",
"variants": {
"low": {
"reasoningEffort": "low"
},
"medium": {
"reasoningEffort": "medium"
},
"high": {
"reasoningEffort": "high"
},
"xhigh": {
"reasoningEffort": "xhigh"
}
}
}
}
}
After configuration, use this page for the fastest self-check:
If there is an error, follow this page:
