Skip to main content
Use in AI Tools

Kilo CLI

Use Token Plan with Kilo CLI

Install Kilo CLI

  1. Install Node.js (v18.0 or later).
  2. Install Kilo CLI:
npm install -g @kilocode/cli
Run kilo --version to verify.

Set up Token Plan

  1. Open ~/.config/kilo/config.json:
vim ~/.config/kilo/config.json
Paste the configuration below. Replace YOUR_API_KEY with your Token Plan API key. You can configure and switch between supported models as needed.
Only text generation models, such as qwen3.6-plus and glm-5, are supported. DeepSeek V3.2 does not support the Anthropic protocol interface and cannot be used with Kilo CLI. You can integrate it by using tools that support the OpenAI-compatible protocol.
{
  "$schema": "https://kilo.ai/config.json",
  "provider": {
    "qwen-cloud": {
      "npm": "@ai-sdk/anthropic",
      "name": "Qwen Cloud",
      "options": {
        "baseURL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
        "apiKey": "YOUR_API_KEY"
      },
      "models": {
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "MiniMax-M2.5": {
          "name": "MiniMax M2.5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "glm-5": {
          "name": "GLM-5",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        }
      }
    }
  }
}

Use Kilo CLI

  1. Restart Kilo CLI, run /models, search for Qwen Cloud, and select a model.
  2. Start a conversation. For more commands, see the Kilo Code docs.