| name | configure |
| description | Configuration instructions for OpenCode - how to set up LLM providers and API keys |
| author | Tim Sonner |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"configuration","language":"markdown"} |
OpenCode Configuration
With OpenCode you can use any LLM provider by configuring their API keys.
If you are new to using LLM providers, we recommend using OpenCode Zen. It’s a curated list of models that have been tested and verified by the OpenCode team.
Configuration Steps
-
Run the /connect command in the TUI, select opencode, and head to opencode.ai/auth.
/connect
-
Sign in, add your billing details, and copy your API key.
-
Paste your API key.
┌ API key││└ enter
Alternatively, you can select one of the other providers. Learn more.