Repository navigation
Description
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
- Global
opencode.jsoncas in "Setup" below (two custom local providers,provider.usedeny-all except those two, no API keys). - No signed-in integrations (
opencode auth list→ none). - Open the model picker → empty "Free models" page.
- Ctrl+A → ~336-entry integration list.
- 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
old, expected behavior:
Operating System
No response
Terminal
No response

Activity
opencodejr commentedon Nov 23, 2026
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
/connectlogin) leaves/modelson 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 yourvllm-localandollama-localcounts 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": falseworkaround 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.usedeny policies, isn't covered by that fix, so a separate issue would be the right place for it.