Skip to content

Run GLM-5.3 With Claude Code on Windows or WSL

Connect Claude Code directly to GLM-5.3 using Z.AI's Anthropic endpoint, current model ID, reasoning settings, and verification steps.

MGMCSA Guru Team August 8, 2026 3 min read
Claude Code connected directly to GLM-5.3

Z.AI provides an Anthropic-compatible endpoint, so Claude Code can call GLM-5.3 directly. You do not need Claude Code Router or another format-conversion service.

GLM-5.3 is Z.AI’s current flagship model for software engineering and longer agent tasks. It accepts text, has a 1-million-token context window, and can return up to 128,000 tokens. Reasoning is always enabled.

Install Claude Code and create a key

Install Claude Code using the Windows and WSL guide. Subscribe to a GLM Coding Plan or set up the API access you intend to use, then create a key in the Z.AI console.

The Coding Plan is restricted to supported coding tools. Do not treat its key or quota as general API credit for an application, bot, or shared service.

Configure Claude Code

Open ~/.claude/settings.json in WSL. On native Windows, open your user-level Claude settings file. Merge the following values into the existing env object:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_ZAI_API_KEY",
    "ANTHROPIC_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3"
  }
}

Keep any unrelated permissions, hooks, or environment settings already in the file. A missing comma or duplicate top-level key can prevent Claude Code from reading the configuration.

Start and verify

Open a new terminal so it does not retain older provider variables, then start Claude Code inside a project:

cd /path/to/project
claude

Run these commands inside Claude Code:

/status
/model

The status should show https://api.z.ai/api/anthropic, and the active model should be glm-5.3.

Pick a reasoning effort

GLM-5.3 reasoning effort

low Shorter reasoning for routine work
high More reasoning for everyday development tasks
max Deep reasoning for complex engineering work

Z.AI recommends max for complex coding. A lower setting can reduce time and token use on straightforward edits. Claude Code or the provider may control this setting depending on the integration path.

Troubleshooting

If authentication fails, check that the key matches the service you purchased and that an older ANTHROPIC_AUTH_TOKEN is not overriding the settings file. If Claude Code still shows an Anthropic model, close every Claude Code process, open a new terminal, and check /status again.

An error about disabled thinking means an old configuration still sends thinking.type: "disabled". Change it to enabled and use reasoning_effort: "low" if you want the lightest supported reasoning mode.

Image input will fail because GLM-5.3 is text-only. Z.AI lists separate vision-language models, including GLM-5V-Turbo.

GLM-5.3 Claude Code check

  • Create a Z.AI key for the intended service
  • Set the Anthropic endpoint to https://api.z.ai/api/anthropic
  • Use glm-5.3 as the model ID
  • Remove any setting that disables thinking
  • Confirm the endpoint and model with /status and /model

The old GLM-5 configuration is no longer the right default for a new installation. GLM-5.3 changes the context limit and reasoning behavior, so updating only the model name may not be enough when an older client explicitly disables thinking.

For plan details, see the GLM Coding Plan setup. For other clients, see GLM with OpenCode and GLM with Cline.

Frequently asked questions

What model ID should Claude Code use for GLM-5.3?

Use glm-5.3. Z.AI lists it as the current flagship model and makes it available to all GLM Coding Plan users.

Does GLM-5.3 need Claude Code Router?

No. Z.AI provides an Anthropic-compatible endpoint at https://api.z.ai/api/anthropic.

Can I disable reasoning in GLM-5.3?

No. GLM-5.3 always uses reasoning. You can choose low, high, or max reasoning effort.

Does GLM-5.3 accept images?

No. The current GLM-5.3 documentation lists text-only input. Use a Z.AI vision model when the task requires image input.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.