Skip to content

feat: support disabling individual models within a provider #21035

Closed as not planned

Description

@fpigeonjr

Problem

When configuring a provider like github-copilot, OpenCode always shows the full list of models from models.dev regardless of what's defined in opencode.json. There is currently no way to hide or suppress individual models within a provider — only entire providers can be toggled via enabled_providers / disabled_providers.

This is a real pain point for providers like GitHub Copilot where the available models in the UI depend on the user's subscription tier. For example, a Copilot plan may only include 11 of the 20+ models OpenCode shows, leading to a confusing and noisy model picker full of models that will error when selected.

Proposed Solution

Add support for a disabled: true flag on individual model entries in the provider.models config block:

{
  "provider": {
    "github-copilot": {
      "models": {
        "gpt-5.4": { "disabled": true },
        "gpt-5.3-codex": { "disabled": true }
      }
    }
  }
}

When disabled: true is set on a model, it should be excluded from the model selection list entirely.

Use Case

GitHub Copilot subscribers only have access to a subset of models depending on their plan. Being able to trim the list to only the models actually available on your plan would make the model picker much cleaner and prevent confusion when a selected model returns an error because it's not included in your subscription.

Alternatives Considered

  • Using enabled_providers — only works at the provider level, too coarse
  • Manually maintaining a list and hoping OpenCode respects it — currently no mechanism exists

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 4, 2026
  2. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Feature requests must have a title starting with [FEATURE]: (current title: feat: support disabling individual models within a provider)
    • The feature request template requires checking the verification checkbox confirming the feature hasn't been suggested before

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. added a commit that references this issue on Apr 4, 2026
    3fbefe1
  4. github-actions commented on Apr 4, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions