Kilo CLI は Kilo Code のコマンドラインクライアントです。従量課金、Coding Plan、Token Plan Personal Edition、または Token Plan Team Edition を介して Alibaba Cloud Model Studio に接続します。
Kilo CLI のインストール
- Node.js (v18.0 以降) をインストールします。
- ターミナルで次のコマンドを実行して Kilo CLI をインストールします。
npm install -g @kilocode/cli
次のコマンドを実行してインストールを確認します。バージョン番号が表示された場合、インストールは成功しています。
kilo --version
アクセス認証情報の設定
テキストエディタで設定ファイル ~/.config/kilo/config.json を開き、選択した料金プランの設定を追加します。
- Token Plan Personal Edition: トークン消費量に基づいて個人クレジットを消費する個人向けサブスクリプションです。
- Token Plan Team Edition: シートごとのサブスクリプションで、トークン消費量に基づいてクレジットを消費します。
- Coding Plan: 月額固定のサブスクリプションで、モデル呼び出し回数で計測します。
- 従量課金: 実際の使用量に基づく後払いです。
Token Plan Personal Edition
まず、有効なサブスクリプションのある Token Plan Personal Edition パッケージを購入する必要があります。パッケージは Token Plan Personal Edition ページで購入できます。
YOUR_API_KEY を Token Plan Personal Edition 専用の API キーに置き換えます。利用可能なモデルについては、Token Plan Personal Edition のサポートされているモデルをご参照ください。
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"bailian-token-plan-personal": {
"npm": "@ai-sdk/anthropic",
"name": "Alibaba Cloud Model Studio",
"options": {
"baseURL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"qwen3.8-max": {
"name": "Qwen3.8 Max",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 262144
}
}
},
"qwen3.7-max": {
"name": "Qwen3.7 Max",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"qwen3.7-plus": {
"name": "Qwen3.7 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"qwen3.6-flash": {
"name": "Qwen3.6 Flash",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"glm-5.2": {
"name": "GLM-5.2",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"deepseek-v4.1-flash": {
"name": "DeepSeek V4.1 Flash"
},
"deepseek-v4-pro": {
"name": "DeepSeek V4 Pro"
},
"deepseek-v4-pro-0813": {
"name": "DeepSeek V4 Pro 0813"
},
"deepseek-v4-flash-0731": {
"name": "DeepSeek V4 Flash 0731"
}
}
}
}
}
Token Plan Team Edition
まず、有効なサブスクリプションのある Token Plan Team Edition パッケージを購入する必要があります。パッケージは Token Plan Team Edition ページで購入できます。
YOUR_API_KEY を Token Plan Team Edition 専用の API キーに置き換えます。利用可能なモデルについては、Token Plan Team Edition のサポートされているモデルをご参照ください。
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"bailian-token-plan": {
"npm": "@ai-sdk/anthropic",
"name": "Alibaba Cloud Model Studio",
"options": {
"baseURL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"qwen3.8-max": {
"name": "Qwen3.8 Max",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 262144
}
}
},
"qwen3.7-max": {
"name": "Qwen3.7 Max",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"qwen3.7-plus": {
"name": "Qwen3.7 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"qwen3.6-plus": {
"name": "Qwen3.6 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"qwen3.6-flash": {
"name": "Qwen3.6 Flash",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"deepseek-v4.1-flash": {
"name": "DeepSeek V4.1 Flash"
},
"deepseek-v4-pro": {
"name": "DeepSeek V4 Pro"
},
"deepseek-v4-pro-0813": {
"name": "DeepSeek V4 Pro 0813"
},
"deepseek-v4-flash": {
"name": "DeepSeek V4 Flash"
},
"deepseek-v4-flash-0731": {
"name": "DeepSeek V4 Flash 0731"
},
"deepseek-v3.2": {
"name": "DeepSeek V3.2"
},
"kimi-k2.7-code": {
"name": "Kimi K2.7 Code",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 8192
}
}
},
"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.2": {
"name": "GLM-5.2",
"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"
}
}
}
}
}
Coding Plan
YOUR_API_KEY を Coding Plan 専用の API キーに置き換えます。利用可能なモデルについては、Coding Plan のサポートされているモデルをご参照ください。
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"bailian-coding-plan": {
"npm": "@ai-sdk/anthropic",
"name": "Alibaba Cloud Model Studio",
"options": {
"baseURL": "https://coding-intl.dashscope.aliyuncs.com/apps/anthropic/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"qwen3.7-plus": {
"name": "Qwen3.7 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
},
"qwen3.6-plus": {
"name": "Qwen3.6 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
},
"qwen3.5-plus": {
"name": "Qwen3.5 Plus",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
},
"qwen3-max-2026-01-23": {
"name": "Qwen3 Max 0123"
},
"qwen3-coder-next": {
"name": "Qwen3 Coder Next"
},
"qwen3-coder-plus": {
"name": "Qwen3 Coder Plus"
},
"MiniMax-M2.5": {
"name": "MiniMax M2.5"
},
"glm-5": {
"name": "GLM-5",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
},
"glm-4.7": {
"name": "GLM-4.7"
},
"kimi-k2.5": {
"name": "Kimi K2.5",
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
}
}
}
}
}
従量課金
YOUR_API_KEY を Alibaba Cloud Model Studio の API キーに置き換えます。利用可能なモデルについては、OpenAI 互換 - サポートされているモデルをご参照ください。
リージョンに応じて baseURL を設定します。API キーは選択したリージョンに対応している必要があります。URL 内の {WorkspaceId} を実際のワークスペース ID に置き換えます。
- 中国北部 2 (北京):
https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1 - シンガポール:
https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1 - 米国 (バージニア):
https://{WorkspaceId}.us-east-1.maas.aliyuncs.com/compatible-mode/v1
{
"$schema": "https://kilo.ai/config.json",
"provider": {
"bailian": {
"npm": "@ai-sdk/openai-compatible",
"name": "Alibaba Cloud Model Studio",
"options": {
"baseURL": "https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
"apiKey": "YOUR_API_KEY"
},
"models": {
"qwen3.7-plus": {
"name": "Qwen3.7 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
},
"qwen3.6-plus": {
"name": "Qwen3.6 Plus",
"modalities": {
"input": ["text", "image"],
"output": ["text"]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 1024
}
}
}
}
}
}
}
他のモデルを追加するには、models 内に同じ形式で追加します。
設定の確認
設定を保存した後、Kilo CLI を再起動し、/models と入力して Alibaba Cloud Model Studio を検索し、使用するモデルを選択して会話を開始します。
その他のヒントや一般的なコマンドについては、Kilo Code 公式ドキュメントをご参照ください。
よくある質問
エラーコード
設定中にエラーが発生した場合は、対応する料金プランのよくある質問ドキュメントをご参照ください。
- 従量課金: OpenAI 互換 - エラーコード
- Coding Plan: Coding Plan よくある質問
- Token Plan Personal Edition: Token Plan Personal Edition よくある質問
- Token Plan Team Edition: Token Plan Team Edition よくある質問