Kilo Gateway (kilocode)
Kilo Gateway provides a unified API that routes requests to multiple models behind a single endpoint and API key. It is OpenAI-compatible, so most OpenAI SDKs work by switching the base URL.
Get an API key
- Go to https://app.kilo.ai
- Sign in and generate an API key
CLI setup
openclaw onboard --kilocode-api-key "<key>"Or via env var:
export KILOCODE_API_KEY="your-api-key"Config snippet
{
env: { KILOCODE_API_KEY: "sk-..." },
agents: {
defaults: {
model: { primary: "kilocode/anthropic/claude-opus-4.6" }
}
}
}Notes
- Model refs are
kilocode/<provider>/<model>(example:kilocode/openai/gpt-5.2). - Base URL:
https://api.kilo.ai/api/gateway/ - See /concepts/model-providers for provider config shapes.