List every model available to you
models & providers
// what it does
opencode models prints all models from your connected providers; pass a provider name to filter (opencode models anthropic). opencode pulls the catalog from Models.dev and caches it, so opencode models --refresh forces a re-fetch when a provider ships a new model that is not showing up yet.
// shell
$ opencode models$ opencode models anthropic$ opencode models --refresh// gotcha
The list includes only providers you have authenticated — a model you expect but do not see usually means the provider is not connected (opencode auth login), not that opencode dropped it.