{"skill":{"slug":"zai-usage","displayName":"Zai Usage","summary":"Monitor Z.AI GLM Coding Plan usage and quota limits. Track token consumption, view reset times, and check subscription status.","description":"---\nname: zai-usage\nversion: 1.1.0\ndescription: Monitor Z.AI GLM Coding Plan usage and quota limits. Track token consumption, view reset times, and check subscription status.\nauthor: openclaw\nlicense: MIT\nkeywords:\n  - z.ai\n  - glm\n  - usage\n  - quota\n  - monitoring\n  - tokens\nhomepage: https://z.ai\nrepository: https://github.com/openclaw/skills\n---\n\n# Z.AI Usage Monitor\n\nTrack your Z.AI GLM Coding Plan usage in real-time.\n\n## Quick Start\n\n```bash\n# Check usage\n~/.openclaw/skills/zai-usage/scripts/usage-summary.sh\n\n# Quick status\n~/.openclaw/skills/zai-usage/scripts/quick-check.sh\n```\n\n## Setup\n\n1. Get your JWT token from https://z.ai/manage-apikey/subscription\n   - Open DevTools (F12)\n   - Application → Local Storage → `z-ai-open-platform-token-production`\n\n2. Store in `~/.openclaw/secrets/zai.env`:\n   ```\n   ZAI_JWT_TOKEN=eyJhbGci...\n   ```\n\n## What You See\n\n- **5-Hour Quota** - Rolling token usage with reset countdown\n- **Monthly Quota** - Monthly token allocation\n- **Web Tools** - Search/reader/zread call limits\n- **Plan Level** - Lite/Pro subscription status\n\n## Status Icons\n\n| Icon | Usage |\n|------|-------|\n| ✅ | < 50% |\n| ⚠️ | 50-80% |\n| 🔴 | > 80% |\n\n## Commands\n\nAsk me:\n- \"How's our Z.AI usage?\"\n- \"Check credit usage\"\n- \"Are we running low on credits?\"\n\n## Requirements\n\n- `curl` - HTTP requests\n- `jq` - JSON parsing\n- `bc` - Number formatting (optional)\n\n## Sources\n\n- https://github.com/zereraz/tokensight\n- https://www.reddit.com/r/ZaiGLM/comments/1pmb7fj/how_to_check_zai_coding_usage/\n","topics":["Usage","Glm","Quota","Monitoring","Tokens"],"tags":{"latest":"1.1.0"},"stats":{"comments":0,"downloads":813,"installsAllTime":30,"installsCurrent":0,"stars":0,"versions":3},"createdAt":1772139462084,"updatedAt":1779077331956},"latestVersion":{"version":"1.1.0","createdAt":1772139567824,"changelog":"Improved documentation, better error handling, multiple token location support","license":null},"metadata":{"setup":[],"os":null,"systems":null},"owner":{"handle":"1vecera","userId":"s17c5vnkmnyzjz2a2bvthpwygx885q9k","displayName":"Daniel Vecera","image":"https://avatars.githubusercontent.com/u/32644386?v=4"},"moderation":null}