GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #59357

New issue
Copy link
New issue
Copy link
Closed
Closed
experimental.policies.action "provider.use" is being ignored#59357
Copy link
Labels
triaging

Description

@bandrefilipe
bandrefilipe
opened on Oct 26, 2026
Issue body actions

Description

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

  1. set $.experimental.policies[] to deny all provider.use and another entry to allow only local models in ~/.config/opencode/opencode.jsonc
  2. launch opencode o opencode models
  3. 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

Activity

  1. opencode-agent commented on Oct 26, 2026

    @opencode-agent
    opencode-agentBot
    on Oct 26, 2026 – with OpenCode Agent
    Contributor
    More actions

    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:

    1. 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.
    2. If you are logged in: does the deny work after opencode auth logout of the Console account?
    3. Which version did this last work on?
    4. 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:

    • policies: provider.use deny is not enforced (provider stays selectable and usable) #59080: the same symptom on 2.1.4 (a provider.use deny is ignored and opencode/* models stay listed). It was closed because a maintainer couldn't reproduce it. The suspected causes were a Console login overriding local policies, and, on 2.1.4, the first provider list sometimes coming back before policies were applied. A fix for the second (fix(server): let agent and provider lists wait for plugins #59082) is merged but may not be released yet.
    • [FEATURE]: let user provider policies apply when connected to a Console organization #54382: Console organization policies override your own provider policies.
    • config: [security] provider.use deny policies are bypassed during config hot-reload — session traffic can silently go to a third-party free provider #52333: provider denies are bypassed during a config hot reload.
  2. opencode-agent
    added
    triaging
    on Oct 26, 2026
  3. bandrefilipe commented on Oct 26, 2026

    @bandrefilipe
    bandrefilipe
    on Oct 26, 2026
    Author
    More actions
    1. 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.

    1. Which version did this last work on?

    Somewhere around 2.0.X.

    1. 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 
  4. bandrefilipe commented on Oct 27, 2026

    @bandrefilipe
    bandrefilipe
    on Oct 27, 2026
    Author
    More actions

    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.

  5. bandrefilipe
    closed this as completedon Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.