{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-glm-plan-usage",
    "name": "glm-plan-usage",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/OrientLuna/openclaw-glm-plan-usage",
    "canonicalUrl": "https://clawhub.ai/OrientLuna/openclaw-glm-plan-usage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openclaw-glm-plan-usage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-glm-plan-usage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "docs/INSTALLATION.md",
      "SKILL.md",
      "scripts/query-usage.sh",
      "references/api-endpoints.md",
      "README.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-glm-plan-usage"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openclaw-glm-plan-usage",
    "agentPageUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "GLM Plan Usage Skill",
        "body": "查询 GLM 编码套餐使用统计的 OpenClaw 技能。\nOpenClaw skill for querying GLM coding plan usage statistics."
      },
      {
        "title": "功能特性 / Features",
        "body": "配额监控: 查看 Token 使用量（5小时）和 MCP 使用量（1个月）\nQuota Monitoring: View token usage (5-hour) and MCP usage (1-month)\n模型使用: 显示 24 小时内的 Token 数和调用次数\nModel Usage: Display token count and call count within 24 hours\n工具使用: 跟踪 24 小时内的 MCP 工具使用情况\nTool Usage: Track MCP tool usage within 24 hours\n自动检测: 自动从 OpenClaw 配置中检测 GLM 编码套餐提供商\nAuto Detection: Automatically detect GLM coding plan provider from OpenClaw configuration\n双语支持: 支持中文和英文输出\nBilingual Support: Support Chinese and English output"
      },
      {
        "title": "依赖要求 / Requirements",
        "body": "curl - HTTP 客户端（通常预装） | HTTP client (usually pre-installed)\njq - JSON 处理器 | JSON processor\n\n如需安装 jq：\nTo install jq:\n\nsudo apt-get install jq  # Linux\nbrew install jq           # macOS"
      },
      {
        "title": "安装 / Installation",
        "body": "将此仓库克隆到本地：\nClone this repository to local:\n\ngit clone https://github.com/OrientLuna/openclaw-glm-plan-usage.git\ncd openclaw-glm-plan-usage\n\n复制技能文件到 OpenClaw 技能目录：\nCopy skill files to OpenClaw skills directory:\n\ncp -r . ~/.openclaw/skills/glm-plan-usage/\nchmod +x ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n确保已配置 GLM 编码套餐提供商（见下方配置说明）\nEnsure GLM coding plan provider is configured (see Configuration below)"
      },
      {
        "title": "直接运行脚本 / Run Script Directly",
        "body": "bash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh"
      },
      {
        "title": "通过 OpenClaw 技能调用 / Via OpenClaw Skill",
        "body": "openclaw /glm-plan-usage:usage-query"
      },
      {
        "title": "语言切换 / Language Switching",
        "body": "脚本会自动检测语言环境。您也可以通过环境变量强制指定语言：\nThe script automatically detects language environment. You can also force language via environment variable:\n\n# 中文输出 / Chinese output\nOPENCLAW_LANGUAGE=zh bash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n# 英文输出 / English output\nOPENCLAW_LANGUAGE=en bash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh"
      },
      {
        "title": "示例输出 / Sample Output",
        "body": "📊 GLM 编码套餐使用统计 / GLM Coding Plan Usage Statistics\n\n提供商 / Provider: zhipu\n统计时间 / Statistics Time: 2026-02-13 20:30:15\n\n配额限制 / Quota Limits\n---\n  Token 使用 (5小时) / Token Usage (5-hour): 45.2%\n  MCP 使用 (1个月) / MCP Usage (1-month):   12.3%  (15000/120000 秒 / sec) [LEVEL_4]\n\n模型使用 (24小时) / Model Usage (24 hours)\n---\n  总 Token 数 / Total Tokens:  12,500,000\n  总调用次数 / Total Calls:  1,234\n\n工具使用 (24小时) / Tool Usage (24 hours)\n---\n  bash: 156 次 / times\n  file-read: 89 次 / times\n  web-search: 34 次 / times"
      },
      {
        "title": "配置说明 / Configuration",
        "body": "技能会自动读取 ~/.openclaw/openclaw.json 中的提供商配置。\nThe skill automatically reads provider configuration from ~/.openclaw/openclaw.json."
      },
      {
        "title": "示例配置 / Sample Configuration",
        "body": "{\n  \"agents\": {\n    \"defaults\": {\n      \"model\": {\n        \"primary\": \"zhipu/glm-4-flash\"\n      }\n    }\n  },\n  \"models\": {\n    \"providers\": {\n      \"zhipu\": {\n        \"baseUrl\": \"https://open.bigmodel.cn/api/coding/paas/v4\",\n        \"apiKey\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n\n重要: baseUrl 必须包含 api/coding/paas/v4 或 open.bigmodel.cn，技能才能识别其为 GLM 编码套餐提供商。\nImportant: baseUrl must contain api/coding/paas/v4 or open.bigmodel.cn for the skill to recognize it as a GLM coding plan provider."
      },
      {
        "title": "提供商检测逻辑 / Provider Detection Logic",
        "body": "技能会检查以下条件来识别 GLM 编码套餐提供商：\nThe skill checks the following conditions to identify GLM coding plan providers:\n\nbaseUrl 包含 api/coding/paas/v4 或 open.bigmodel.cn\nbaseUrl contains api/coding/paas/v4 or open.bigmodel.cn\n提供商名称包含 coding、glm-coding、zhipu 或 bigmodel\nProvider name contains coding, glm-coding, zhipu, or bigmodel"
      },
      {
        "title": "API 端点 / API Endpoints",
        "body": "技能查询三个监控端点：\nThe skill queries three monitoring endpoints:\n\n端点Endpoint用途Purpose/api/monitor/usage/quota/limit配额百分比（5小时 Token，1个月 MCP）Quota percentage (5-hour token, 1-month MCP)/api/monitor/usage/model-usage24小时模型使用统计24-hour model usage statistics/api/monitor/usage/tool-usage24小时 MCP 工具使用24-hour MCP tool usage\n\n详见 API 文档。\nSee API Documentation for details."
      },
      {
        "title": "错误处理 / Error Handling",
        "body": "脚本为常见问题提供友好的错误提示：\nThe script provides friendly error messages for common issues:\n\n缺少依赖工具（curl、jq） | Missing dependencies (curl, jq)\n缺少或无效的 OpenClaw 配置 | Missing or invalid OpenClaw configuration\n提供商未配置为 GLM 编码套餐 | Provider not configured as GLM coding plan\nAPI 认证失败 | API authentication failed\n网络超时 | Network timeout"
      },
      {
        "title": "\"缺少依赖工具，请安装: jq\" / \"Missing dependency, please install: jq\"",
        "body": "使用包管理器安装 jq：\nInstall jq using package manager:\n\nsudo apt-get install jq  # Linux\nbrew install jq           # macOS"
      },
      {
        "title": "\"未找到配置 GLM 编码套餐的提供商\" / \"No GLM coding plan provider configured\"",
        "body": "确保提供商的 baseUrl 包含 api/coding/paas/v4。更新配置：\nEnsure the provider's baseUrl contains api/coding/paas/v4. Update configuration:\n\n{\n  \"models\": {\n    \"providers\": {\n      \"your-provider\": {\n        \"baseUrl\": \"https://open.bigmodel.cn/api/coding/paas/v4\",\n        \"apiKey\": \"your-key\"\n      }\n    }\n  }\n}"
      },
      {
        "title": "\"认证失败，请检查 API 密钥配置\" / \"Authentication failed, please check API key\"",
        "body": "验证 API 密钥是否正确：\nVerify API key is correct:\n\njq -r '.models.providers.zhipu.apiKey' ~/.openclaw/openclaw.json"
      },
      {
        "title": "贡献指南 / Contributing",
        "body": "欢迎贡献！请遵循以下步骤：\nContributions welcome! Please follow these steps:\n\nFork 本仓库 | Fork this repository\n创建特性分支 (git checkout -b feature/amazing-feature) | Create feature branch\n提交更改 (git commit -m 'Add some amazing feature') | Commit changes\n推送到分支 (git push origin feature/amazing-feature) | Push to branch\n开启 Pull Request | Open Pull Request"
      },
      {
        "title": "许可证 / License",
        "body": "MIT License - 详见 LICENSE 文件。\nMIT License - See LICENSE file for details."
      },
      {
        "title": "致谢 / Acknowledgments",
        "body": "原始实现: zai-coding-plugins | Original implementation\n参考实现: opencode-glm-quota | Reference implementation\nOpenClaw 集成: 本技能 | OpenClaw integration: This skill"
      },
      {
        "title": "相关资源 / Resources",
        "body": "OpenClaw 文档 | OpenClaw Documentation\nGLM 编码套餐 | GLM Coding Plan\nAPI 文档 | API Documentation\n安装指南 | Installation Guide"
      }
    ],
    "body": "GLM Plan Usage Skill\n\n查询 GLM 编码套餐使用统计的 OpenClaw 技能。 OpenClaw skill for querying GLM coding plan usage statistics.\n\n功能特性 / Features\n配额监控: 查看 Token 使用量（5小时）和 MCP 使用量（1个月） Quota Monitoring: View token usage (5-hour) and MCP usage (1-month)\n模型使用: 显示 24 小时内的 Token 数和调用次数 Model Usage: Display token count and call count within 24 hours\n工具使用: 跟踪 24 小时内的 MCP 工具使用情况 Tool Usage: Track MCP tool usage within 24 hours\n自动检测: 自动从 OpenClaw 配置中检测 GLM 编码套餐提供商 Auto Detection: Automatically detect GLM coding plan provider from OpenClaw configuration\n双语支持: 支持中文和英文输出 Bilingual Support: Support Chinese and English output\n依赖要求 / Requirements\ncurl - HTTP 客户端（通常预装） | HTTP client (usually pre-installed)\njq - JSON 处理器 | JSON processor\n\n如需安装 jq： To install jq:\n\nsudo apt-get install jq  # Linux\nbrew install jq           # macOS\n\n安装 / Installation\n将此仓库克隆到本地： Clone this repository to local:\ngit clone https://github.com/OrientLuna/openclaw-glm-plan-usage.git\ncd openclaw-glm-plan-usage\n\n复制技能文件到 OpenClaw 技能目录： Copy skill files to OpenClaw skills directory:\ncp -r . ~/.openclaw/skills/glm-plan-usage/\nchmod +x ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n确保已配置 GLM 编码套餐提供商（见下方配置说明） Ensure GLM coding plan provider is configured (see Configuration below)\n使用方法 / Usage\n直接运行脚本 / Run Script Directly\nbash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n通过 OpenClaw 技能调用 / Via OpenClaw Skill\nopenclaw /glm-plan-usage:usage-query\n\n语言切换 / Language Switching\n\n脚本会自动检测语言环境。您也可以通过环境变量强制指定语言： The script automatically detects language environment. You can also force language via environment variable:\n\n# 中文输出 / Chinese output\nOPENCLAW_LANGUAGE=zh bash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n# 英文输出 / English output\nOPENCLAW_LANGUAGE=en bash ~/.openclaw/skills/glm-plan-usage/scripts/query-usage.sh\n\n示例输出 / Sample Output\n📊 GLM 编码套餐使用统计 / GLM Coding Plan Usage Statistics\n\n提供商 / Provider: zhipu\n统计时间 / Statistics Time: 2026-02-13 20:30:15\n\n配额限制 / Quota Limits\n---\n  Token 使用 (5小时) / Token Usage (5-hour): 45.2%\n  MCP 使用 (1个月) / MCP Usage (1-month):   12.3%  (15000/120000 秒 / sec) [LEVEL_4]\n\n模型使用 (24小时) / Model Usage (24 hours)\n---\n  总 Token 数 / Total Tokens:  12,500,000\n  总调用次数 / Total Calls:  1,234\n\n工具使用 (24小时) / Tool Usage (24 hours)\n---\n  bash: 156 次 / times\n  file-read: 89 次 / times\n  web-search: 34 次 / times\n\n配置说明 / Configuration\n\n技能会自动读取 ~/.openclaw/openclaw.json 中的提供商配置。 The skill automatically reads provider configuration from ~/.openclaw/openclaw.json.\n\n示例配置 / Sample Configuration\n{\n  \"agents\": {\n    \"defaults\": {\n      \"model\": {\n        \"primary\": \"zhipu/glm-4-flash\"\n      }\n    }\n  },\n  \"models\": {\n    \"providers\": {\n      \"zhipu\": {\n        \"baseUrl\": \"https://open.bigmodel.cn/api/coding/paas/v4\",\n        \"apiKey\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n\n\n重要: baseUrl 必须包含 api/coding/paas/v4 或 open.bigmodel.cn，技能才能识别其为 GLM 编码套餐提供商。 Important: baseUrl must contain api/coding/paas/v4 or open.bigmodel.cn for the skill to recognize it as a GLM coding plan provider.\n\n提供商检测逻辑 / Provider Detection Logic\n\n技能会检查以下条件来识别 GLM 编码套餐提供商： The skill checks the following conditions to identify GLM coding plan providers:\n\nbaseUrl 包含 api/coding/paas/v4 或 open.bigmodel.cn baseUrl contains api/coding/paas/v4 or open.bigmodel.cn\n提供商名称包含 coding、glm-coding、zhipu 或 bigmodel Provider name contains coding, glm-coding, zhipu, or bigmodel\nAPI 端点 / API Endpoints\n\n技能查询三个监控端点： The skill queries three monitoring endpoints:\n\n端点\tEndpoint\t用途\tPurpose\n/api/monitor/usage/quota/limit\t配额百分比（5小时 Token，1个月 MCP）\tQuota percentage (5-hour token, 1-month MCP)\t\n/api/monitor/usage/model-usage\t24小时模型使用统计\t24-hour model usage statistics\t\n/api/monitor/usage/tool-usage\t24小时 MCP 工具使用\t24-hour MCP tool usage\t\n\n详见 API 文档。 See API Documentation for details.\n\n错误处理 / Error Handling\n\n脚本为常见问题提供友好的错误提示： The script provides friendly error messages for common issues:\n\n缺少依赖工具（curl、jq） | Missing dependencies (curl, jq)\n缺少或无效的 OpenClaw 配置 | Missing or invalid OpenClaw configuration\n提供商未配置为 GLM 编码套餐 | Provider not configured as GLM coding plan\nAPI 认证失败 | API authentication failed\n网络超时 | Network timeout\n故障排除 / Troubleshooting\n\"缺少依赖工具，请安装: jq\" / \"Missing dependency, please install: jq\"\n\n使用包管理器安装 jq： Install jq using package manager:\n\nsudo apt-get install jq  # Linux\nbrew install jq           # macOS\n\n\"未找到配置 GLM 编码套餐的提供商\" / \"No GLM coding plan provider configured\"\n\n确保提供商的 baseUrl 包含 api/coding/paas/v4。更新配置： Ensure the provider's baseUrl contains api/coding/paas/v4. Update configuration:\n\n{\n  \"models\": {\n    \"providers\": {\n      \"your-provider\": {\n        \"baseUrl\": \"https://open.bigmodel.cn/api/coding/paas/v4\",\n        \"apiKey\": \"your-key\"\n      }\n    }\n  }\n}\n\n\"认证失败，请检查 API 密钥配置\" / \"Authentication failed, please check API key\"\n\n验证 API 密钥是否正确： Verify API key is correct:\n\njq -r '.models.providers.zhipu.apiKey' ~/.openclaw/openclaw.json\n\n贡献指南 / Contributing\n\n欢迎贡献！请遵循以下步骤： Contributions welcome! Please follow these steps:\n\nFork 本仓库 | Fork this repository\n创建特性分支 (git checkout -b feature/amazing-feature) | Create feature branch\n提交更改 (git commit -m 'Add some amazing feature') | Commit changes\n推送到分支 (git push origin feature/amazing-feature) | Push to branch\n开启 Pull Request | Open Pull Request\n许可证 / License\n\nMIT License - 详见 LICENSE 文件。 MIT License - See LICENSE file for details.\n\n致谢 / Acknowledgments\n原始实现: zai-coding-plugins | Original implementation\n参考实现: opencode-glm-quota | Reference implementation\nOpenClaw 集成: 本技能 | OpenClaw integration: This skill\n相关资源 / Resources\nOpenClaw 文档 | OpenClaw Documentation\nGLM 编码套餐 | GLM Coding Plan\nAPI 文档 | API Documentation\n安装指南 | Installation Guide"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/OrientLuna/openclaw-glm-plan-usage",
    "publisherUrl": "https://clawhub.ai/OrientLuna/openclaw-glm-plan-usage",
    "owner": "OrientLuna",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-glm-plan-usage",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-glm-plan-usage/agent.md"
  }
}