Complete guide to integrating Z.AI Coding Plan with OpenClaw AI assistantOpenClaw 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
Get API Key
- Access Z.AI Open Platform, Register or Login.
- Create an API Key in the API Keys management page.
- Make sure you have subscribed to the GLM Coding Plan.
Install OpenClaw
For detailed installation guide, please refer to the official documentation
- Installer Script (Recommended)
- Global Install (Manual)
Prerequisites:The easiest way to install OpenClaw is using the official installer script:macOS/Linux:Windows (PowerShell):

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:
Start to Config:
Start to Config:I understand this is powerful and inherently risky. Continue?| Choose βYesOnboarding mode| Choose βQuick StartModel/auth provider| Choose βZ.AI

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.
Paste your Z.AI API Key and press Enter.
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
Interact with bot
After setup, the cli will ask you
OpenClaw 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

How do you want to hatch your bot?- Choose β
Hatch in TUI (recommended)
OpenClaw 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.


For detailed configuration guide, please refer to the official documentation
Advanced Configuration
Model Failover
Configure model failover to ensure reliability:.openclaw/openclaw.json
Memory Management
OpenClaw supports various memory management systems:Skills and Tools
Enhance OpenClaw with additional skills:Troubleshooting
Common Issues
-
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
-
Model Availability
- Verify that the GLM model is available in your region
- Check the model name format (should be
zai/glm-4.7)
-
Connection Issues
- Ensure the OpenClaw gateway is running
- Check network connectivity to Z.AI endpoints
Resources
- OpenClaw Documentation: docs.openclaw.ai
- OpenClaw GitHub: github.com/openclaw/openclaw
- Z.AI Developer Docs: docs.z.ai
- Community Skills: awesome-openclaw-skills