Skip to content

Model picker asks for an API key for already-configured local providers and hides them behind the "Free models" page #65833

Closed as duplicate

Description

@claudiushaag

Description

On OpenCode v2.4.0 (Linux, TUI) with only self-hosted, keyless OpenAI-compatible providers configured, the model picker (Ctrl+X → M or /models) opens on a "Free models" page that is empty for me, with the hint "Connect a provider for access to more models". Pressing Ctrl+A ("provider list") then shows the full catalog of ~336 connectable integrations, including my custom providers. Clicking one of them starts a connect flow that asks to "Manually enter API Key" — even though the provider is already defined in my opencode.jsonc, is actively in use, and its endpoint requires no authentication at all.
Net effect: a local-only setup that hides the rest of the catalog via provider.use policies has no way to pick a model without going through a misleading API-key prompt. The classic picker (before the new-designs experiment) simply listed my configured models.

Plugins

opencode-tps-meter@latest

OpenCode version

v2.4.0

Steps to reproduce

  1. Global opencode.jsonc as in "Setup" below (two custom local providers, provider.use deny-all except those two, no API keys).
  2. No signed-in integrations (opencode auth list → none).
  3. Open the model picker → empty "Free models" page.
  4. Ctrl+A → ~336-entry integration list.
  5. Click vllm-local → API key prompt.

A provider that is already configured and usable should present its models directly in the picker, with no connect/key flow. Also worth considering: the integration list currently ignores provider.use deny policies (336 entries visible despite the deny-all), which makes the picker feel broken for curated setups.

Workarounds found

  • "experimental": { "new-designs": false } in ~/.config/opencode/cli.json → restores the classic picker with my models.
  • Completing the connect flow with a dummy key (my local servers ignore it).

Setup

opencode v2.4.0 (latest channel), Linux, TUI. Two local inference servers (vLLM and Ollama), reachable over SSH port forwarding to 127.0.0.1. Global ~/.config/opencode/opencode.jsonc (excerpt, anonymized):

{
  "$schema": "https://opencode.ai/config.json",
  "model": "vllm-local/RedHatAI/Qwen3.8-27B-INT4",
  "policies": [
    { "action": "provider.use", "resource": "*", "effect": "deny" },
    { "action": "provider.use", "resource": "vllm-local", "effect": "allow" },
    { "action": "provider.use", "resource": "ollama-local", "effect": "allow" }
  ],
  "providers": {
    "vllm-local": {
      "name": "vLLM (local)",
      "package": "aisdk:@ai-sdk/openai-compatible",
      "settings": { "baseURL": "http://127.0.0.1:11437/v1" },
      "models": {
        "RedHatAI/Qwen3.8-27B-INT4": { "name": "Qwen 3.8 27b" }
      }
    },
    "ollama-local": {
      "name": "Ollama (local)",
      "package": "aisdk:@ai-sdk/openai-compatible",
      "settings": { "baseURL": "http://127.0.0.1:11434/v1" },
      "models": { "/* 4 local models, same shape */": {} }
    }
  }
}

Both providers are confirmed healthy on the server side — /api/provider and /api/model return exactly these two providers and their five models with the configured names and variants, and sessions run on them fine. The issue is purely in the picker's presentation.
Hope that helps narrow it down — happy to provide logs or a screen recording if useful.

Screenshot

experimental setting true:
image

old, expected behavior:

image

Operating System

No response

Terminal

No response

Activity

  1. opencodejr commented on Nov 23, 2026

    @opencodejr
    Contributor

    Thanks for the detailed report and the workarounds. I think this is a duplicate of #60587.

    According to #65793, v2.4.0 turned the new designs on by default. Since then, a provider that is only declared in your config (with no /connect login) leaves /models on the empty "Free models" picker. The cause is that the TUI only counted signed-in integrations as "connected". #65793 fixes that check, so a config-only provider like your vllm-local and ollama-local counts as connected and its models show up in the picker. That PR was merged after v2.4.0 and closed #60587. Until a release includes it, your "new-designs": false workaround is the way to go.

    Possible duplicates and related issues, ordered by likelihood:

    I'm closing this issue now as a duplicate of #60587. Please add any further details there. If you think this is a different problem, reply here and this issue will reopen. Your separate point, that the provider list ignores provider.use deny policies, isn't covered by that fix, so a separate issue would be the right place for it.

  2. added
    area/providers
    type/bug
    version/v2
    on Nov 23, 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

    area/providersplatform/linuxtype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions