Skip to content

feat: add zai-quota-hud plugin for statusline quota display#11

Open
n1majne3 wants to merge 1 commit intozai-org:mainfrom
n1majne3:add-zai-quota-hud
Open

feat: add zai-quota-hud plugin for statusline quota display#11
n1majne3 wants to merge 1 commit intozai-org:mainfrom
n1majne3:add-zai-quota-hud

Conversation

@n1majne3
Copy link
Copy Markdown

@n1majne3 n1majne3 commented Apr 5, 2026

Summary

Adds zai-quota-hud — a Claude Code plugin that displays ZAI/GLM Coding Plan token quota usage directly in the statusline as a color-coded progress bar.

Features

  • Visual progress bar in the statusline: ZAI ██░░░ 37%
  • Color-coded: green (<50%), yellow (50-80%), red (>80%)
  • Reset countdown at 100%: ZAI █████ 100% ⏳ 1h 23m
  • Detailed quota breakdown via /zai-quota-hud:quota (per-model, supports both ZAI & Zhipu endpoints)
  • Easy setup via /zai-quota-hud:setup command
  • Smart caching (60s TTL) to minimize API calls
  • Supports both ZAI (api.z.ai) and Zhipu (open.bigmodel.cn) endpoints

Why this plugin?

Compared to glm-plan-usage which is a conversational query tool, zai-quota-hud provides always-visible, real-time quota monitoring directly in the Claude Code statusline — no need to run a command to check your usage.

Files Added

  • plugins/zai-quota-hud/ — complete plugin with statusline script, commands, and plugin config
  • Updated marketplace.json, README.md, and README_CN.md to reference the new plugin

Testing

Tested with both ZAI and Zhipu endpoints. Installed via marketplace and verified statusline display, color coding, countdown timer, and quota query commands all work correctly.

Adds the zai-quota-hud plugin which displays ZAI/GLM Coding Plan token
quota usage directly in the Claude Code statusline as a color-coded
progress bar. Features include:
- Color-coded visual progress bar (green/yellow/red)
- Automatic color changes based on usage percentage
- Reset countdown timer at 100% usage
- Detailed per-model quota breakdown via /zai-quota-hud:quota command
- Easy statusline setup via /zai-quota-hud:setup command
- Supports both ZAI (api.z.ai) and Zhipu (open.bigmodel.cn) endpoints
- Caches API responses for 60 seconds to minimize requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant