帮你快速理解、总结文档立即下载

Kilo CLI

最近更新时间:2026-09-29 14:11:34
我的收藏
Kilo CLI 是 Kilo Code 全栈式 AI 编程代理平台的命令行形态。本文介绍如何在 Kilo CLI 中配置与使用腾讯云大模型 Token Plan 企业版。

前置条件

在开始配置前,确保您已完成以下准备工作:
获取模型配置:

安装 Kilo CLI

在终端执行如下命令安装 Kilo CLI。
说明:
Kilo CLI 通过 npm 安装,需先安装 Node.js(建议 ≥ 18)。如未安装,请访问 Node.js 官网 下载 LTS 版本。
npm install -g @kilocode/cli
安装完成后,您可以执行如下命令检查,输出版本号则表示安装成功。
kilo --version

配置 Token Plan 企业版

1. 打开 Kilo CLI 的配置文件,配置文件路径如下:
macOS/Linux:~/.config/kilo/config.json。
Windows:C:\\Users\\<用户名>\\.config\\kilo\\config.json。
2. 在配置文件中,复制粘贴如下配置,并保存。
注意:
请您将代码中的 <USER_API_KEY> 替换为您的 API Key。下方配置已根据套餐类型预填了 models 列表,可按需保留所需模型。
专业套餐(广州)
专业套餐(新加坡)
轻享套餐(广州)
轻享套餐(新加坡)
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"lkeap": {
"npm": "@ai-sdk/anthropic",
"name": "Tencent Token Plan Enterprise",
"options": {
"baseURL": "https://tokenhub.tencentmaas.com/plan/anthropic/v1",
"apiKey": "<USER_API_KEY>"
},
"models": {
"auto": { "name": "Auto", "options": { "thinking": { "type": "enabled" } } },
"glm-5.3-flash": { "name": "GLM-5.3-Flash", "options": { "thinking": { "type": "enabled" } } },
"glm-5.3": { "name": "GLM-5.3", "options": { "thinking": { "type": "enabled" } } },
"glm-5.2": { "name": "GLM-5.2", "options": { "thinking": { "type": "enabled" } } },
"glm-5": { "name": "GLM-5", "options": { "thinking": { "type": "enabled" } } },
"glm-5.1": { "name": "GLM-5.1", "options": { "thinking": { "type": "enabled" } } },
"glm-5-turbo": { "name": "GLM-5-Turbo", "options": { "thinking": { "type": "enabled" } } },
"kimi-k3": { "name": "Kimi K3", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.7-code": { "name": "Kimi K2.7 Code", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.7-code-highspeed": { "name": "Kimi K2.7 Code HighSpeed", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.6": { "name": "Kimi-K2.6", "options": { "thinking": { "type": "enabled" } } },
"minimax-m2.7": { "name": "MiniMax-M2.7", "options": { "thinking": { "type": "enabled" } } },
"minimax-m3": { "name": "MiniMax-M3", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4.1-flash": { "name": "DeepSeek-V4.1-Flash", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash": { "name": "DeepSeek-V4-Flash", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro": { "name": "DeepSeek-V4-Pro", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash-0731": { "name": "DeepSeek-V4-Flash 0731 正式版", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro-0813": { "name": "DeepSeek-V4-Pro 0813 正式版", "options": { "thinking": { "type": "enabled" } } },
"deepseek/deepseek-flash": { "name": "DeepSeek-V4.1-Flash 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash-202605": { "name": "DeepSeek-V4-Flash 正式版 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro-202606": { "name": "DeepSeek-V4-Pro 正式版 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek/deepseek-v4-flash-vision-exp": { "name": "DeepSeek-V4-Flash-Vision-Exp 原厂直供", "options": { "thinking": { "type": "enabled" } } }
}
}
}
}
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"lkeap": {
"npm": "@ai-sdk/anthropic",
"name": "Tencent Token Plan Enterprise",
"options": {
"baseURL": "https://tokenhub-intl.tencentmaas.com/plan/anthropic/v1",
"apiKey": "<USER_API_KEY>"
},
"models": {
"auto": { "name": "Auto", "options": { "thinking": { "type": "enabled" } } },
"glm-5.3-flash": { "name": "GLM-5.3-Flash", "options": { "thinking": { "type": "enabled" } } },
"glm-5.3": { "name": "GLM-5.3", "options": { "thinking": { "type": "enabled" } } },
"glm-5.2": { "name": "GLM-5.2", "options": { "thinking": { "type": "enabled" } } },
"glm-5": { "name": "GLM-5", "options": { "thinking": { "type": "enabled" } } },
"glm-5.1": { "name": "GLM-5.1", "options": { "thinking": { "type": "enabled" } } },
"glm-5-turbo": { "name": "GLM-5-Turbo", "options": { "thinking": { "type": "enabled" } } },
"kimi-k3": { "name": "Kimi K3", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.7-code": { "name": "Kimi K2.7 Code", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.7-code-highspeed": { "name": "Kimi K2.7 Code HighSpeed", "options": { "thinking": { "type": "enabled" } } },
"kimi-k2.6": { "name": "Kimi-K2.6", "options": { "thinking": { "type": "enabled" } } },
"minimax-m2.7": { "name": "MiniMax-M2.7", "options": { "thinking": { "type": "enabled" } } },
"minimax-m3": { "name": "MiniMax-M3", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4.1-flash": { "name": "DeepSeek-V4.1-Flash", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash": { "name": "DeepSeek-V4-Flash", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro": { "name": "DeepSeek-V4-Pro", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash-0731": { "name": "DeepSeek-V4-Flash 0731 正式版", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro-0813": { "name": "DeepSeek-V4-Pro 0813 正式版", "options": { "thinking": { "type": "enabled" } } },
"deepseek/deepseek-flash": { "name": "DeepSeek-V4.1-Flash 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-flash-202605": { "name": "DeepSeek-V4-Flash 正式版 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek-v4-pro-202606": { "name": "DeepSeek-V4-Pro 正式版 原厂直供", "options": { "thinking": { "type": "enabled" } } },
"deepseek/deepseek-v4-flash-vision-exp": { "name": "DeepSeek-V4-Flash-Vision-Exp 原厂直供", "options": { "thinking": { "type": "enabled" } } }
}
}
}
}
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"lkeap": {
"npm": "@ai-sdk/anthropic",
"name": "Tencent Token Plan Enterprise",
"options": {
"baseURL": "https://tokenhub.tencentmaas.com/plan/anthropic/v1",
"apiKey": "<USER_API_KEY>"
},
"models": {
"auto": {
"name": "Auto",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
}
}
}
}
}
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"lkeap": {
"npm": "@ai-sdk/anthropic",
"name": "Tencent Token Plan Enterprise",
"options": {
"baseURL": "https://tokenhub-intl.tencentmaas.com/plan/anthropic/v1",
"apiKey": "<USER_API_KEY>"
},
"models": {
"auto": {
"name": "Auto",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
}
}
}
}
}

使用 Kilo CLI

配置完成后执行如下命令启动 Kilo CLI。
kilo
输入/models,选择 Tencent Token Plan Enterprise 分组下的模型。