Inter-office memo

To
Everyone on Z.ai’s GLM Coding Plan
From
Mo, Chief Executive
Date
November 23, 2026, 7:10 AM CST
Re
GLM-5.4 in Claude Code, OpenCode and Codex

GLM-5.4 is on every GLM Coding Plan. How to use it in Claude Code, and what it costs

On November 23, 2026, Z.ai made GLM-5.4, its first Loop Transformer model, available on every GLM Coding Plan (Lite $18, Pro $80 and Max $168 a month) and in ZCode and Z.ai Chat. It costs about a third fewer plan credits than GLM-5.3, so 50% more of it fits in a week. In Claude Code, set the Opus, Sonnet and Haiku models to glm-5.4[1m]; there’s no API, open weights or benchmark score for it yet.

What Z.ai released

On November 23, 2026, Z.ai, also known as Zhipu AI, released GLM-5.4, “our first flagship model built on the Loop Transformer architecture.” It runs 28 layers of its GLM-5 base model twice for every token, which makes the network deeper without adding parameters, at what the company calls “the 750B scale.” Z.ai says that brings it to “intelligence levels comparable to 2T-3T parameter models.” It also adds vision: Z.ai’s setup guide calls GLM-5.4 a multimodal model, and its 1-million-token context is switched on with a [1m] suffix on the model name.

It went to subscribers first. “GLM-5.4 is now available to all GLM Coding Plan users,” Z.ai’s Zixuan Li posted on X, as The Next Web and TestingCatalog quote it, adding: “For users with weekly quotas, GLM-5.4 now comes with 50% more quota compared to GLM-5.3.” Z.ai’s guide confirms it’s live “for all users (Max, Pro, and Lite).” It’s in Z.ai’s own ZCode app and Z.ai Chat too. The pay-as-you-go API is listed as “Coming Soon,” and the open weights will follow “after completing necessary safety hardening,” with no date for either.

What the GLM Coding Plan costs

There are three plans, each with a five-hour limit and a weekly limit, counted in credits. Prices are as Z.ai’s plan page listed them on November 23, 2026; the credits and token estimates are from its plan overview.

Plan Monthly Yearly, per month Credits every 5 hours Credits a week GLM-5.4 tokens a week, at 95% cache hits
Lite $18 $12.60 2,000 10,000 72 to 146 million
Pro $80 $56 12,000 60,000 440 to 870 million
Max $168 $117.60 28,000 140,000 1,014 to 2,028 million

Paying quarterly takes 20% off. The five-hour credits come back “5 hours after consumption,” and the weekly ones reset every seven days from the day you subscribed. When they run out you wait: calls in supported tools “will only use your Coding Plan quota,” says the FAQ, and never your account balance. Pro and Max also get more requests at once; the usage policy recommends Lite “for developing a single project at a time.” And before you buy, note that “subscriptions are non-refundable once purchased.”

Why GLM-5.4 stretches your quota further

The plan charges each model by multipliers: credits are “(Input tokens × Input multiplier + Cached Input tokens × Cached Input multiplier + Output tokens × Output multiplier) / 10,000.” GLM-5.4’s are about a third lower than GLM-5.3’s, which is where the 50% comes from.

Model Input Cached input Output Lite tokens a week, at 95% cache hits
GLM-5.4 4.6 1.1 16 72 to 146 million
GLM-5.3 6.9 1.7 24 48 to 97 million
GLM-5.3-Flash 2.3 0.56 8 146 to 292 million

By that formula, a million output tokens from GLM-5.4 costs 1,600 credits at peak, a sixth of Lite’s week. “During off-peak hours, model usage is charged at 50% of the standard credit rate,” and peak is “Monday to Friday, 14:00–18:00 Singapore Standard Time (UTC+8).” That’s 6 to 10 a.m. UTC: midnight to 4 a.m. in US Central Time, and 7 to 11 a.m. in Central Europe, while both are on standard time. Off-peak is faster as well: Z.ai says GLM-5.4 “reaches up to 200 tokens/s during off-peak hours and maintains 70–80 tokens/s at peak load.”

Output is the expensive part, and GLM-5.4 can produce a lot of it. Z.ai’s blog says it “tends to get caught in overly long ‘marathon thinking’ loops,” and its default effort is max.

How to switch Claude Code to GLM-5.4

Start from a working setup: Z.ai’s Claude Code guide sets ANTHROPIC_BASE_URL to https://api.z.ai/api/anthropic and ANTHROPIC_AUTH_TOKEN to your plan’s key. Its list of defaults still maps Opus, Sonnet and Haiku to GLM-5.3-Flash, so set the models yourself:

  1. Add the model variables. Open ~/.claude/settings.json and add these keys under env. “Do not replace the entire file,” says Z.ai’s model guide.

    {
      "env": {
        "CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000",
        "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.4[1m]",
        "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.4[1m]",
        "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.4[1m]"
      }
    }
  2. Check it. Start claude and run /status. The model should read glm-5.4 or glm-5.4[1m]. “If Claude Code reports that the model with the [1m] suffix does not exist, please upgrade Claude Code to the latest version and try again.”

  3. Pick an effort. /effort switches thinking intensity. Z.ai maps low to low, medium and high to high, and anything higher to max, and “for coding tasks, we recommend switching to max effort.”

Two choices are worth making. Claude Code uses its Haiku model for “background functionality,” by its environment variables page, and Z.ai’s own Claude Code guide puts Haiku on glm-5.3-flash[1m], at half GLM-5.4’s credits. And ~/.claude/settings.json applies to “You, in every project on this machine,” by Claude Code’s settings docs, so once the Z.ai keys are there, every Claude Code session goes to Z.ai instead of your Claude plan. If you pay for Claude too, put them in a project’s .claude/settings.local.json, which applies to “You, in this one project only” and overrides your user file.

OpenCode, Codex and other tools

  1. OpenCode. Run opencode auth login, choose Z.AI Coding Plan, paste your key, then pick the model with /models, per Z.ai’s guide. OpenCode “includes a provider and model catalog from models.dev,” by its docs, and Models.dev listed GLM-5.4 under the Z.AI Coding Plan on November 23, with a 1,000,000-token context and 131,072 tokens of output.
  2. Codex. It needs Z.ai’s Responses endpoint, https://api.z.ai/api/v1. Z.ai’s Codex guide adds a model catalog at ~/.codex/models.json, then sets model_provider = "ZAI", model = "glm-5.4" and wire_api = "responses" in ~/.codex/config.toml. Its helper, npx @z_ai/coding-helper, sets Codex up for the plan instead.
  3. Cline and other OpenAI-compatible tools. Use https://api.z.ai/api/coding/paas/v4 as the base URL and glm-5.4 as a custom model, tick Support Images, and set the context window to 1000000.

The plan works only in the tools Z.ai lists, among them ZCode, Claude Code, Codex, OpenCode, Cursor, Cline, Kilo Code, Roo Code, Crush and Goose. Using it elsewhere “may result in restricted benefits,” and the usage policy bans account sharing.

If you also pay for Claude or ChatGPT, OpenCode is the way to add GLM-5.4 without changing Claude Code’s or Codex’s settings. Enjoy runs OpenCode beside Claude Code, Codex and the other labs’ agents, each on the plan you already have, and lists every model OpenCode has set up. So GLM-5.4 sits a click from Claude, and you can hand it a conversation when your Claude plan runs low.

If it says “1113 Insufficient Balance”

The request isn’t reaching your plan. Z.ai’s FAQ gives three causes: the tool isn’t one it supports; the base URL isn’t the plan’s, https://api.z.ai/api/anthropic for Claude Code and https://api.z.ai/api/coding/paas/v4 for most others; or the model isn’t one of the plan’s three: “GLM-5.4, GLM-5.3, GLM-5.3-Flash.” Check the key, too: “API Keys for Individual Plans, Team Plans, and the standard model API are managed separately and are not interchangeable,” says the Codex guide. A pay-as-you-go key can’t reach GLM-5.4 for now, since its API isn’t open.

What Z.ai hasn’t said yet

  • How GLM-5.4 scores. The blog charts a 30B test model, not GLM-5.4, and the 2T-to-3T comparison is Z.ai’s own. We found no independent scores for it on November 23.
  • When the API opens, and its price. Only “Coming Soon,” after a safety evaluation.
  • When the weights come out. No date. Z.ai’s Hugging Face page still had GLM-5.3, from August 25, as its newest model.
  • What comes next. “Our next, significantly larger model will carry forward everything we learned here. It will be ready soon.”

If you’re already on the plan, switch now: GLM-5.4 gives you more for the same credits, and you can move back by changing three model names. If you’re deciding whether to buy for it, wait for independent scores, or try a month of Lite first, since the plan is non-refundable.

8.Questions.

How do I use GLM-5.4 in Claude Code?

With your GLM Coding Plan key already set up for Claude Code, add four variables under env in ~/.claude/settings.json, per Z.ai’s guide. Set ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_HAIKU_MODEL to glm-5.4[1m], and CLAUDE_CODE_AUTO_COMPACT_WINDOW to 1000000. Start Claude Code and run /status; the model should read glm-5.4. If it says the [1m] model doesn’t exist, update Claude Code.

Is GLM-5.4 on the GLM Coding Plan Lite?

Yes. Z.ai’s docs say it’s live “for all users (Max, Pro, and Lite).” Lite is $18 a month, or $12.60 a month billed yearly, with 2,000 credits every five hours and 10,000 a week.

Does GLM-5.4 use more quota than GLM-5.3?

No, less. Its credit multipliers are 4.6 for input and 16 for output, against GLM-5.3’s 6.9 and 24, so the same work costs about a third fewer credits. That’s the “50% more quota” Z.ai announced. Every model costs half its credits outside peak hours, Monday to Friday, 2 to 6 p.m. Singapore time.

Is there a GLM-5.4 API or open weights?

Not yet. Z.ai lists the API as “Coming Soon,” to open after a safety evaluation, and plans to open the weights “after completing necessary safety hardening,” with no date for either. On November 23, Z.ai’s newest model on Hugging Face was still GLM-5.3.

Why does GLM-5.4 say “1113 Insufficient Balance”?

Because the request isn’t reaching your plan. Z.ai’s FAQ gives three causes. The tool isn’t one it supports, the base URL isn’t the plan’s (https://api.z.ai/api/anthropic for Claude Code), or the model isn’t GLM-5.4, GLM-5.3 or GLM-5.3-Flash. Plan keys and pay-as-you-go API keys aren’t interchangeable either.

How good is GLM-5.4?

Nobody can say yet. Z.ai claims “intelligence levels comparable to 2T-3T parameter models” but has published no benchmark scores for GLM-5.4. It warns that the model “tends to get caught in overly long ‘marathon thinking’ loops.”

Enjoy Agentic Industries · Checked against its sources on