Track Z.ai GLM Coding Plan usage - subscription status, token quota, and hourly breakdown
npx claudepluginhub zereraz/tokensightTrack your Z.ai GLM Coding Plan usage - subscription status, token quota, and hourly breakdown
Track your Z.ai GLM Coding Plan usage directly in Claude Code.
Inside a Claude Code instance, run the following commands:
Step 1: Add the marketplace
/plugin marketplace add zereraz/tokensight
Step 2: Install the plugin
/plugin install tokensight
Step 3: Set up authentication
/tokensight auth <your_token>
Done! You can now check your usage anytime.
tokensight gives you visibility into your Z.ai GLM Coding Plan usage.
| What You See | Why It Matters |
|---|---|
| Subscription status | Know when your plan renews and billing cycle |
| 5-hour token quota | Track your rolling token usage with reset countdown |
| Monthly quota | Monitor web search/reader/zread tool usage |
| Hourly breakdown | See usage patterns throughout the day |
| Command | Description |
|---|---|
/tokensight | Show subscription and quota overview |
/tokensight today | Hourly breakdown for today |
/tokensight 7d | 7-day summary |
/tokensight 30d | 30-day summary |
/tokensight auth <token> | Save authentication token |
/tokensight:statusline | Enable always-visible statusLine (shows token quota) |
For always-visible token quota, enable the statusLine:
/tokensight:statusline
This displays a compact HUD that updates every few seconds:
[Z.ai] ███████░░ 45% 110M left ↺ 1h 30m
Monthly 14/1000 986 left
If you already have claude-hud installed, running /tokensight:statusline will automatically detect it and create a combined statusLine that shows both:
Both renderers use the same ANSI color scheme for consistency.
Get your token from Z.ai:
z-ai-open-platform-token-productioneyJhbGci)/tokensight auth <paste_token>Token is stored locally in ~/.tokensight.json.
╔════════════════════════════════════════════════════════════╗
║ Z.ai GLM Coding Plan Usage Tracker ║
╚════════════════════════════════════════════════════════════╝
Subscription: GLM Coding Pro
Status: VALID
Renews in: 83 days (2026-03-28)
5-Hour Quota:
25.6M / 200M tokens (12%)
174.4M remaining
Resets in: 1h 49m
Monthly Quota:
8 / 1000 calls (1%)
992 remaining
~/.tokensight.jsonMIT
This project was 100% built with Z.ai GLM 4.7. Inspired by claude-hud.