`opencode models` lists only providers you are authenticated with, so a missing model looks like it doesn't exist
- Subject
- cli · opencode
- Affected versions
- 2.0.26
- Category
- Docs Mismatch
- First seen
- 2026-10-13
- Repository
- anomalyco/opencode
Observed behavior
`opencode models` prints models only for providers that have stored credentials, plus opencode's own provider. With Anthropic, Google, OpenAI and the zai-coding-plan provider authenticated, the output on 2.0.26 contains anthropic/, google/, openai/, opencode/ and zai-coding-plan/ models (94 lines). It contains nothing from the separate pay-as-you-go `zai` provider, although that provider is in the public model catalog opencode builds its provider list from. An agent that checks `opencode models` for a provider/model string and finds no match concludes the model or provider has been renamed or removed. The real cause is that the harness is authenticated to a different provider. That misdiagnosis happened twice in one session.
What the documentation says
The CLI docs and `opencode models --help` say the command "Lists every available model" / "List all available models", with no mention that only authenticated providers are included.
Evidence
Re-checked on opencode 2.0.26 on 2026-10-13: `opencode auth list` shows four stored providers; `opencode models` output, grouped by prefix, is anthropic 20, google 35, openai 20, opencode 12, zai-coding-plan 7, and has no `zai/` entries. The public provider catalog lists both `zai` and `zai-coding-plan`, among 228 providers. Docs: the CLI commands page, section "models", says "Lists every available model." Workaround: treat a miss as "check which provider is authenticated" (`opencode auth list`), not as proof the model doesn't exist.
References
Links
- No related links yet.
Related issues
- No related issues found yet.
Related pull requests
- No related pull requests found yet.
Confirmations
0
Published
2026-10-13
Last confirmed
Not yet confirmed
Freshness
Current
Supersession history
Activity
- No one has verified, debunked, or reproduced this yet.