[FEATURE]: Allow list for providers? #2965

Closed
opened 2026-02-16 17:38:03 -05:00 by yindo · 4 comments
Owner

Originally created by @adamcik on GitHub (Nov 19, 2025).

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

For how I use opencode in a work context, having an allow list of providers we are allowed to use would be a welcome addition. Basically I don't want to have to keep adding exclusions to our opencode.jsonc to comply with our policies.

Recently I had reinstalled my machine and wound up being surprised that I was using the "wrong" model, luckily I caught this in time. But what I think happened is that the newer opencode with a blank slate had a default model that did not need any auth? I'm not sure if that was the expected state, and it was over a month ago, so I'm not sure what version I was on.

Originally created by @adamcik on GitHub (Nov 19, 2025). ### 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 For how I use opencode in a work context, having an allow list of providers we are allowed to use would be a welcome addition. Basically I don't want to have to keep adding exclusions to our `opencode.jsonc` to comply with our policies. Recently I had reinstalled my machine and wound up being surprised that I was using the "wrong" model, luckily I caught this in time. But what I think happened is that the newer opencode with a blank slate had a default model that did not need any auth? I'm not sure if that was the expected state, and it was over a month ago, so I'm not sure what version I was on.
yindo added the discussion label 2026-02-16 17:38:03 -05:00
yindo closed this issue 2026-02-16 17:38:03 -05:00
Author
Owner

@jayair commented on GitHub (Nov 19, 2025):

opencode with a blank slate had a default model that did not need any auth

Yeah we've had this for the past couple of months, we have a few free models.

In your case, are you just trying to disable the free models?

@jayair commented on GitHub (Nov 19, 2025): > opencode with a blank slate had a default model that did not need any auth Yeah we've had this for the past couple of months, we have a few free models. In your case, are you just trying to disable the free models?
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

Same issue: https://github.com/sst/opencode/issues/2853

@rekram1-node commented on GitHub (Nov 21, 2025): Same issue: https://github.com/sst/opencode/issues/2853
Author
Owner

@adamcik commented on GitHub (Nov 22, 2025):

@jayair disabling the free ones would also be good enough, but in practice we only allow Copilot or Vertex right now. But it looks like the allow list that will be in the next release will be perfect for what I'm trying to setup. Thanks!

@adamcik commented on GitHub (Nov 22, 2025): @jayair disabling the free ones would also be good enough, but in practice we only allow Copilot or Vertex right now. But it looks like the allow list that will be in the next release will be perfect for what I'm trying to setup. Thanks!
Author
Owner

@rekram1-node commented on GitHub (Nov 22, 2025):

@adamcik you can now do this:

{
  "$schema": "https://opencode.ai/config.json",
  "enabled_providers": ["github-copilot", "google-vertex"],
}
@rekram1-node commented on GitHub (Nov 22, 2025): @adamcik you can now do this: ``` { "$schema": "https://opencode.ai/config.json", "enabled_providers": ["github-copilot", "google-vertex"], } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2965