Skip to content

when a provider is defined and added to disabled - it is still used #3417

Closed

Description

@bogorad

Description

in opencode.json i have a provider configured and added to disabled_providers. it is still used unless the definition is completely commented out.

  "disabled_providers": [
    "openai",
    "gemini",
    "anthropic",
    "openrouter"
  ],
  "provider": {
    "openrouter": {
      "options": {
        "apiKey": "{file:/run/secrets/api_keys/openrouter}"
      },
      "models": {
        "google/gemini-2.5-pro": {
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": "32768"
            }
          }
        },
        "qwen/qwen3-235b-a22b-thinking-2507": {
          "options": {
            "provider": {
              "allow_fallbacks": false,
              "order": [
                "chutes",
                "deepinfra/fp8"
              ]
            }
          }
        },
        "qwen/qwen3-coder": {
          "options": {
            "provider": {
              "allow_fallbacks": false,
              "order": [
                // "cerebras/fp8", // fastest but 5x more
                "chutes/bf16",
                "deepinfra/fp8",
                "baseten/fp8"
              ]
            }
          }
        },
        "moonshotai/kimi-k2-0905": {
          "options": {
            "provider": {
              "allow_fallbacks": false,
              "order": [
                "fireworks/fp8",
                "chutes",
                "parasail/fp8",
                "atlas-cloud/fp8"
              ]
            }
          }
        }
      }
    }
....

OpenCode version

0.15.16

Steps to reproduce

use config

Operating System

Both win11 and nixos-25.05

Terminal

wezterm 20250909-070512-bf9a2aee

Activity

  1. github-actions commented on Oct 24, 2025

    @github-actions
    Contributor

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

    • config: support a provider allowlist #2853: [config: support a provider allowlist] - This issue discusses the same problem where disabled_providers configuration is not working as expected and providers defined in the config are still being used despite being in the disabled list.

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

  2. rekram1-node commented on Oct 24, 2025

    @rekram1-node
    Contributor

    It disables it to a degree but we need to stop it from loading in visually and put some guardrails in place

  3. self-assigned this
    on Oct 24, 2025
  4. rekram1-node commented on Dec 19, 2025

    @rekram1-node
    Contributor

    believe this was fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions