GLM Coding Plan (2026): which coding tools it supports, and the pay-as-you-go route
On this page
In short. Z.ai's GLM Coding Plan works only in the tools Z.ai lists. The 16 tools, the three endpoints, and how to run GLM in CodeAF on a pay-as-you-go key.
The GLM Coding Plan is Z.ai’s subscription for GLM models in coding tools, and Z.ai limits it to the tools it lists: sixteen coding agents, including Claude Code, OpenCode, Codex, Cline and Z.ai’s own ZCode. CodeAF, the open-source software factory by AgentField, is not on that list today, so to run GLM in CodeAF you use a pay-as-you-go Z.ai key or OpenRouter. This page lists the supported tools, the three plan endpoints, and the pay-as-you-go setup.
CodeAF is built by AgentField, which publishes this page. Z.ai’s terms change; check its FAQ before relying on any line here.
Which coding tools does the GLM Coding Plan support?
Z.ai lists sixteen coding agent tools for the GLM Coding Plan: ZCode, Claude Code, Claude for IDE, Codex, OpenCode, Pi, Cursor, Cline, TRAE, Qoder, Droid, Kilo Code, Roo Code, Crush, Goose and Eigent. It also serves AutoClaw, OpenClaw, Hermes Agent and SillyTavern “on a best-effort basis.”
Z.ai’s FAQ says the plan “is strictly limited to use within officially supported tools and products,” and that “users may not use their subscription benefits for tools or scenarios outside of this scope.” A plan key in a tool that is not listed risks the subscription, so match the tool to the list first.
Which endpoint does the GLM Coding Plan use?
The plan has its own addresses, separate from Z.ai’s pay-as-you-go API, and Z.ai warns that “incorrect endpoint configuration will result in inability to use GLM Coding Plan subscription quota.”
| Protocol | Plan endpoint | Used by |
|---|---|---|
| Anthropic Messages | https://api.z.ai/api/anthropic | Claude Code |
| OpenAI Chat Completions | https://api.z.ai/api/coding/paas/v4 | Cline and other OpenAI-compatible tools |
| OpenAI Responses | https://api.z.ai/api/v1 | Codex CLI |
Z.ai also offers npx @z_ai/coding-helper to configure supported tools for the plan. Setup for Claude Code, OpenCode, Codex CLI and Cline is on the GLM guide.
Can I use the GLM Coding Plan with CodeAF?
Not within Z.ai’s terms today. CodeAF can technically bind Z.ai’s coding-plan door, but Z.ai limits the plan to its listed tools and CodeAF is not one of them. Use a pay-as-you-go Z.ai key or OpenRouter with CodeAF, which keeps you inside Z.ai’s terms and still runs GLM 5.3.
How do I run GLM in CodeAF on pay-as-you-go?
CodeAF connects to Z.ai natively with your own key, or through OpenRouter. It takes about two minutes.
-
Install and start CodeAF:
Shellcurl -fsSL https://agentfield.ai/get/codeaf | bash codeaf -
In the chat, open
/connectand choose Z.ai. PickInternationalorChina, then paste your Z.ai pay-as-you-go key, or the name of an environment variable such as$ZHIPU_API_KEY. -
CodeAF checks the key with a one-token call before saving anything, and the connect line names the billing door it bound.
-
Pick
glm-5.3with/model, then type a task. For a large change,/senior-devand the brief.
To go through OpenRouter instead, codeaf connect openrouter signs in with your browser, and the model is z-ai/glm-5.3. On 2026-11-23 CodeAF v0.8.2 ran z-ai/glm-5.3 through OpenRouter and fixed a failing pytest test end to end.
How much does GLM cost on pay-as-you-go?
GLM 5.3 on OpenRouter listed $0.07 per million input tokens and $1.40 per million output on 2026-11-23; Z.ai’s own pay-as-you-go price was $1.40 in and $4.40 out. glm-5.3-flash costs about a tenth of GLM 5.3 on Z.ai.
| Model | OpenRouter in / out per 1M | Z.ai pay-as-you-go in / out per 1M |
|---|---|---|
glm-5.3 | $0.07 / $1.40 | $1.40 / $4.40 |
glm-5.3-flash | $0.12 / $0.38 | $0.15 / $0.50 |
CodeAF holds each task to $5 unless you change it, and /budget sets a daily limit (budgets), so a pay-as-you-go key does not run away.
Plan or pay-as-you-go: which should I pick?
- Pick the GLM Coding Plan when you use one of the sixteen listed tools every day and want a fixed monthly bill.
- Pick pay-as-you-go or OpenRouter when you want GLM in a tool that is not on the list, such as CodeAF, or you want to run several tasks at once with spend held per task.
Why run GLM in CodeAF at all: it runs many tasks at once, each on its own branch, and on one fixed model the harness decides much of the result. With ten harnesses on DeepSeek V4 Flash, CodeAF solved 62 of 113 DeepSWE tasks and the results ran down to 3 (DeepSWE). That was measured on DeepSeek, not GLM.
Questions people ask
Which tools can use the GLM Coding Plan?
Z.ai lists sixteen: ZCode, Claude Code, Claude for IDE, Codex, OpenCode, Pi, Cursor, Cline, TRAE, Qoder, Droid, Kilo Code, Roo Code, Crush, Goose and Eigent, plus four served on a best-effort basis. Z.ai says the plan may not be used outside that scope.
Does CodeAF support the GLM Coding Plan?
CodeAF is not on Z.ai’s list of supported plan tools today, so use a pay-as-you-go Z.ai key or OpenRouter with it. CodeAF has a native Z.ai provider for that: /connect, choose Z.ai, pick your region and paste the key.
What is the GLM Coding Plan endpoint?
https://api.z.ai/api/anthropic for Anthropic-format tools such as Claude Code, https://api.z.ai/api/coding/paas/v4 for OpenAI Chat Completions tools, and https://api.z.ai/api/v1 for OpenAI Responses tools such as Codex CLI.
Which GLM model should I use for coding?
Start with glm-5.3, which OpenRouter describes as “built for complex software engineering and long-horizon agent tasks,” with a 1M-token context. Use glm-5.3-flash when cost matters more than depth. Z.ai’s plan docs also name a newer GLM-5.4, included in all plans.
Sources
- Z.ai GLM Coding Plan overview and FAQ, checked 2026-11-23.
- Z.ai tool integration and Claude Code setup, checked 2026-11-23.
- Z.ai pricing and the OpenRouter models API, checked 2026-11-23.
- CodeAF docs: choose the model and budgets; CodeAF v0.8.2 end-to-end run of
z-ai/glm-5.3through OpenRouter, 2026-11-23. - DeepSWE results, measured on DeepSeek V4 Flash.
Last updated 2026-11-30.