opencode
opencode is a terminal coding agent. Depaza plugs in as a custom provider.
Depaza API key
Model
Your key stays in this browser (local storage) and is sent only to depaza.eu. Every config block on this page fills in automatically. Don’t do this on a shared machine.
opencode reads DEPAZA_API_KEY from the environment at launch. It does not load .env files, so put the export in ~/.zshrc or ~/.bashrc if you want it to persist. opencode.json does not allow trailing commas or comments.
Configure
Write this to ~/.config/opencode/opencode.json for every project, or opencode.json in a project root for one.
{
"$schema": "https://opencode.ai/config.json",
"model": "depaza/{{MODEL}}",
"provider": {
"depaza": {
"npm": "@ai-sdk/openai-compatible",
"name": "Depaza",
"options": {
"baseURL": "{{BASE_URL}}",
"apiKey": "{env:DEPAZA_API_KEY}"
},
"models": {
"core": { "name": "Depaza Core" },
"max": { "name": "Depaza Max" },
"advanced": { "name": "Depaza Advanced" },
"coder": { "name": "Depaza Coder" }
}
}
}
}
export DEPAZA_API_KEY={{KEY}}
opencode
opencode models lists what it resolved. Depaza entries appear as depaza/core.
opencode run -m depaza/{{MODEL}} "Reply with one word: pong"