You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you have to explicitly add the model you want to use from that provider (probably because opencode doesn't know what models are provided by that provider and how to get the list either):
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"myprovider": {
"npm": "@ai-sdk/openai-compatible",
"name": "My AI ProviderDisplay Name",
"options": {
"baseURL": "https://api.myprovider.com/v1"
},
"models": { 👈🏽
"my-model-name": {
"name": "My Model Display Name"
}
}
}
}
}
Activity
github-actions commentedon Jan 16, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
GrinZero commentedon Jan 20, 2026
It' same
fix(opentui): add 'Other' option to /connect menu for custom providers
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
0xRy4n commentedon Apr 11, 2026
Same issue.
Kovinda commentedon Apr 20, 2026
same issue here
LOYINuts commentedon Apr 22, 2026
same
calebrio02 commentedon Apr 24, 2026
same issue
372046933 commentedon May 2, 2026
Same here. How to fix?
ShahriarKh commentedon Jul 6, 2026
I think you have to explicitly add the model you want to use from that provider (probably because opencode doesn't know what models are provided by that provider and how to get the list either):
ronbonk commentedon Jul 19, 2026
It actually shows up, when you define the model(s)! Good hint @ShahriarKh
For the docs and ppl looking for multiple custom provider setup in opencode: