Skip to content

ZAI Subscription Guide

ZAI is one of the providers currently recommended by the docs preset set for Claude Code. GLM Coding plans with tier mapping for developers who want Claude Code as a daily driver.

  • You want a coding-focused subscription plan
  • You need mapped Sonnet/Opus/Haiku defaults
  • You expect one provider to work across Claude Code and similar coding tools
  • The current preset metadata marks ZAI as recommended.
  • It exposes an Anthropic-compatible endpoint that can be used directly by Claude Code.
  • The preset ships default mappings for glm-4.7, glm-5, and glm-4.5-air.
ItemValue
Subscription entryOpen subscription page
Official docs / consoleOpen official page
Anthropic-compatible base URLhttps://open.bigmodel.cn/api/anthropic
Recommended auth env varANTHROPIC_AUTH_TOKEN
Claude tierDefault model
Sonnetglm-4.7
Opusglm-5
Haikuglm-4.5-air
  1. Confirm which subscription tier or API activation path you want to use.
  2. Return to the Claude Code setup guide and place the base URL plus token into settings.json or environment variables.
  3. Validate the connection locally after setup.