Z.AI · GLM Coding Plan (Global)

How an agent gets a Z.AI · GLM Coding Plan (Global) key through KeyKeeper, what to choose on z.ai, and how KeyKeeper verifies it.

Template idzai-global-coding (also zai-coding, zai-coding-plan, glm-coding-global)
Fieldzai-api-key → ZAI_API_KEY · secret
Key looks likewhether it can be viewed again is unconfirmed
Created atz.ai
Verified by KeyKeepernot verified
Template checked2026-09-15

What the agent does

keykeeper providers show zai-global-coding
keykeeper save --provider zai-global-coding --from-clipboard --create --purpose "what this task does"
keykeeper run -c zai-global-coding -- <your command>

--provider zai-global-coding fills in the credential id and the field. The environment variable is the one 智谱 · Z.AI's own tools read, so nothing has to be mapped.

What only you can do

登录国际 Z.AI 平台
确认个人或团队 Coding Plan 的订阅与 entitlement
从对应套餐页面获取 key;团队使用团队套餐签发的 key
个人套餐使用当前 API key 页并确认订阅;团队套餐使用 https://z.ai/manage-apikey/coding-plan/team/my-plan。
Copy the key, then approve the save in KeyKeeper's window.

What to choose

仅用于允许的 coding 场景:OpenAI 协议 https://api.z.ai/api/coding/paas/v4,Anthropic 协议 https://api.z.ai/api/anthropic。团队 key 与其他平台 key not interchangeable;不把团队规则推断为个人 key 有独立前缀或长度。

The agent is told the same thing. It opens the page for you and says what to pick; it never logs in, passes 2FA or pays on your behalf.

What KeyKeeper checks

  • Before writing: the value must look like a Z.AI · GLM Coding Plan (Global) key (whether it can be viewed again is unconfirmed). A wrong paste is refused before anything is stored, and the agent is told why — without the value.
  • After saving: Z.AI · GLM Coding Plan (Global) offers no read-only endpoint KeyKeeper can use, so the first real call is the test.

Endpoints

The key is a bearer token for these endpoints. keykeeper run sets only the variables above; point your client at the base URL yourself.

  • OpenAI Chat Completions — https://api.z.ai/api/coding/paas/v4 (Global)
  • Anthropic Messages — https://api.z.ai/api/anthropic (Global)
  • OpenAI Responses — https://api.z.ai/api/v1 (Global)

Rotation and expiry

No universal expiry policy was confirmed for this credential type. Record the date shown by the provider, or leave it unknown. Rotate or revoke at z.ai.