← 返回 Skills 市场
glm-plan-usage
作者
OrientLuna
· GitHub ↗
· v1.0.1
747
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install openclaw-glm-plan-usage
功能描述
查询 GLM 编码套餐使用统计,包括配额、模型使用和 MCP 工具使用情况 | Query GLM coding plan usage statistics, including quota, model usage, and MCP tool usage
安全使用建议
This skill largely does what it claims, but review and be aware of two issues before installing:
- The script reads your OpenClaw config (~/.openclaw/openclaw.json) and extracts an API key for the detected provider; that key is included in Authorization headers and sent to https://open.bigmodel.cn. Verify you are comfortable with that provider receiving the key and that the key in your config is scoped appropriately.
- The registry metadata lists no required credentials, which is inaccurate. Expect the script to require a provider entry with baseUrl containing api/coding/paas/v4 and an apiKey in ~/.openclaw/openclaw.json.
- The script hardcodes API_BASE to https://open.bigmodel.cn rather than using the provider's baseUrl value; if you use a proxy/custom endpoint this may not work. Inspect scripts/query-usage.sh yourself (or run it in a safe environment) to confirm behavior before installing. If you have other sensitive API keys in your OpenClaw config, consider removing/isolating them or creating a separate provider entry with a limited-scope key just for monitoring.
功能分析
Type: OpenClaw Skill
Name: openclaw-glm-plan-usage
Version: 1.0.1
The OpenClaw GLM Plan Usage skill is benign. It is designed to query GLM coding plan usage statistics from `open.bigmodel.cn` using `curl` and `jq`. The script `scripts/query-usage.sh` correctly reads the API key from `~/.openclaw/openclaw.json` and uses it to authenticate to the legitimate GLM API endpoints. There is no evidence of data exfiltration, unauthorized command execution, persistence mechanisms (beyond a suggested, benign cron job for monitoring), or prompt injection attempts in the `SKILL.md` or `README.md` files. All actions are aligned with the stated purpose.
能力评估
Purpose & Capability
Skill name/description (query GLM coding plan usage) matches the provided script and docs. The included script queries quota/model/tool endpoints on the GLM monitoring API and formats the result; those operations are appropriate for the stated purpose.
Instruction Scope
Runtime instructions and the script are focused on reading ~/.openclaw/openclaw.json to detect a provider, extracting an API key, and calling three monitoring endpoints on open.bigmodel.cn. The script does not attempt to exfiltrate data to unrelated endpoints or read arbitrary system files, but it will access the user's OpenClaw config (which may contain multiple provider API keys).
Install Mechanism
No install spec is provided (instruction-only skill plus a bash script). Installation is typical (copy files into ~/.openclaw/skills and make script executable). No remote downloads or archives are performed by the skill itself.
Credentials
Registry metadata declares no required credentials, but the script expects and reads an API key from ~/.openclaw/openclaw.json and uses it in Authorization headers when calling the monitoring API. This is a meaningful mismatch: the skill requires access to a secret stored in the user's config, and that secret will be sent to open.bigmodel.cn. The script also reads the HOME environment (for the config path) and an optional OPENCLAW_LANGUAGE env var; those are reasonable but not declared.
Persistence & Privilege
The skill is user-invocable and not always-enabled. It does not request elevated OS privileges, does not modify other skills or system-wide configuration, and does not persist new credentials. Installing simply places files under the user's ~/.openclaw/skills folder.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-glm-plan-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-glm-plan-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added full bilingual (Chinese/English) documentation to skill instructions, installation, configuration, usage, troubleshooting, and examples.
- Documented new support for bilingual output, with automatic language detection or manual override via the OPENCLAW_LANGUAGE environment variable.
- No functional/code changes, documentation only.
v1.0.0
Initial release of glm-plan-usage skill:
- Provides monitoring of GLM coding plan usage: token, model, and MCP tool statistics.
- Supports quota checks (5-hour token, 1-month MCP) and 24-hour usage stats.
- Auto-detects providers from OpenClaw config; optimized for the Zhipu platform.
- Offers clear error handling for missing dependencies, configuration, and API issues.
- Outputs results in Chinese; requires curl and jq for operation.
元数据
常见问题
glm-plan-usage 是什么?
查询 GLM 编码套餐使用统计,包括配额、模型使用和 MCP 工具使用情况 | Query GLM coding plan usage statistics, including quota, model usage, and MCP tool usage. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 747 次。
如何安装 glm-plan-usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-glm-plan-usage」即可一键安装,无需额外配置。
glm-plan-usage 是免费的吗?
是的,glm-plan-usage 完全免费(开源免费),可自由下载、安装和使用。
glm-plan-usage 支持哪些平台?
glm-plan-usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 glm-plan-usage?
由 OrientLuna(@orientluna)开发并维护,当前版本 v1.0.1。
推荐 Skills