服务商

智谱 · GLM Coding Plan (中国)

Agent 怎样通过 KeyKeeper 拿到 智谱 · GLM Coding Plan (中国) 的 key,在 bigmodel.cn 该选什么,KeyKeeper 怎么验证。

模板 idzhipu-cn-coding(别名 zhipu-coding、zhipu-coding-plan、glm-coding-cn)
字段zai-api-key → ZAI_API_KEY · 密钥
key 长什么样能否再次查看未确认
创建页面bigmodel.cn
KeyKeeper 的验证不验证
模板核实日期2026-09-15

Agent 做什么

keykeeper providers show zhipu-cn-coding
keykeeper save --provider zhipu-cn-coding --from-clipboard --create --purpose "这个任务是做什么的"
keykeeper run -c zhipu-cn-coding -- <你的命令>

--provider zhipu-cn-coding 会补上凭据 ID 和字段名。这些环境变量就是 智谱 · Z.AI 自家工具读的那个,不需要任何映射。

只有你能做的

Sign in to the China Zhipu Open Platform
Subscribe to an individual or team GLM Coding Plan
For an individual plan, create the key under Personal Coding Plan → Plan Overview
For a team plan, obtain the team key under Team Coding Plan → My Plan
个人套餐入口为当前创建页;团队套餐使用 https://bigmodel.cn/coding-plan?z_plan=team 的团队 key。
复制 key,然后在 KeyKeeper 的窗口里确认保存。

该选什么

Use only with officially supported coding tools and the dedicated https://open.bigmodel.cn/api/coding/paas/v4 endpoint (or https://open.bigmodel.cn/api/anthropic for Anthropic Messages). Team Coding Plan keys are not interchangeable with other platform API keys.

Agent 被告知的是同一件事。它替你打开页面、说明该选什么;它从不替你登录、过 2FA 或付费。

KeyKeeper 检查什么

  • 写入前: 值必须像一把 智谱 · GLM Coding Plan (中国) 的 key(没有形状规则)。贴错了会在存入之前被拒绝,并告诉 Agent 原因——不含值。
  • 保存后: 智谱 · GLM Coding Plan (中国) 没有 KeyKeeper 可用的只读接口,第一次真实调用就是测试。

接入地址

这把 key 是下面这些地址的 bearer token。keykeeper run 只设置上面的环境变量,base URL 要你自己在客户端里指。

  • OpenAI Chat Completions——https://open.bigmodel.cn/api/coding/paas/v4(China)
  • Anthropic Messages——https://open.bigmodel.cn/api/anthropic(China)
  • OpenAI Responses——https://open.bigmodel.cn/api/v1(China)

轮换与过期

No universal expiry policy was confirmed for this credential type. Record the date shown by the provider, or leave it unknown. 在 bigmodel.cn 轮换或撤销。