
GLM 5.2 Review: The Open-Source Model Taking On GPT-5.5 at Coding
A new open-weight model has landed that isn’t just “close” to the big labs anymore. GLM 5.2 from Z.ai beats GPT-5.5 on several coding benchmarks and is nearly level with Anthropic’s best on long-running agent tasks. In this post I cover what it is, what the numbers say, and two ways to use it for free, including the demos I ran myself.
What is GLM 5.2?
Z.ai is a Chinese AI lab that has been releasing solid open models under the GLM name for a while. GLM 5.2 is its latest, and the headline feature is a 1 million token context window. Context is the model’s short-term memory: how much text, code, or conversation it can hold at once. A million tokens is roughly 700,000 words, several novels’ worth, and it still remembers page one at the end.
It’s released under the MIT license with fully open weights. Anyone can download it, run it on their own hardware, fine-tune it, or build a product on it.
Under the hood
- Mixture of experts: 753 billion total parameters, but only about 40 billion active per token. It only uses the parts of the network relevant to each task, which keeps it efficient.
- IndexShare: it reuses the same attention index across every four sparse layers, cutting per-token compute by nearly 3x at full context. That’s why the 1M window is actually usable rather than a marketing number.
One caveat: this is a server-grade model. You won’t run it on a gaming PC. Most people will use it through Z.ai’s free chat site or an API.
The benchmarks
These are the figures Z.ai published, which are also tracked on Artificial Analysis and OpenRouter:
- Terminal-Bench 2.1 (using a real command line to get tasks done): 81, the first open-weight model past 80. Claude Opus 4.8 scores 85.
- SWE-Bench Pro (real software engineering tickets): 62.1, ahead of GPT-5.5 at 58.6.
- Frontier SWE (long-horizon work where the model runs for hours on its own): 74.4%, versus 72.6 for GPT-5.5 and 75.1 for Opus 4.8. Essentially a dead heat with Anthropic’s best.
- Design Arena (crowdsourced front-end and UI work): number one with an Elo of 1,360.
Benchmarks never tell the whole story, but for an open model these are remarkable numbers.
The easy way: chat.z.ai (free)
Go to chat.z.ai. There’s nothing to install. Select GLM 5.2 at the top; there’s also a thinking mode you can turn up to max for hard problems. I gave it this prompt:
Create an interactive dashboard that visualizes the planets in our solar system with their relative sizes and orbital speeds.After a short thinking phase it produced all eight planets orbiting the sun. Clicking a planet opened an info panel, and there was a speed slider plus toggles for orbit lines and trails. It also added a compare mode I hadn’t asked for, letting you put two planets’ stats side by side. It worked first time with no revisions.
The power-user way: ZCode
Z.ai also makes ZCode, a coding agent that works across a whole project folder rather than answering one question at a time.
- Open the ZCode docs and download the installer for Mac, Windows, or Linux.
- Launch it and authorize with your Z.ai account. It redirects you to the login page.
- Create a project (or use the default) and describe a task in plain English.
My one-prompt test:
Build a 3D voxel terrain generator with a simple noise-based landscape, with rotate and zoom.It built its own control panel with map size, noise scale, height, octaves, roughness, water level, and a seed number so you can regenerate the same terrain later. Clicking Generate produced a full voxel landscape with mountains, rivers, and trees, and you could rotate, zoom, and pan around it. Again, one prompt and zero revisions.
Using GLM 5.2 inside Claude Code
If you already work in Claude Code, you don’t have to switch tools. With Z.ai’s GLM Coding Plan you can set GLM 5.2 as the model running behind Claude Code and keep your existing workflow. You can also route Claude Code to different models for free with OmniRoute.
Why an open model like this matters
- Privacy: self-host the weights and your prompts never leave your infrastructure. Note that Z.ai’s own hosted API runs on servers in China under Chinese data law. If that matters to you, self-host or use a provider like OpenRouter.
- Control: nobody can quietly restrict your access or raise the price overnight.
- A foundation to build on: open weights let developers create specialized versions for medicine, law, finance, and more.
FAQ
Is GLM 5.2 free?
Yes to try: chat.z.ai is free. The weights are MIT-licensed and free to download, but you need serious server hardware to run them. API use is paid.
Can I run GLM 5.2 locally?
Not on a normal PC. With 753B parameters it needs data-center GPUs. For local models on regular hardware, see running AI locally with Ollama.