Someone added Z.ai's GLM-5.2 to an open-source Python rebuild of Claude Code

Reddit r/AI_Agents Tools

Summary

ClawCodex, an open-source Python rebuild of Claude Code, now supports Z.ai's GLM-5.2 as a first-class provider, with a demo showing it building a FIFA World Cup 2026 intro page in one shot.

Been hunting for coding agents that aren't married to a single vendor, and I keep landing on this open-source project called **ClawCodex** — a from-scratch **Python** rebuild of Claude Code (the terminal CLI agent). Same workflow you'd expect: streaming chat in your shell, tool-calling on your actual files, saved sessions, markdown skill files. The twist is it routes a stack of providers through one agent loop instead of one model family — Anthropic, OpenAI, DeepSeek, Gemini, MiniMax, OpenRouter, and now Z.ai. The update that caught my eye: they just made **Z.ai's GLM Coding Plan a first-class provider** (`zai`). It talks to Z.ai's OpenAI-compatible coding endpoint, ships **GLM-5.1** as the default and **GLM-5.2** as an opt-in preview. Older builds had a half-broken "glm" integration pinned to the legacy Zhipu SDK; this rips that out and routes through the standard OpenAI-style API, so base URL + model overrides actually work now. The claim that made me bother testing it: **they reckon GLM-5.2 trades blows with Claude Opus 4.7 on coding** — at GLM pricing. Take that with the usual grain of salt, but the artifact they shipped to back it up is legit fun: They handed GLM-5.2 a single prompt and had it build a **FIFA World Cup 2026 intro page**, end-to-end, no hand-edits. One self-contained HTML file: - Animated hero with a **live countdown** to kickoff - The **three host nations** (USA / Canada / Mexico) - **16 stadiums**, tournament format, and record-breaking facts - Scroll-reveal animations + animated stat counters, all vanilla JS It's in the repo under `demos/wc26-intro/` — just open the `index.html`, no build step. Honestly cleaner than a lot of hand-rolled landing pages I've seen. Why I think it's worth a look: - A genuinely capable **non-Anthropic** model slotted into a Claude-Code-grade workflow - Swap providers/regions/price tiers without rebuilding your setup - It's all open source — you can read exactly how the provider is wired (it's basically the OpenAI-compatible base class + the Z.ai endpoint) Search **ClawCodex** on GitHub if you want to poke at it. The provider port + the World Cup demo both just landed on main. Anyone else benchmarked GLM-5.2 against Opus-class models for real coding work yet? Curious whether the "comparable to Opus 4.7" claim holds up outside a one-shot landing page.
Original Article

Similar Articles

zai-org/GLM-5.2 is here!

Reddit r/LocalLLaMA

Z.AI releases GLM-5.2, a new flagship model with a solid 1M-token context, enhanced coding capabilities with flexible thinking effort, and improved architecture via IndexShare. It is released under an MIT open-source license.