Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

zai-coding在编码

Agent Skill

zai-coding 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,336

周安装

139

GitHub Stars

公开资料未说明

下载量

1,112
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:zai-coding(在编码)
来源仓库:https://github.com/nelmaz/zai-coding
安装命令:
openclaw skills install zai-coding
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install zai-coding

简介

配置 OpenClaw 使用 Z.AI GLM 编码计划模型。

  • 支持区域选择、API 密钥设置与模型切换。
  • 提供 MCP 工具增强开发流程中的代码生成能力。
  • 需提前配置有效的 API 密钥并确认计费账户状态。
  • 建议参考官方文档了解模型配额与使用边界。zai-coding 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
zai-coding
description
Configure OpenClaw to use Z.AI GLM Coding Plan models for all coding-related tasks. Set up optimal configuration for development workflows with steps: (1) Verify OpenClaw is running, (2) Choose region (international: zai-coding-global, China: zai-coding-cn), (3) Configure via onboard or manual edit of openclaw.json with ZAI_API_KEY env var, (4) Set optimal model (zai/glm-5, glm-4.7, glm-4.6), (5) Optionally enable tool_stream and adjust context tokens, (6) Restart gateway and validate, (7) Install Z.AI MCP Tools (web-search-prime, web-reader, zread). Use when configuring Z.AI Coding Plan, switching models, or optimizing coding workflows.

Z.AI Coding Plan Setup

Overview

Configure OpenClaw to use Z.AI GLM Coding Plan models for optimal coding performance. Z.AI provides multiple GLM models optimized for development tasks with varying context windows and performance characteristics.

Prerequisites

Before configuring Z.AI Coding Plan:

  1. OpenClaw installed - Verify with openclaw gateway status
  2. Z.AI API Key - Available from https://z.ai/subscribe (international) or https://bigmodel.cn (China)
  3. Docker environment - API key available as ZAI_API_KEY environment variable

Available Models

Model IDContextBest For
glm-5205K tokensLatest flagship, best overall performance
glm-5-turbo200K tokensFast responses, quick iterations
glm-4.7205K tokensBalanced performance, strong reasoning
glm-4.7-flash200K tokensQuick iterations, prototyping
glm-4.7-flashx200K tokensOptimized speed
glm-4.6205K tokensStable, excellent coding
glm-4.6v128K tokensVision + coding (UI work)
glm-4.5131K tokensEfficient coding
glm-4.5-air131K tokensLightweight operations
glm-4.5-flash131K tokensFast coding, cost-effective

Configuration Steps

Step 1: Verify OpenClaw Status

openclaw gateway status

Step 2: Choose Configuration Method

Option A: Interactive Setup (Recommended)

International users:

openclaw onboard --auth-choice zai-coding-global

China region users:

openclaw onboard --auth-choice zai-coding-cn

This prompts for the API key and configures everything automatically.

Option B: Manual Configuration

Edit ~/.openclaw/openclaw.json:

{
  "env": {
    "ZAI_API_KEY": "sk-your-api-key-here"
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "zai/glm-5"
      }
    }
  }
}

Important: Model format is zai/<model-name>.

Step 3: Configure Coding-Specific Settings

For optimal coding performance:

# Enable tool streaming (better for coding workflows)
openclaw config set agents.defaults.models."zai/glm-5".params.tool_stream true --json

# Set higher context for complex projects (optional)
openclaw config set agents.defaults.maxContextTokens 150000

Step 4: Optional - Create Coding-Focused Agent

For dedicated coding agents:

openclaw agents create coding-assistant

Configure in ~/.openclaw/openclaw.json:

{
  "agents": {
    "coding-assistant": {
      "model": {
        "primary": "zai/glm-5"
      },
      "systemPrompt": "You are an expert software developer. Focus on writing clean, efficient, and well-documented code. Always explain your reasoning and provide best practices.",
      "tools": ["filesystem", "shell", "browser"]
    }
  }
}

Step 5: Restart and Verify

# Validate configuration
openclaw config validate

# Restart gateway
openclaw gateway restart

# Check status
openclaw status

Step 6: Test Configuration

Test with a simple coding task:

openclaw chat "Write a Python function to calculate the fibonacci sequence"

Model Selection Guide

Use the right model based on your needs:

  • General codingzai/glm-5 - Best overall performance
  • Quick prototypingzai/glm-5-turbo - Fast responses
  • Complex refactoringzai/glm-4.7 - Strong reasoning
  • Code reviewzai/glm-4.6 - Stable, thorough
  • UI/Frontend workzai/glm-4.6v - Vision capabilities
  • Simple scriptszai/glm-4.5-flash - Cost-effective

Region Configuration

  • International: zai-coding-global endpoint → https://api.z.ai/api/coding/paas/v4
  • China: zai-coding-cn endpoint → https://api.bigmodel.cn/api/coding/paas/v4

Troubleshooting

Authentication Error (1001)

API key missing or invalid:

openclaw config get env.ZAI_API_KEY

Model Not Found

Ensure correct endpoint:

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

# China
https://api.bigmodel.cn/api/coding/paas/v4

Rate Limiting

GLM Coding Plan has usage limits based on subscription tier:

  • Lite: 120 prompts per 5-hour cycle
  • Pro: 600 prompts per 5-hour cycle
  • Max: Higher limits

Gateway Won't Start

# Check logs
openclaw gateway logs

# Validate config
openclaw config validate

# Reset if needed
openclaw config reset

Switching Models

To change the default model:

# Set new model
openclaw config set agents.defaults.model.primary "zai/glm-4.7"

# Restart to apply
openclaw gateway restart

Integration with Channels

This configuration works with all OpenClaw channels:

  • Feishu: Coding model used for all coding requests
  • DingTalk: Same model configuration
  • WeCom: Compatible with coding workflows
  • CLI: Direct access via openclaw chat

Useful Commands

CommandDescription
openclaw config get agents.defaults.modelCheck current model
openclaw config set agents.defaults.model.primary "zai/glm-5"Change model
openclaw gateway restartApply changes
openclaw statusVerify configuration

Z.AI MCP Tools Configuration

GLM Coding Plan includes powerful MCP tools for web access and code research. These tools are exclusive to Coding Plan subscribers.

Available MCP Tools

ToolDescriptionUse Case
Web SearchSearch the web for real-time informationFinding documentation, news, tutorials
Web ReaderExtract full content from any webpageReading articles, docs, extracting data
ZreadAccess GitHub repositories documentation & codeUnderstanding open-source projects

MCP Quotas by Plan

PlanWeb Searches + Readers + Zread
Lite100 total
Pro1,000 total
Max4,000 total

Step 7: Install Z.AI MCP Tools

After configuring the model, add the MCP tools to enhance your coding agent.

Tool 1: Web Search (web-search-prime)

Provides real-time web search capabilities.

One-click install (OpenClaw):

openclaw mcp add web-search-prime --type http --url "https://api.z.ai/api/mcp/web_search_prime/mcp" --header "Authorization: Bearer YOUR_API_KEY"

Manual configuration - Add to ~/.openclaw/openclaw.json:

{
 "mcpServers": {
 "web-search-prime": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/web_search_prime/mcp",
 "headers": {
 "Authorization": "Bearer YOUR_API_KEY"
 }
 }
 }
}

Available tool: webSearchPrime - Search web information with titles, URLs, summaries


Tool 2: Web Reader (web-reader)

Extracts complete content from any webpage.

One-click install (OpenClaw):

openclaw mcp add web-reader --type http --url "https://api.z.ai/api/mcp/web_reader/mcp" --header "Authorization: Bearer YOUR_API_KEY"

Manual configuration - Add to ~/.openclaw/openclaw.json:

{
 "mcpServers": {
 "web-reader": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/web_reader/mcp",
 "headers": {
 "Authorization": "Bearer YOUR_API_KEY"
 }
 }
 }
}

Available tool: webReader - Fetch page title, main content, metadata, links


Tool 3: Zread (zread)

Access GitHub repositories for documentation and code analysis.

One-click install (OpenClaw):

openclaw mcp add zread --type http --url "https://api.z.ai/api/mcp/zread/mcp" --header "Authorization: Bearer YOUR_API_KEY"

Manual configuration - Add to ~/.openclaw/openclaw.json:

{
 "mcpServers": {
 "zread": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/zread/mcp",
 "headers": {
 "Authorization": "Bearer YOUR_API_KEY"
 }
 }
 }
}

Available tools:

ToolDescription
search_docSearch documentation in GitHub repositories
get_repo_structureGet directory structure and file list
read_fileRead complete code content of files

Complete MCP Configuration Example

Here's a complete ~/.openclaw/openclaw.json with all three MCP tools:

{
 "env": {
 "ZAI_API_KEY": "sk-your-api-key-here"
 },
 "agents": {
 "defaults": {
 "model": {
 "primary": "zai/glm-5"
 }
 }
 },
 "mcpServers": {
 "web-search-prime": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/web_search_prime/mcp",
 "headers": {
 "Authorization": "Bearer sk-your-api-key-here"
 }
 },
 "web-reader": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/web_reader/mcp",
 "headers": {
 "Authorization": "Bearer sk-your-api-key-here"
 }
 },
 "zread": {
 "type": "http",
 "url": "https://api.z.ai/api/mcp/zread/mcp",
 "headers": {
 "Authorization": "Bearer sk-your-api-key-here"
 }
 }
 }
}

Step 8: Verify MCP Tools Installation

After adding the MCP tools, restart and verify:

# Restart gateway to load MCP servers
openclaw gateway restart

# Check MCP status
openclaw mcp list

# Verify tools are available
openclaw status

Step 9: Test the MCP Tools

Test each tool to ensure proper configuration:

Test Web Search:

openclaw chat "Search for the latest Python 3.12 features"

Test Web Reader:

openclaw chat "Read and summarize the content from https://docs.python.org/3/whatsnew/3.12.html"

Test Zread:

openclaw chat "Explain the structure of the fastapi/fastapi repository on GitHub"

MCP Tools Troubleshooting

Invalid API Key

Error: Invalid access token

Solutions:

  1. Verify API key is correctly copied (no extra spaces)
  2. Check API key is activated at https://z.ai/manage-apikey/apikey-list
  3. Ensure sufficient balance on your account
  4. Verify Authorization: Bearer format is correct

Connection Timeout

Solutions:

  1. Check network connection
  2. Verify firewall allows HTTPS connections
  3. Increase client timeout settings
  4. Try again later (server may be busy)

Repository Access Failed (Zread)

Solutions:

  1. Confirm repository exists and is public
  2. Check repository name format: owner/repo
  3. Visit https://zread.ai to verify repository is indexed

Quota Exceeded

Error: Rate limit exceeded

Solution: Wait for the next 5-hour cycle or upgrade your plan


MCP Tools Use Cases

ScenarioTools to UseExample Prompt
Research a libraryZread + Web Search"Research the React hooks API and find best practices"
Debug an issueWeb Search + Web Reader"Search for solutions to 'Python asyncio CancelledError'"
Learn a new frameworkZread"Explain the architecture of the Next.js repository"
Stay updatedWeb Search"What are the latest updates in TypeScript 5.4?"
Read documentationWeb Reader"Read the FastAPI authentication documentation"

References

  • Z.AI Coding Plan: https://z.ai/subscribe
  • OpenClaw Z.AI Provider: https://docs.openclaw.ai/providers/zai
  • GLM Models Overview: https://docs.openclaw.ai/providers/glm
  • Web Search MCP: https://docs.z.ai/devpack/mcp/search-mcp-server
  • Web Reader MCP: https://docs.z.ai/devpack/mcp/reader-mcp-server
  • Zread MCP: https://docs.z.ai/devpack/mcp/zread-mcp-server

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

96.12%
按下载量换算1,069

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills