跳转到主要内容
客户端与工具

Kilo CLI

在 Kilo CLI 中使用 Token Plan

接入 Kilo CLI 需要修改配置文件 ~/.config/kilo/config.json 中的模型提供商。

安装 Kilo CLI

  1. 安装 Node.js(v18.0 或更高版本)。
  2. 在终端中执行以下命令安装 Kilo CLI:
npm install -g @kilocode/cli
运行以下命令验证安装。若有版本号输出,则表示安装成功。
kilo --version

配置 Token Plan 团队版

  1. 使用文本编辑器打开配置文件 ~/.config/kilo/config.json
vim ~/.config/kilo/config.json
复制并粘贴以下配置内容,将 YOUR_API_KEY 替换为 Token Plan 团队版专属 API Key。可自行设置并切换支持的模型。
{
  "$schema": "https://kilo.ai/config.json",
  "provider": {
    "qwencloud-token-plan": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Qwen Cloud (Token Plan)",
      "options": {
        "baseURL": "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
        "apiKey": "YOUR_API_KEY"
      },
      "models": {
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "qwen3.6-flash": {
          "name": "Qwen3.6 Flash",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "deepseek-v4-pro": {
          "name": "DeepSeek V4 Pro"
        },
        "deepseek-v4-flash": {
          "name": "DeepSeek V4 Flash"
        },
        "deepseek-v3.2": {
          "name": "DeepSeek V3.2"
        },
        "kimi-k2.6": {
          "name": "Kimi K2.6",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "kimi-k2.5": {
          "name": "Kimi K2.5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "glm-5.1": {
          "name": "GLM-5.1",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "glm-5": {
          "name": "GLM-5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "MiniMax-M2.5": {
          "name": "MiniMax M2.5"
        }
      }
    }
  }
}

配置按量计费

YOUR_API_KEY 替换为千问云 API Key。可用模型请参考支持的模型
配置项说明
Base URLhttps://dashscope.aliyuncs.com/compatible-mode/v1
API Key千问云 API Key(格式为 sk-xxxxx
可用模型支持的模型
使用文本编辑器打开 ~/.config/kilo/config.json,写入以下配置:
{
  "$schema": "https://kilo.ai/config.json",
  "provider": {
    "qwencloud": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Qwen Cloud",
      "options": {
        "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1",
        "apiKey": "YOUR_API_KEY"
      },
      "models": {
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        }
      }
    }
  }
}
如需添加其他模型,在 models 中以相同格式追加即可。

使用 Kilo CLI

  1. 配置完成后,重启 Kilo CLI,输入 /models,搜索 Qwen Cloud,选择需要使用的模型。
  2. 开始对话。
更多 Kilo CLI 使用技巧及常见命令请参考 Kilo Code 官方文档

常见问题

错误码

配置过程中遇到报错,请参考对应计费方案的常见问题文档: