Skip to content

[FEATURE]: Send explicit provider/model IDs that the catalog doesn't list #53462

Closed as not planned

Description

@MarkAtwood

Feature hasn't been suggested before.

  • 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.

Repro (no request reaches Bedrock):

OPENCODE_DISABLE_MODELS_FETCH=1 AWS_REGION=us-east-2 \
  opencode run --format json -m amazon-bedrock/us.moonshotai.kimi-k3 "Reply OK"

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.

Activity

  1. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. opencodejr commented on Oct 27, 2026

    @opencodejr
    Contributor

    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.

    Related:

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions