[FEATURE]: Disabling specific models through opencode.json #2263

Closed
opened 2026-02-16 17:34:53 -05:00 by yindo · 2 comments
Owner

Originally created by @r1bilski on GitHub (Oct 24, 2025).

Originally assigned to: @thdxr on GitHub.

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

Hi! First of all, thank you for your work on this tool :)

We're using Opencode as an interface for an LLM based workflow, that people install on their machines, along with a config file. We set the model to a default tested model that we verified works fine, but this still leaves the possibility of someone changing the model by accident open.

I would like to request a feature that would allow to disable specific models in opencode.json, so they don't show up in the model list.
This is useful not only in the usecase I described above, but also when you have a provider that supplies a bunch of models you don't care about (like Copilot providing Claude 3.5 etc.). This feature would allow you to have only the models you're interested in using displayed on the list.

Thanks!

Originally created by @r1bilski on GitHub (Oct 24, 2025). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Hi! First of all, thank you for your work on this tool :) We're using Opencode as an interface for an LLM based workflow, that people install on their machines, along with a config file. We set the model to a default tested model that we verified works fine, but this still leaves the possibility of someone changing the model by accident open. I would like to request a feature that would allow to disable specific models in opencode.json, so they don't show up in the model list. This is useful not only in the usecase I described above, but also when you have a provider that supplies a bunch of models you don't care about (like Copilot providing Claude 3.5 etc.). This feature would allow you to have only the models you're interested in using displayed on the list. Thanks!
yindo added the discussion label 2026-02-16 17:34:53 -05:00
yindo closed this issue 2026-02-16 17:34:53 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 24, 2025):

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

  • #1214: [feature: filter unsupported models] - Similar request for filtering out models that aren't supported/usable, though focused on Copilot provider specifically

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 24, 2025): This issue might be a duplicate of existing issues. Please check: - #1214: [feature: filter unsupported models] - Similar request for filtering out models that aren't supported/usable, though focused on Copilot provider specifically Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 24, 2025):

Yeah this makes sense

@rekram1-node commented on GitHub (Oct 24, 2025): Yeah this makes sense
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2263