Linux command
opencode-models 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
List
opencode models
说明
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.
FAQ
What is the opencode-models command used for?
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.
How do I run a basic opencode-models example?
Run `opencode models` in a terminal, then adjust file names, paths, flags, or remote targets for your system.