360 Secure SkillHub
360 安全技能中心

ZAI Coding Plan Usage

该 Skill 通过运行一个 Node 脚本调用 Z.ai(智谱)监控接口,查询 Coding Plan 的模型调用统计、工具(含 MCP)调用统计和配额上限,并返回用量与订阅状态信息。凭证由 OpenClaw 配置或环境变量自动读取,仅适用于已配置 Z.ai 的环境。

hyizhou
hyizhou
热度 65.49
最近更新 2026-05-11 17:32:23
分类:数据依赖:代码执行 / 第三方 API应用场景:报告撰写 / API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add zai-coding-plan-usage
Metadata
name
zai-coding-plan-usage
description
Query Z.ai (智谱) Coding Plan usage and quota limits. Track token consumption, MCP usage, and subscription status. Use when user asks about "智谱用量"、"ZAI usage"、"coding plan usage"、"quota"、"智谱配额"。

Z.ai Coding Plan Usage Query

Query Z.ai (智谱 AI) Coding Plan usage and quota limits.

Usage

Just say:

  • "智谱用量查询"
  • "Check ZAI usage"
  • "coding plan usage"

Script

node ~/.openclaw/workspace/skills/zai-coding-plan-usage/scripts/query-usage.mjs

API Endpoints

API Endpoint Description
Model usage /api/monitor/usage/model-usage Model call statistics
Tool usage /api/monitor/usage/tool-usage Tool call statistics
Quota limit /api/monitor/usage/quota/limit Quota limits

Notes

  • API Key is automatically read from OpenClaw config or environment variables
  • Works only in environments with Z.ai API configured