Z.AI Usage Monitor
Track your Z.AI GLM Coding Plan usage in real-time.
Quick Start
CODEBLOCK0
Setup
- 1. Get your JWT token from https://z.ai/manage-apikey/subscription
- Open DevTools (F12)
- Application → Local Storage → INLINECODE0
- 2. Store in
~/.openclaw/secrets/zai.env:
CODEBLOCK1
What You See
- - 5-Hour Quota - Rolling token usage with reset countdown
- Monthly Quota - Monthly token allocation
- Web Tools - Search/reader/zread call limits
- Plan Level - Lite/Pro subscription status
Status Icons
50-80% |
| 🔴 | > 80% |
Commands
Ask me:
- - "How's our Z.AI usage?"
- "Check credit usage"
- "Are we running low on credits?"
Requirements
- -
curl - HTTP requests - INLINECODE3 - JSON parsing
- INLINECODE4 - Number formatting (optional)
Sources
- - https://github.com/zereraz/tokensight
- https://www.reddit.com/r/ZaiGLM/comments/1pmb7fj/howtocheckzaicoding_usage/
Z.AI 使用监控器
实时追踪你的 Z.AI GLM 编程计划使用情况。
快速开始
bash
检查使用情况
~/.openclaw/skills/zai-usage/scripts/usage-summary.sh
快速状态查询
~/.openclaw/skills/zai-usage/scripts/quick-check.sh
设置方法
- 1. 从 https://z.ai/manage-apikey/subscription 获取你的 JWT 令牌
- 打开开发者工具(F12)
- 应用程序 → 本地存储 → z-ai-open-platform-token-production
- 2. 存储在 ~/.openclaw/secrets/zai.env 文件中:
ZAIJWTTOKEN=eyJhbGci...
显示内容
- - 5小时配额 - 滚动令牌使用量及重置倒计时
- 月度配额 - 月度令牌分配量
- 网络工具 - 搜索/阅读器/zread 调用限制
- 计划等级 - Lite/Pro 订阅状态
状态图标
50-80% |
| 🔴 | > 80% |
命令
向我提问:
- - 我们的 Z.AI 使用情况如何?
- 检查额度使用情况
- 我们的额度快用完了吗?
依赖要求
- - curl - HTTP 请求
- jq - JSON 解析
- bc - 数字格式化(可选)
来源
- - https://github.com/zereraz/tokensight
- https://www.reddit.com/r/ZaiGLM/comments/1pmb7fj/howtocheckzaicoding_usage/