All providers
glm

GLM-5.4 Coding Plan Provider for Claude Code

GLM-5.4 for main work, GLM-5.3-Flash for fast tasks

Quick startclaude-multi add glm

Use cases

Agentic coding with extended reasoning chains
Day-to-day development on a predictable subscription budget
Multi-file refactoring and architecture work
Code review and test generation

GLM-5.4 is Z.ai’s flagship coding model (released November 23, 2026), sold through the GLM Coding Plan instead of a metered Anthropic API. It brings native vision, a 1M context window, and a 128K output limit to the main coding slots. Because there is no GLM-5.4-Flash, Z.ai pairs GLM-5.4 with GLM-5.3-Flash for lightweight and fast tasks. The endpoint at api.z.ai/api/anthropic speaks Anthropic Messages directly, so Claude Code connects without an adapter.

Model specs

Role Model Context Max output
Primary, opus, sonnet, fable glm-5.4[1m] 1M 128K
Haiku glm-5.3-flash[1m] 1M 128K

The template maps the Claude Code roles to two GLM models. Primary, opus, sonnet, and fable use glm-5.4[1m]. Haiku stays on glm-5.3-flash[1m], since no GLM-5.4-Flash exists.

GLM-5.4 adds native vision input to the flagship tier and uses 1.5x the Coding Plan quota of GLM-5.3. GLM-5.3-Flash is native multimodal as well (text, image, video, and file input), with 320B total parameters and 18B active, and carries 3x the Coding Plan quota of GLM-5.3.

Both models have a 1M window. The [1m] suffix is a Claude Code context hint, not part of the model name sent to Z.ai. It tells Claude Code the real window. Without it, Claude Code assumes 200K for an unrecognized model and compacts early. The template sets both CLAUDE_CODE_MAX_CONTEXT_TOKENS and CLAUDE_CODE_AUTO_COMPACT_WINDOW to 1000000, so both slots use the full window and compact at the same point.

Thinking cannot be disabled on GLM-5.4 or GLM-5.3-Flash. reasoning_effort accepts low, high, and max, defaulting to max on Z.ai. The template sets CLAUDE_CODE_EFFORT_LEVEL to max, enables CLAUDE_CODE_ALWAYS_ENABLE_EFFORT=1, and passes MAX_THINKING_TOKENS=8000 as a client-side hint.

Template status: current

The current template uses glm-5.4[1m] in primary, opus, sonnet, and fable, glm-5.3-flash[1m] in haiku, and the Coding Plan endpoint. It sets CLAUDE_CODE_MAX_CONTEXT_TOKENS to 1000000, CLAUDE_CODE_AUTO_COMPACT_WINDOW to 1000000, CLAUDE_CODE_MAX_OUTPUT_TOKENS to 128000, CLAUDE_CODE_EFFORT_LEVEL to max, CLAUDE_CODE_ALWAYS_ENABLE_EFFORT to 1, MAX_THINKING_TOKENS to 8000, and disables nonessential traffic. No manual edits are needed after claude-multi add glm.

Existing instances created on GLM-5.3 can upgrade in place with claude-multi doctor check followed by claude-multi doctor fix. MAX_THINKING_TOKENS is a client-side hint; Z.ai derives thinking depth from the effort level.

Setup

  1. Get a Coding Plan subscription at z.ai
  2. Copy your API key from the dashboard
  3. Run the setup command:
Terminal window
claude-multi add glm
  1. Paste your API key when prompted

The template writes the base URL, model mappings, context limits, and thinking parameters into ~/.claude-<name>/settings.json.

Pricing details

Usage is metered in credits: (input x input_mult + cached_input x cached_mult + output x output_mult) / 10,000. GLM-5.4 uses fewer credits than GLM-5.3 (4.6 / 1.1 / 16 vs 6.9 / 1.7 / 24), which gives you 1.5x the Coding Plan quota of GLM-5.3, while GLM-5.3-Flash remains the lowest-cost tier on the plan:

Model Input Cached input Output Relative quota
GLM-5.4 4.6 1.1 16 1.5x GLM-5.3 quota
GLM-5.3 6.9 1.7 24 1x baseline
GLM-5.3-Flash 2.3 0.56 8 3x GLM-5.3 quota

At standard rates, GLM-5.4 uses 2x the credits of GLM-5.3-Flash (4.6 vs 2.3 on input and 16 vs 8 on output) and two-thirds the credits of GLM-5.3. Keeping haiku on glm-5.3-flash[1m] preserves quota on lightweight calls, and cached input remains the cheapest line across models, rewarding long sessions that resend the same files.

From November 24 to December 24, 2026, Z.ai charges GLM-5.3-Flash at 50% of its standard rate (1.15 / 0.28 / 4), which doubles the Flash quota for the haiku slot during that window.

Plan 5-hour quota Weekly quota
Lite 2,000 credits 10,000 credits
Pro 12,000 credits 60,000 credits
Max 28,000 credits 140,000 credits

Plans start at $18/month for Lite. Off-peak calls bill at 50% of the standard credit rate. Peak is Monday to Friday, 14:00-18:00 UTC+8, which is 06:00-10:00 UTC. That window lands in the European morning and late night on the US west coast, so check it before scheduling a long batch. Nights, weekends, and weekday mornings and evenings in Asia bill off-peak.

The GLM-5.3 announcement post has background on the Coding Plan credit structure. Z.ai’s Coding Plan docs list the live quotas and multipliers for GLM-5.4 and GLM-5.3-Flash.

What to watch

GLM-5.4 is served through the Coding Plan Anthropic endpoint (api.z.ai/api/anthropic). Z.ai’s metered GLM API uses an OpenAI-compatible URL, and there is no pay-per-token Anthropic route for GLM today, so this template requires a subscription. If Z.ai opens a metered Anthropic endpoint, claude-multi will need a second GLM template. Pointing the current template at the OpenAI URL will not work.

There is no GLM-5.4-Flash model yet, so the haiku slot stays on glm-5.3-flash[1m]. GLM-5.3-FlashX, the 200 tokens/s variant, is not on the Coding Plan either.

  • DeepSeek - pay-per-token, 1M context
  • MiniMax - 1M context window, subscription or per-token
  • Qwen - Alibaba’s Qwen models, pay-per-token or Coding Plan
Pricing

Coding Plan subscription via z.ai