I switched Claude Code over to GLM 5.2 and ran it all day. It's a 756 billion parameter open source model you can route straight into the Claude Code harness for about five times cheaper than Opus, and for most of my knowledge work it held up fine. In this one I show you what it can build, where it beats Opus and where it doesn't, and exactly how to set it up so you can switch between models per project. Here's the config I use. Drop this into your .claude/settings.local.json and swap in your own Z.ai key: "env": { "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic", "ANTHROPIC_AUTH_TOKEN": "your-z-ai-api-key-here", "ANTHROPIC_API_KEY": "", "API_TIMEOUT_MS": "3000000", "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.2", "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.2", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.2", "ANTHROPIC_SMALL_FAST_MODEL": "glm-5.2", "CLAUDE_CODE_SUBAGENT_MODEL": "glm-5.2" }