OpenCode
Configure OpenCode to use the gateway as an OpenAI-compatible provider.
Provider config
Set OpenCode to use an OpenAI-compatible provider, then point it to the Zunova OpenAI proxy base URL.
{
"provider": "openai",
"apiKey": "sk-zn-xxxx",
"baseURL": "https://api.zunova.net/open/v1",
"model": "zunova-m1"
}Environment config
Prefer environment variables for local development and CI environments.
export ZUNOVA_API_KEY=sk-zn-xxxx
export OPENAI_API_KEY=$ZUNOVA_API_KEY
export OPENAI_BASE_URL=https://api.zunova.net/open/v1Validate the setup
- Run a small prompt first before starting a long coding task.
- Confirm the model identifier exists in Dashboard → Models or
/open/v1/models. - If the tool reports unauthorized, confirm the key is copied without whitespace.
- If the tool reports model not found, switch to an active Zunova public model id.