Skip to content

Run OpenClaw on GLM-5.3: Current Setup

Connect OpenClaw to GLM-5.3 with its built-in Z.AI provider, select the current model, and fix authentication errors.

MGMCSA Guru Team August 18, 2026 3 min read
OpenClaw configured to use GLM from Z.AI as its model backend

OpenClaw now has a built-in Z.AI provider, so the current GLM setup does not need a hand-written OpenAI-compatible provider block. Authenticate through OpenClaw’s onboarding flow, then set zai/glm-5.3 as the model.

This guide covers authentication, model selection, and usage limits. If OpenClaw is not installed, start with the Windows and WSL install guide.

Choose the Z.AI billing route

Z.AI offers metered API access and a Coding Plan with a points quota. A subscription controls spend, but it is not unlimited. Automated OpenClaw jobs can consume the allowance quickly, so check usage before enabling frequent schedules.

GLM vs DeepSeek for OpenClaw

GLM (coding plan)
Billing Flat monthly subscription
Best for Heavy, daily, always-on use
Cost certainty Fixed
Caps Rolling-window usage limits

If your use is light or unpredictable, DeepSeek is probably cheaper. If you lean on OpenClaw all day, GLM’s plan usually wins.

Step 1: get a Z.AI key

Sign up with Z.AI, choose the Coding Plan or metered API billing, and generate a key. Estimate how often OpenClaw will run before buying a subscription. Light, occasional use can cost less with metered billing.

Step 2: use OpenClaw onboarding

openclaw onboard --auth-choice zai-api-key

The built-in provider uses the canonical zai ID and stores authentication in OpenClaw’s credential system. This is safer and less fragile than placing a key in a project file.

Step 3: select GLM-5.3

openclaw models list --provider zai
openclaw models set zai/glm-5.3

OpenClaw model references use provider/model. Listing the provider first confirms which models your installed version and account can see.

Step 4: test it

Start OpenClaw and hand it a task that uses a capability, not just chat:

Read the files in this folder and tell me which ones changed most recently.

A sensible answer means GLM is connected and the assistant can act. If the model talks but can’t reach files, the model is fine and you’re looking at a skill or permission, not GLM.

OpenClaw + GLM checklist

  • Z.AI account created; coding plan vs pay-per-token decided
  • API key generated and set as an environment variable
  • OpenClaw provider set to Z.AI's base URL with a GLM model
  • Per-window usage cap checked if you're on the plan
  • Tested with a task that touches files

When GLM is the right call

The Coding Plan suits frequent sessions and scheduled jobs when its quota matches your workload. Metered billing is easier to justify for occasional use because you pay only when OpenClaw calls the model.

Verify the active model

Start a new session and inspect its model status. If OpenClaw reports a missing provider key, rerun the Z.AI authentication flow for the affected agent. Authentication stores can be agent-specific, so a key available to one agent may not automatically appear in another.

For the alternatives, compare against DeepSeek, or skip API costs entirely with a local Ollama setup.

Frequently asked questions

Why use GLM with OpenClaw instead of DeepSeek?

Billing model. GLM from Z.AI offers a flat monthly coding plan, which is predictable and often cheaper than pay-per-token if you run OpenClaw heavily every day. DeepSeek is pure pay-per-use, better for lighter or bursty use. Pick GLM when you want a fixed monthly cost.

Is GLM compatible with OpenClaw out of the box?

Yes. OpenClaw has a built-in zai provider. Run onboarding with the zai-api-key authentication choice, then select zai/glm-5.3. A custom provider block is not needed for the normal setup.

What's the difference between the GLM coding plan and pay-per-token?

The coding plan is a flat monthly subscription with usage caps in rolling windows; pay-per-token bills you for exactly what you use. Heavy daily use usually comes out cheaper on the plan, while light use is cheaper pay-per-token. Check Z.AI's pricing page for current limits.

Where do I store the GLM API key?

In an environment variable, referenced from OpenClaw's config rather than written into it. That keeps the key out of files you might share or commit. An always-on assistant holds its key for a long time, so handle it carefully.

Do GLM coding plans have usage limits?

Yes, flat plans typically cap usage in rolling windows, similar to other coding subscriptions. For an always-on assistant that loops on tasks, check the per-window quota, not just the monthly price, so a busy day doesn't hit the cap unexpectedly.

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.