GLM-5.4 API setup guide for Claude Code, Codex and other coding agents

Z.ai's GLM-5.4 model, released in late November 2026, is currently reachable only through its GLM Coding Plan, since the standard API is not yet open pending a safety review. The model uses a Loop Transformer design that reruns 28 shared layers twice, giving about 750 billion parameters, a 1M-token context window and up to 128K output tokens. Developers must create a Coding Plan key and point their tool at the endpoint matching its protocol: Anthropic-style for Claude Code, OpenAI Responses for Codex, and OpenAI Chat Completions for tools like Cline or OpenCode. Since October 2026, billing depends on the key type rather than the URL, so a standard key used in a coding tool will draw from pay-as-you-go balance instead of the plan quota. A quick curl test against the Anthropic-compatible endpoint with model glm-5.4 is recommended to verify the key before configuring agents.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in