Methods for integrating the latest GLM-4.5 series models from Z.AI with Claude Code
Z.AI’s GLM-4.5 models can be integrated with Claude Code through an Anthropic API-compatible endpoint. This allows Claude Code to communicate with GLM-4.5 without requiring any code modifications to Claude Code itself.
After installing Claude Code, set up environment variables using one of the following two methods:Method 1: Using a Script (Recommended for First-Time Users)