OpenCode
Open-source terminal coding agent, running on Omnizen models - one command, no config files.
The easy way: omnizen launch opencode
Install our CLI once, log in once, then run OpenCode the same way you always have - except it's now routed through Omnizen with no config edits.
npm install -g omnizen-cli # one-time
omnizen login # browser-based, no copy/paste
omnizen launch opencode # OpenCode, routed through OmnizenOpenCode's /models menu shows everything in your Omnizen catalog. Switch between them with the same flow you'd use otherwise - Omnizen handles the routing.
Don't have OpenCode?
npm install -g opencode-aiAlpine / musl users: OpenCode ships a glibc binary. Use Ubuntu, Debian, or any glibc-based image instead.
Manual setup (if you'd rather configure it yourself)
1. Get an API key
Go to your dashboard → API keys, click Create API key, and copy the sk-… token.
2. Configure Omnizen as a provider
Create or edit ~/.config/opencode/config.json (Windows: %APPDATA%\opencode\config.json):
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"omnizen": {
"npm": "@ai-sdk/openai-compatible",
"name": "Omnizen",
"options": {
"baseURL": "https://api.omnizen.ai/v1",
"apiKey": "sk-…paste-your-omnizen-key-here"
},
"models": {
"deepseek-flash": { "name": "DeepSeek Flash" },
"deepseek-pro": { "name": "DeepSeek Pro (reasoning)" },
"kimi-k2.6": { "name": "Kimi K2.6 (262K context)" },
"claude-3-5-haiku-20241022": { "name": "Claude 3.5 Haiku alias" },
"claude-3-5-sonnet-20241022": { "name": "Claude 3.5 Sonnet alias" }
}
}
}
}Add or remove models freely - anything in your Omnizen catalog works. The provider is OpenAI-compatible.
3. Smoke-test it
opencode run --model omnizen/deepseek-flash "what is 2+2?"Tips
- Reasoning models need bigger budgets. Models like
kimi-k2.6internally consume tokens to "think" before replying - set--max-tokenshigh enough (e.g. 1500+) or the visible reply may be empty. - Per-project config. Drop a project-local
opencode.jsonat your repo root to scope a single codebase to a dedicated Omnizen key. - Same key, multiple tools. The exact same
sk-…token works for Claude Code, Aider, Continue, Cursor, and any OpenAI-compatible client.