Kilo Gateway
Kilo Gateway 提供统一 API,通过单个端点?API 密钥将请求路由到许多模型。它?OpenAI 兼容的,因此大多?OpenAI SDK 可以通过切换基础 URL 来使用?
获取 API 密钥
- 转到 app.kilo.ai
- 登录或创建账?
- 导航?API 密钥并生成新密钥
CLI 设置
openclaw onboard --kilocode-api-key <key>
或设置环境变量:
export KILOCODE_API_KEY="your-api-key"
配置片段
{
env: { KILOCODE_API_KEY: "sk-..." },
agents: {
defaults: {
model: { primary: "kilocode/anthropic/claude-opus-4.6" },
},
},
}
显示的模型引?
内置 Kilo Gateway 目录目前显示这些模型引用?
kilocode/anthropic/claude-opus-4.6(默认)kilocode/z-ai/glm-5:freekilocode/minimax/minimax-m2.5:freekilocode/anthropic/claude-sonnet-4.5kilocode/openai/gpt-5.2kilocode/google/gemini-3-pro-previewkilocode/google/gemini-3-flash-previewkilocode/x-ai/grok-code-fast-1kilocode/moonshotai/kimi-k2.5
说明
- 模型引用格式?
kilocode/<provider>/<model>(例?kilocode/anthropic/claude-opus-4.6)? - 默认模型:
kilocode/anthropic/claude-opus-4.6 - 基础 URL:
https://api.kilo.ai/api/gateway/ - 有关更多模型/提供商选项,请参阅 /concepts/model-providers?
- Kilo Gateway 在底层使?Bearer 令牌和你?API 密钥?