opencode-models

List available OpenCode AI models

TLDR

List all available models from configured providers
$ opencode models

SYNOPSIS

opencode models

DESCRIPTION

opencode models lists all available AI models from the configured providers in OpenCode, an open-source AI coding assistant. It shows model names, providers, and availability based on current API key configuration. Supported providers include OpenAI, Anthropic, Google Gemini, AWS Bedrock, Groq, Azure OpenAI, OpenRouter, and local models via Ollama.This subcommand is useful for verifying which models are accessible before starting a coding session.

INSTALL

sudo pacman -S opencode
brew install opencode
nix profile install nixpkgs#opencode

SEE ALSO

opencode(1), opencode-auth(1)