OpenCode Zen
OpenCode Zen is a curated list of models recommended by the OpenCode team for coding agents. It is an optional hosted model access path using theopencode provider. Zen is currently in beta.
Prerequisites
- An OpenCode account at opencode.ai
- An API key from the OpenCode dashboard
Quick setup
1. Get an API key
Sign in to the OpenCode dashboard, add billing details, and copy your API key. Store it on the gateway host:2. Run onboarding
3. Configure
apiKey is the name of the environment variable, not the key value itself. Keep secrets in .env, not in committed config files.Both
OPENCODE_API_KEY and OPENCODE_ZEN_API_KEY are supported — either env var will be picked up automatically.Provider settings
| Setting | Value |
|---|---|
| Provider ID | opencode |
| Auth env var | OPENCODE_API_KEY or OPENCODE_ZEN_API_KEY |
| Billing | Per-request via OpenCode dashboard |
Available models
Model availability is curated by the OpenCode team and may change. Prefix any model withopencode/:
Verification
Troubleshooting
401 Unauthorized
401 Unauthorized
Model not found
Model not found
The Zen model catalog is curated and may not include every model. Run
openclaw models list --provider opencode to see current availability.