すべてのプロダクト
Search
ドキュメントセンター

Alibaba Cloud Model Studio:Kilo CLI

最終更新日:Jun 26, 2026

Kilo CLI は Kilo Code のコマンドラインクライアントです。従量課金、Coding Plan、または Token Plan (Team Edition) を通じて Alibaba Cloud Model Studio に接続します。

Kilo CLI のインストール

  1. Node.js (v18.0 以降) をインストールします。

  2. ターミナルで次のコマンドを実行して Kilo CLI をインストールします。

    npm install -g @kilocode/cli

    次のコマンドを実行して、インストールを検証します。バージョン番号が表示されたら、インストールは成功です。

    kilo --version

アクセス認証情報の設定

テキストエディターで設定ファイル ~/.config/kilo/config.json を開き、選択したプランの設定を追加します。

  • Token Plan (Team Edition):シートごとのサブスクリプションで、トークン消費量に基づいてクレジットが差し引かれます。

  • Coding Plan:月額固定のサブスクリプションで、モデルの呼び出し回数によって計測されます。

  • 従量課金:実際の使用量に基づく後払いです。

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/openai-compatible",
      "name": "Alibaba Cloud Model Studio",
      "options": {
        "baseURL": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
        "apiKey": "YOUR_API_KEY"
      },
      "models": {
        "qwen3.7-max": {
          "name": "Qwen3.7 Max",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "qwen3.7-plus": {
          "name": "Qwen3.7 Plus",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "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.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",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        },
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "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_KEYAlibaba Cloud Model Studio の API キーに置き換えます。利用可能なモデルについては、「OpenAI 互換 - 対応モデル」をご参照ください。

リージョンに応じて baseURL を設定します。API キーは、選択したリージョンに対応している必要があります。

  • 中国北部 2 (北京):https://dashscope.aliyuncs.com/compatible-mode/v1

  • Singapore:https://{WorkspaceId}.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1WorkspaceId を実際のワークスペース ID に置き換えます。

  • US (Virginia):https://dashscope-us.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",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        },
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 1024
            }
          }
        }
      }
    }
  }
}

その他のモデルを追加するには、 models 内に同じ形式で追記します。

設定の検証

設定を保存した後、Kilo CLI を再起動し、 /models と入力して Alibaba Cloud Model Studio を検索し、使用したいモデルを選択して会話を開始します。

よくある質問

エラーコード

設定中にエラーが発生した場合は、対応する料金プランの「よくある質問」をご参照ください。