OpenCode setup
Use Quota as a standard OpenAI-compatible endpoint in OpenCode.
Point OpenCode at the Quota base URL, add your API key, and keep one balance for your coding agents.
Step 1
Create a Quota API key in the dashboard.
Step 2
Open your OpenCode provider configuration.
Step 3
Set the Quota base URL, API key, and model alias.
json
{
"provider": "openai-compatible",
"baseUrl": "https://api.quota.host/v1",
"apiKey": "qta_live_...",
"model": "quota/sonnet"
}Controlled-user guidance
Quota works as a standard OpenAI-compatible endpoint. Keep model aliases explicit, review route multipliers, and avoid sending highly sensitive data through best-effort community routes.
401 invalid key
Check the API key value and confirm the key is still active in Quota.
402 insufficient balance
Add more Quota Tokens or switch to a lower-cost route.
429 rate limited
Retry with backoff or use a different API key with separate limits.
503 route unavailable
Route availability can vary. Check status and try another route alias.