Next-gen AI coding assistant for developers. Write, debug and optimize code in any programming language. Works with Claude Code, Cline, Cursor and 20+ coding tools.
# Install Claude Code
npm install -g @anthropic-ai/claude-code
# Set GLM endpoint
export ANTHROPIC_BASE_URL="https://api.z.ai/api/coding/paas/v4"
export ANTHROPIC_API_KEY="your-api-key"
# Start coding!
claude
Everything you need for productive development
Generate high-quality code in Python, JavaScript, Go, Rust and dozens of other languages
Instantly find errors and get fix suggestions for your code
Optimize and improve code structure without changing the logic
Auto-generate documentation, comments and tests for your code
Search the web for up-to-date information to solve your tasks in real-time
Analyze images, screenshots and diagrams to understand visual context
Connect GLM to your favorite coding tool in minutes
Choose a plan and subscribe at z.ai/subscribe
Go to Z.AI Open Platform → Billing → Create API Key
https://api.z.ai/api/coding/paas/v4
Official CLI tool by Anthropic. Terminal-based AI coding agent.
Install Claude Code globally:
npm install -g @anthropic-ai/claude-codeSet environment variables (add to ~/.bashrc or ~/.zshrc):
export ANTHROPIC_BASE_URL="https://api.z.ai/api/coding/paas/v4"
export ANTHROPIC_API_KEY="your-api-key"To switch to GLM-5.1 model, edit ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_DEFAULT_OPUS_MODEL": "GLM-5.1",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "GLM-5.1",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "GLM-4.5-Air"
}
}Launch and start coding:
claudeAutonomous AI coding agent for VS Code. Plan, code and debug.
Install Cline extension from VS Code Marketplace.
Open Cline settings and set API Provider to "OpenAI Compatible".
Configure the endpoint:
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Start a new task in Cline and begin coding!
AI-powered autonomous coding agent for VS Code with multi-mode support.
Install Roo Code extension from VS Code Marketplace.
Open Roo Code settings and select "OpenAI Compatible" as API Provider.
Set the endpoint and key:
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Open Roo Code panel and start a new task.
Lightweight AI coding assistant for VS Code. Fast and efficient.
Install Kilo Code extension from VS Code Marketplace.
In extension settings, choose "OpenAI Compatible" provider.
Configure the connection:
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Start coding with Kilo Code!
Terminal-based AI coding tool. Open-source and extensible.
Install OpenCode following the official documentation.
Set environment variables:
export ANTHROPIC_BASE_URL="https://api.z.ai/api/coding/paas/v4"
export ANTHROPIC_API_KEY="your-api-key"Launch OpenCode and start coding!
Modern AI coding agent with powerful code understanding capabilities.
Install Crush following the official guide.
Configure the API endpoint in settings:
API Provider: OpenAI Compatible
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Start a new session and code away!
Open-source AI coding agent by Block. Extensible with plugins.
Install Goose from the official repository.
Set the API provider configuration:
Provider: openai
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Run Goose and start building!
Open-source AI coding assistant. Community-driven and flexible.
Install OpenClaw from the official repository.
Set the API configuration:
Base URL: https://api.z.ai/api/coding/paas/v4
API Key: your-api-key
Model: GLM-5.1Launch OpenClaw and start coding!
Get the GLM Coding Plan that fits your needs
For lightweight workloads
For complex workloads & professionals
Maximum limits & performance
All plans include access to GLM-5.1, GLM-5-Turbo, GLM-4.7, GLM-4.6, and GLM-4.5-Air. Pro and Max plans additionally include GLM-5.
GLM Coder is an AI coding model that helps you write, debug and optimize code. It works with dozens of programming languages and integrates with popular development tools like Claude Code, Cline, Cursor, Roo Code and more.
Lite — for lightweight workloads and regular coding (~400 prompts/week). Pro — for complex tasks with Vision, Web Search, and priority model access (~2,000 prompts/week). Max — maximum limits for advanced developers (~8,000 prompts/week) with guaranteed peak performance.
After subscribing to a plan, you get an API key. Set the API endpoint to https://api.z.ai/api/coding/paas/v4 in your coding tool's settings. Check our Setup Guide above for step-by-step instructions for each tool.
All plans include GLM-5.1, GLM-5-Turbo, GLM-4.7, GLM-4.6, and GLM-4.5-Air. Pro and Max plans also include GLM-5. You can switch models in your tool's configuration (e.g., edit ~/.claude/settings.json for Claude Code).
Yes! Quarterly subscriptions save you 10%, and yearly subscriptions save 30%. For example, Lite plan at yearly billing costs just $7/month instead of $10.
GLM generates over 55 tokens per second for real-time interaction. No network restrictions, no account bans — just smooth, uninterrupted coding.