Kilocode / Kilo Gateway
Kilocode 提供 AI 编程网关服务(Kilo Gateway),可以作为中间层代理 AI API 请求。
配置 OpenClaw
bash
openclaw models auth login --provider kilocode
# 按提示输入 API Key或手动编辑配置文件:
jsonc
// ~/.openclaw/config.json
{
"models": {
"providers": {
"kilocode": {
"apiKey": "xxxxxxxxxxxxxxxxxxxxxxxx",
"baseUrl": "https://api.kilocode.ai/v1"
}
}
}
}支持的模型
Kilocode Gateway 支持路由到多家模型提供商,具体可用模型请查看 Kilocode 控制台。
使用示例:
bash
openclaw models default set kilocode/default功能特性
网关路由
通过 Kilocode Gateway 统一访问多家模型提供商。
编程优化
针对代码生成和分析场景做了特别优化。
环境变量
bash
export KILOCODE_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxx"故障排查
连接失败
- 确认 API Key 有效
- 检查 Kilocode 服务状态
🇨🇳 中国用户须知
- 网络访问:可能需要配置代理访问
- 替代方案:如需网关功能,也可自建 LiteLLM 统一网关
