一、前置条件
在开始配置前,确保你已完成以下准备工作:
·订阅 Token Plan 企业版套餐。
·获取模型配置:
·专业套餐模型配置;
·轻享套餐模型配置。
·获取 API Key。
二、安装 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.2": { "name": "GLM-5.2", "options": { "thinking": { "type": "enabled" } } }, "glm-5.3": { "name": "glm-5.3", "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-pro": { "name": "DeepSeek-V4-Pro", "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-1017 原厂直供", "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" } } }, "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-pro-0813": { "name": "DeepSeek-V4-Pro 0813 正式版", "options": { "thinking": { "type": "enabled" } } }, "deepseek/deepseek-flash": { "name": "DeepSeek-V4.1-Flash-1017 原厂直供", "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 分组下的模型。