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
feat: support disabling individual models within a provider #21035
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:
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
Reacted by 半颗白菜, Jacopo Giusti, Williams Orellana and Rostislav Alekseev
Activity
github-actions commentedon Apr 4, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:(current title:feat: support disabling individual models within a provider)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:
disabled_modelsconfig to hide specific models within a provider — nearly identical use case and proposed solutionIf you believe this was flagged incorrectly, please let a maintainer know.
feat: support disabled flag on individual provider models
github-actions commentedon Apr 4, 2026
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.