Skills zai-usage
Monitor Z.AI GLM Coding Plan usage and quota limits. Track token consumption, view reset times, and check subscription status.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/1vecera/zai-usage" ~/.claude/skills/clawdbot-skills-zai-usage && rm -rf "$T"
manifest:
skills/1vecera/zai-usage/SKILL.mdsource content
Z.AI Usage Monitor
Track your Z.AI GLM Coding Plan usage in real-time.
Quick Start
# Check usage ~/.openclaw/skills/zai-usage/scripts/usage-summary.sh # Quick status ~/.openclaw/skills/zai-usage/scripts/quick-check.sh
Setup
-
Get your JWT token from https://z.ai/manage-apikey/subscription
- Open DevTools (F12)
- Application → Local Storage →
z-ai-open-platform-token-production
-
Store in
:~/.openclaw/secrets/zai.envZAI_JWT_TOKEN=eyJhbGci...
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
| Icon | Usage |
|---|---|
| ✅ | < 50% |
| ⚠️ | 50-80% |
| 🔴 | > 80% |
Commands
Ask me:
- "How's our Z.AI usage?"
- "Check credit usage"
- "Are we running low on credits?"
Requirements
- HTTP requestscurl
- JSON parsingjq
- Number formatting (optional)bc