Track your Z.ai GLM Coding Plan usage - subscription status, token quota, and hourly breakdown
npx claudepluginhub zereraz/tokensight --plugin tokensightTrack 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.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
A meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
Orchestrate multi-agent teams for parallel code review, hypothesis-driven debugging, and coordinated feature development using Claude Code's Agent Teams
Comprehensive toolkit for developing Claude Code plugins. Includes 7 expert skills covering hooks, MCP integration, commands, agents, and best practices. AI-assisted plugin creation and validation.
Continuous self-referential AI loops for interactive iterative development, implementing the Ralph Wiggum technique. Run Claude in a while-true loop with the same prompt until task completion.