OpenCode
OpenCode, the open-source coding agent with terminal, desktop and IDE front ends, adds providers through opencode.json. An OpenAI-compatible provider entry is all ozeye needs.
Configure
// opencode.json (project) or ~/.config/opencode/opencode.json (user)
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ozeye": {
"npm": "@ai-sdk/openai-compatible",
"name": "ozeye",
"options": {
"baseURL": "https://ozeye.ai/v1",
"apiKey": "{env:OZEYE_API_KEY}"
},
"models": {
"glm-5.3": { "name": "GLM 5.3" },
"kimi-k2.6": { "name": "Kimi K2.6" },
"glm-5.3-flash": { "name": "GLM 5.3 Flash" }
}
}
},
"model": "ozeye/glm-5.3"
}
export OZEYE_API_KEY="oz_your_key_here"
opencode # /models lists the ozeye entries
The top-level model skips the picker on start. Every model you want in /models must be declared under models; use ids from the models page. The desktop app reads the same file; quit and reopen it after editing.
Troubleshooting
- Provider missing after editing: restart OpenCode; the config is read on launch.
- 401:
OZEYE_API_KEYis not set in the environment OpenCode runs in, or the key was revoked. - Model not found: the id must appear in the provider's
modelsblock and match the models page exactly.