Skip to main content
Complete guide to integrating Z.AI Coding Plan with OpenClaw AI assistant
OpenClaw is a personal AI assistant that runs on your own devices and connects to various messaging platforms. It can be configured to use Z.AI’s GLM models through the Z.AI Coding Plan.

Installing and Configuring OpenClaw

1

Get API Key

2

Install OpenClaw

For detailed installation guide, please refer to the official documentation

3

Setup the OpenClaw

After running the installation commands above, the configuration process will start automatically. If it doesn’t start, you can run the following command to begin configuration:
openclaw onboard --install-daemon
DescriptionStart to Config:
  • I understand this is powerful and inherently risky. Continue? | Choose ● Yes
  • Onboarding mode | Choose ● Quick Start
  • Model/auth provider | Choose ● Z.AI
Description
4

Configure Z.AI Provider

After selecting Z.AI as the Model/auth provider, you will be prompted to enter your API Key.
Paste your Z.AI API Key and press Enter.
5

Complete Setup

Continue with the remaining OpenClaw feature configuration.
  • Select channel | Choose and configure what you need.
  • Configure skills | Choose and install what you need.
  • Finish setup
6

Interact with bot

After setup, the cli will ask you How do you want to hatch your bot?
  • Choose ● Hatch in TUI (recommended)
Now you can start chatting with your bot in Terminal UI.DescriptionOpenClaw provides more channels for you to interact with your bot, such as Web UI, Discord, Slack, etc. You can set up these channels by referring to the official documentation: Channels Setup
  • For Web UI, you can access it by opening the Web UI (with token) link shown in the terminal.
DescriptionDescription

For detailed configuration guide, please refer to the official documentation

Advanced Configuration

Model Failover

Configure model failover to ensure reliability: .openclaw/openclaw.json
{
  "agents": {
    "defaults": {
      "model": {
        "primary": "zai/glm-4.7",
        "fallback": ["zai/glm-4.7-flash"]
      }
    }
  }
}  

Memory Management

OpenClaw supports various memory management systems:
# Install memory plugins
openclaw plugin install memory-manager
openclaw plugin install memory-lite

Skills and Tools

Enhance OpenClaw with additional skills:
# Install useful skills
openclaw skill install calendar
openclaw skill install research
openclaw skill install workflow

Troubleshooting

Common Issues

  1. API Key Authentication
    • Ensure your Z.AI API key is valid and has the GLM Coding Plan
    • Check that the API key is properly set in the environment
  2. Model Availability
    • Verify that the GLM model is available in your region
    • Check the model name format (should be zai/glm-4.7)
  3. Connection Issues
    • Ensure the OpenClaw gateway is running
    • Check network connectivity to Z.AI endpoints

Resources