Skip to content

GLM Coding Plan cheatsheet

Look up, do not study. Default region: global (api.z.ai). China hosts live in the Chinese handbook under docs/zh/products/glm-coding/.

Last verified: 2026-08-19.

Endpoints

Source: Quick Start, Tool Integration.

ProtocolBase URL
Anthropic Messageshttps://api.z.ai/api/anthropic
OpenAI Chat Completionshttps://api.z.ai/api/coding/paas/v4
OpenAI Responseshttps://api.z.ai/api/v1
General API (not the plan)https://api.z.ai/api/paas/v4

Wrong host → plan quota does not apply.

Individual credits

Source: Overview.

Plan5-hour creditsWeekly credits
Lite2,00010,000
Pro12,00060,000
Max28,000140,000
  • 5-hour credits reset 5 hours after consumption.
  • Weekly credits reset every 7 days from subscribe time.
  • Model credits = (input × input multiplier + cached input × cached multiplier + output × output multiplier) / 10,000
  • MCP credits = calls × output multiplier
  • Off-peak model usage is 50% of the standard credit rate. Peak: Monday–Friday 14:00–18:00 Singapore Time (UTC+8).
ProductInputCached inputOutput
GLM-5.36.91.724
GLM-5-Turbo5.71.521
GLM-4.74.61.216
GLM-4.6V (Vision MCP)1.20.32.7
Web Search / Web Reader / Zread MCP1.2

Estimated weekly tokens on GLM-5.3 at 90.9% cache hit: Lite 43–87M; Pro 263–526M; Max 613–1226M.

Overview list price quote: “Starting at just 18 USD per month”. Current SKUs: z.ai/subscribe.

Supported tools (global)

Source: tool/others, 2026-08-19.

Coding Agent: ZCode, Claude Code, Claude for IDE, Codex, OpenCode, Pi, Cursor, Cline, TRAE, Qoder, Droid, Kilo Code, Roo Code, Crush, Goose, Eigent.

General-purpose (best-effort): OpenClaw, Hermes Agent, SillyTavern.

This list is not identical to the China allow-list (China has Lingma / CodeBuddy / Cherry Studio / MonkeyCode; global has Codex / Pi / Eigent / SillyTavern).

Helper auto-load only: Claude Code, OpenCode, Crush, Factory Droid.

Coding Tool Helper

Package: @z_ai/coding-helper. Node.js >= v18.0.0. Bins: coding-helper, chelper.

bash
npx @z_ai/coding-helper
npm install -g @z_ai/coding-helper
coding-helper
coding-helper init
coding-helper lang show
coding-helper lang set en_US
coding-helper auth
coding-helper auth glm_coding_plan_global <token>
coding-helper auth revoke
coding-helper auth reload claude
coding-helper doctor
coding-helper --help
coding-helper --version

China auth flag is glm_coding_plan_china (do not use it on a global key).

Claude Code

bash
npm install -g @anthropic-ai/claude-code
claude --version
claude
claude update
curl -O "https://cdn.bigmodel.cn/install/claude_code_zai_env.sh" && bash ./claude_code_zai_env.sh

The curl installer is macOS / Linux only on the China twin page; the global Claude page publishes the same script URL.

settings.json env from tool/claude: ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic, API_TIMEOUT_MS=3000000.

Cursor

ItemGlobal official text
EligibilityCursor Pro and higher
ProtocolOpenAI
Base URLhttps://api.z.ai/api/coding/paas/v4 (not /api/paas/v4)
Model nameUppercase; examples GLM-4.7, GLM-4.5-air

Glossary index

TermHook
GLM Coding PlanSubscription, not a chat product
Supported toolsOff-list calls do not use plan quota
Coding endpointNot the general /api/paas/v4
Credits5-hour + weekly caps
Best-effort / secondary schedulingOpenClaw-class tools
Team Plan keyNot interchangeable
Coding Tool HelperLoader, not an agent

High-quality sources

Last verified: 2026-08-19.

SourceWhy
docs.z.ai/devpack/overviewModels, credits, price quote
docs.z.ai/devpack/quick-startSubscribe + keys
docs.z.ai/devpack/tool/othersAllow-list + endpoints
docs.z.ai/devpack/tool/claudeClaude Code env
docs.z.ai/devpack/tool/cursorCursor custom model
docs.z.ai/devpack/extension/coding-tool-helperHelper commands
docs.z.ai/devpack/usage-policyAccount rules
docs.z.ai/llms.txtFull docs index
npm @z_ai/coding-helperPackage name + bins
China overviewCN credits + designated tools
z.ai/subscribeLive SKUs

Built for frontend engineers · Powered by VitePress