跳转到主要内容
Coding Plan 是各厂商推出的编程包月套餐,适合高频使用 Agent 的场景。CowAgent 支持通过 OpenAI 兼容方式接入各厂商的 Coding Plan 接口。
Coding Plan 的 API Base 和 API Key 通常与普通按量计费接口不通用,请在各厂商平台单独获取。

通用配置格式

所有厂商均可使用 OpenAI 兼容协议接入,可在web控制台快速配置。设置模型厂商为OpenAI,选择自定义模型并填入模型编码,最后填写对应厂商的API Base 和 API Key: 也可通过 config.json 配置文件直接修改:
{
  "bot_type": "openai",
  "model": "模型名称",
  "open_ai_api_base": "厂商 Coding Plan API Base",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
bot_type固定为 openai(OpenAI 兼容方式)
model各厂商支持的模型名称
open_ai_api_base各厂商 Coding Plan 专用 API Base
open_ai_api_key各厂商 Coding Plan 专用 API Key

阿里云

{
  "bot_type": "openai",
  "model": "qwen3.5-plus",
  "open_ai_api_base": "https://coding.dashscope.aliyuncs.com/v1",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
modelqwen3.5-plusqwen3-max-2026-01-23qwen3-coder-nextqwen3-coder-plusglm-5glm-4.7kimi-k2.5MiniMax-M2.5
open_ai_api_basehttps://coding.dashscope.aliyuncs.com/v1
open_ai_api_keyCoding Plan 专用 Key(与按量计费接口不通用)
官方文档:快速开始模型列表

MiniMax

{
  "bot_type": "openai",
  "model": "MiniMax-M2.5",
  "open_ai_api_base": "https://api.minimaxi.com/v1",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
modelMiniMax-M2.5MiniMax-M2.5-highspeedMiniMax-M2.1MiniMax-M2
open_ai_api_base国内:https://api.minimaxi.com/v1;海外:https://api.minimax.io/v1
open_ai_api_keyCoding Plan 专用 Key(与按量计费接口不通用)
官方文档:国内 Key 获取模型列表国际 Key 获取

智谱 GLM

{
  "bot_type": "openai",
  "model": "glm-4.7",
  "open_ai_api_base": "https://open.bigmodel.cn/api/coding/paas/v4",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
modelglm-5glm-4.7glm-4.6glm-4.5glm-4.5-air
open_ai_api_base中国区:https://open.bigmodel.cn/api/coding/paas/v4;全球区:https://api.z.ai/api/coding/paas/v4
open_ai_api_keyAPI Key 与普通接口通用
官方文档:国内版快速开始国际版快速开始

Kimi

{
  "bot_type": "openai",
  "model": "kimi-for-coding",
  "open_ai_api_base": "https://api.kimi.com/coding/v1",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
modelkimi-for-coding
open_ai_api_basehttps://api.kimi.com/coding/v1
open_ai_api_keyCoding Plan 专用 Key(与按量计费接口不通用)
官方文档:Key 获取

火山引擎

{
  "bot_type": "openai",
  "model": "Doubao-Seed-2.0-Code",
  "open_ai_api_base": "https://ark.cn-beijing.volces.com/api/coding/v3",
  "open_ai_api_key": "YOUR_API_KEY"
}
参数说明
modelDoubao-Seed-2.0-CodeDoubao-Seed-2.0-proDoubao-Seed-2.0-liteDoubao-Seed-CodeMiniMax-M2.5Kimi-K2.5GLM-4.7DeepSeek-V3.2
open_ai_api_basehttps://ark.cn-beijing.volces.com/api/coding/v3
open_ai_api_keyAPI Key 与普通接口通用
官方文档:快速开始