GeezerVison is showing github.com — experimental.policies.action "provider.use" is being ignored · Issue #59357 · anomalyco/opencode
experimental.policies.action "provider.use" is being ignored #59357DescriptionDescription
OpenCode still lists varying opencode/* models despite configuration:
"experimental": {
"policies": [
{"action": "provider.use", "resource": "*", "effect": "deny"},
{"action": "provider.use", "resource": "ollama", "effect": "allow"}
]
}
Plugins
No response
OpenCode version
2.1.4
Steps to reproduce
- set
$.experimental.policies[] to deny all provider.use and another entry to allow only local models in ~/.config/opencode/opencode.jsonc
- launch
opencode o opencode models
- see that your configuration is being ignored.
It used to work before.
Screenshot
No response
Operating System
Linux archlinux 7.2.11-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Fri, 16 Oct 2026 00:28:42 +0000 x86_64 GNU/Linux
Terminal
cosmic-term 1.10.0 Activityopencode-agent commented on Oct 26, 2026 Thanks for the report! Your config looks valid. experimental.policies is still accepted in 2.1.4, and with deny * followed by allow ollama, only ollama should be left. We've had one other report of this that we couldn't reproduce, so a few details would help:
- Are you logged into the OpenCode Console (an
opencode account shown by opencode auth list), and is that account part of an organization? Console policies are applied after your local ones and take priority, so a Console-side allow for opencode or * would override your local deny.
- If you are logged in: does the deny work after
opencode auth logout of the Console account?
- Which version did this last work on?
- Which providers does
opencode models list? A short excerpt is enough.
You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
Related issues, ordered by likelihood:
bandrefilipe commented on Oct 26, 2026
- Are you logged into the OpenCode Console (an
opencode account shown by opencode auth list), and is that account part of an organization? Console policies are applied after your local ones and take priority, so a Console-side allow for opencode or * would override your local deny.
I am not logged in.
- Which version did this last work on?
Somewhere around 2.0.X.
- Which providers does
opencode models list? A short excerpt is enough.
❯ opencode models
opencode/beam-free
opencode/big-pickle
opencode/deepseek-v4.1-flash-free
opencode/flint-40b-free
opencode/glm-5.3-flash-free
opencode/mimo-v2.6-flash-free
opencode/nemotron-3-ultra-free
opencode/nemotron-3.5-lightning-free
opencode/nemotron-3.5-super-vl-free bandrefilipe commented on Oct 27, 2026 Closing this issue after discovering it was caused my a misconfiguration of ~/.config/opencode/opencode.json.
I've asked opencode to make some tweaks to it's configuration and it renamed opencode.jsonc to opencode.json, which made some leading commas break the configuration file.
The issue is resolved after renaming fixing this.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|