Guide CodeAF Published

GLM Coding Plan (2026): which coding tools it supports, and the pay-as-you-go route

On this page
  1. Which coding tools does the GLM Coding Plan support?
  2. Which endpoint does the GLM Coding Plan use?
  3. Can I use the GLM Coding Plan with CodeAF?
  4. How do I run GLM in CodeAF on pay-as-you-go?
  5. How much does GLM cost on pay-as-you-go?
  6. Plan or pay-as-you-go: which should I pick?
  7. Questions people ask
  8. Sources

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.”

ProtocolPlan endpointUsed by
Anthropic Messageshttps://api.z.ai/api/anthropicClaude Code
OpenAI Chat Completionshttps://api.z.ai/api/coding/paas/v4Cline and other OpenAI-compatible tools
OpenAI Responseshttps://api.z.ai/api/v1Codex 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.

  1. Install and start CodeAF:

    Shell
    curl -fsSL https://agentfield.ai/get/codeaf | bash
    codeaf
  2. In the chat, open /connect and choose Z.ai. Pick International or China, then paste your Z.ai pay-as-you-go key, or the name of an environment variable such as $ZHIPU_API_KEY.

  3. CodeAF checks the key with a one-token call before saving anything, and the connect line names the billing door it bound.

  4. Pick glm-5.3 with /model, then type a task. For a large change, /senior-dev and 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.

ModelOpenRouter in / out per 1MZ.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

Last updated 2026-11-30.

Read next