Guide to running Claude Code in the terminal with GLM-5.1 via the MaaS API

A DEV Community tutorial explains how to connect the Claude Code command-line coding assistant to the GLM-5.1 model through the Lanyun MaaS platform. It covers preparing Node.js, npm and Git, generating an API key and model name in the MaaS console, and installing Claude Code globally. The setup centers on a user-level .claude.json file that supplies the API key, an Anthropic-compatible base URL, and maps default models to GLM-5.1. The guide then walks through a test project that builds a Markdown-to-image card tool, and ends with troubleshooting tips for common configuration problems.
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