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
{{ message }}
Repository navigation
[FEATURE]: Send explicit provider/model IDs that the catalog doesn't list #53462
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When I name a model explicitly with -m provider/model and the provider is configured, opencode refuses it if the loaded models.dev catalog doesn't list that ID, even when the provider serves it. The ID never reaches the provider.
This bites whenever the catalog lags the provider: with OPENCODE_DISABLE_MODELS_FETCH=1 the bundled catalog in 1.18.30 has no amazon-bedrock/us.moonshotai.kimi-k3 or us.anthropic.claude-opus-5-5, so both fail, while Bedrock serves both.
Result: ProviderModelNotFoundError: Model not found: amazon-bedrock/us.moonshotai.kimi-k3 (shown to the user as "Unexpected server error" until #47162 is fixed). The same model answers with aws bedrock-runtime converse --model-id us.moonshotai.kimi-k3, and the same opencode run works once a fresh catalog is fetched.
Proposal: for an explicit provider/model on a configured provider, fall back to the provider's defaults when the catalog has no entry and send the ID as given, letting the provider accept or reject it. The catalog would then supply optional metadata (context size, pricing) rather than gate which IDs can be used.
Workarounds today: point OPENCODE_MODELS_PATH at a freshly fetched models.json, or declare each new model under provider.<id>.models in config.
Thanks for the detailed write-up and the workarounds, @MarkAtwood!
This report is about OpenCode v1 (1.18.30). v1 is now a separate codebase that only gets critical fixes (data loss, security problems, or breakage with no workaround). This is a feature request with working workarounds (OPENCODE_MODELS_PATH or declaring the model under provider.<id>.models), so it is unlikely to be changed in v1.
We'd encourage trying v2 (@opencode/cli, the opencode command), where active development happens. I can't confirm that v2 handles uncatalogued model IDs differently. If you see the same limitation on v2, please reply here with your v2 version and the command you ran, and it can go through the normal feature-request flow. Please also reply if you think this is critical.
We haven't heard back, so I'm closing this as not planned. Allowing model IDs that the catalog doesn't list is a feature request for v1 (1.18.30), and v1 only gets critical fixes. In the meantime, the workarounds you described still work: OPENCODE_MODELS_PATH pointing at a freshly fetched models.json, or declaring the model under provider.<id>.models.
If you see the same limitation on v2 (@opencode/cli), please open a new issue with your v2 version and the command you ran. Thanks again for the clear report, @MarkAtwood!
Activity
github-actions commentedon Oct 6, 2026
This issue might be a duplicate of existing issues. Please check:
opencodejr commentedon Oct 27, 2026
Thanks for the detailed write-up and the workarounds, @MarkAtwood!
This report is about OpenCode v1 (1.18.30). v1 is now a separate codebase that only gets critical fixes (data loss, security problems, or breakage with no workaround). This is a feature request with working workarounds (
OPENCODE_MODELS_PATHor declaring the model underprovider.<id>.models), so it is unlikely to be changed in v1.We'd encourage trying v2 (
@opencode/cli, theopencodecommand), where active development happens. I can't confirm that v2 handles uncatalogued model IDs differently. If you see the same limitation on v2, please reply here with your v2 version and the command you ran, and it can go through the normal feature-request flow. Please also reply if you think this is critical.Related:
ProviderModelNotFoundErrorbeing shown as "Unexpected server error"opencodejr commentedon Oct 28, 2026
We haven't heard back, so I'm closing this as not planned. Allowing model IDs that the catalog doesn't list is a feature request for v1 (1.18.30), and v1 only gets critical fixes. In the meantime, the workarounds you described still work:
OPENCODE_MODELS_PATHpointing at a freshly fetchedmodels.json, or declaring the model underprovider.<id>.models.If you see the same limitation on v2 (
@opencode/cli), please open a new issue with your v2 version and the command you ran. Thanks again for the clear report, @MarkAtwood!