🔥 Limited Offer: Extra 10% off all plans — subscribe now! Get the deal →

Code Faster with GLM Coder

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.

20+ Coding Tools
55+ Tokens/sec
24/7 Support
main.py
# 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

Why GLM Coder?

Everything you need for productive development

Code Generation

Generate high-quality code in Python, JavaScript, Go, Rust and dozens of other languages

🔍

Debugging

Instantly find errors and get fix suggestions for your code

Refactoring

Optimize and improve code structure without changing the logic

📚

Documentation

Auto-generate documentation, comments and tests for your code

🌐

Web Search

Search the web for up-to-date information to solve your tasks in real-time

👁

Vision

Analyze images, screenshots and diagrams to understand visual context

Setup Guide

Connect GLM to your favorite coding tool in minutes

Before You Start

1
Subscribe to GLM Coding Plan

Choose a plan and subscribe at z.ai/subscribe

2
Get your API Key

Go to Z.AI Open Platform → Billing → Create API Key

3
Coding API Endpoint

https://api.z.ai/api/coding/paas/v4

Claude Code

Official CLI tool by Anthropic. Terminal-based AI coding agent.

+
Step 1

Install Claude Code globally:

npm install -g @anthropic-ai/claude-code
Step 2

Set 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"
Step 3

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" } }
Step 4

Launch and start coding:

claude
Subscribe to Get API Key
🔧

Cline

Autonomous AI coding agent for VS Code. Plan, code and debug.

+
Step 1

Install Cline extension from VS Code Marketplace.

Step 2

Open Cline settings and set API Provider to "OpenAI Compatible".

Step 3

Configure the endpoint:

Base URL: https://api.z.ai/api/coding/paas/v4 API Key: your-api-key Model: GLM-5.1
Step 4

Start a new task in Cline and begin coding!

Subscribe to Get API Key
🐨

Roo Code

AI-powered autonomous coding agent for VS Code with multi-mode support.

+
Step 1

Install Roo Code extension from VS Code Marketplace.

Step 2

Open Roo Code settings and select "OpenAI Compatible" as API Provider.

Step 3

Set the endpoint and key:

Base URL: https://api.z.ai/api/coding/paas/v4 API Key: your-api-key Model: GLM-5.1
Step 4

Open Roo Code panel and start a new task.

Subscribe to Get API Key

Kilo Code

Lightweight AI coding assistant for VS Code. Fast and efficient.

+
Step 1

Install Kilo Code extension from VS Code Marketplace.

Step 2

In extension settings, choose "OpenAI Compatible" provider.

Step 3

Configure the connection:

Base URL: https://api.z.ai/api/coding/paas/v4 API Key: your-api-key Model: GLM-5.1
Step 4

Start coding with Kilo Code!

Subscribe to Get API Key
💻

OpenCode

Terminal-based AI coding tool. Open-source and extensible.

+
Step 1

Install OpenCode following the official documentation.

Step 2

Set environment variables:

export ANTHROPIC_BASE_URL="https://api.z.ai/api/coding/paas/v4" export ANTHROPIC_API_KEY="your-api-key"
Step 3

Launch OpenCode and start coding!

Subscribe to Get API Key

Crush

Modern AI coding agent with powerful code understanding capabilities.

+
Step 1

Install Crush following the official guide.

Step 2

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.1
Step 3

Start a new session and code away!

Subscribe to Get API Key
🦆

Goose

Open-source AI coding agent by Block. Extensible with plugins.

+
Step 1

Install Goose from the official repository.

Step 2

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.1
Step 3

Run Goose and start building!

Subscribe to Get API Key
🐦

OpenClaw

Open-source AI coding assistant. Community-driven and flexible.

+
Step 1

Install OpenClaw from the official repository.

Step 2

Set the API configuration:

Base URL: https://api.z.ai/api/coding/paas/v4 API Key: your-api-key Model: GLM-5.1
Step 3

Launch OpenClaw and start coding!

Subscribe to Get API Key

Choose Your Plan

Get the GLM Coding Plan that fits your needs

🎁 Extra 10% OFF — limited launch discount!

Lite

For lightweight workloads

$10 / month
  • ~80 prompts / 5 hours
  • ~400 prompts / week
  • 3x usage of Claude Pro plan
  • Regular model updates
  • 20+ coding tools supported
Get Started

Max

Maximum limits & performance

$80 / month
  • ~1,600 prompts / 5 hours
  • ~8,000 prompts / week
  • 4x Pro plan usage
  • All Pro plan benefits
  • First access to new models
  • Guaranteed peak-hour performance
Get Started

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.

FAQ

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.