feat: add zai-quota-hud plugin for statusline quota display#11
Open
n1majne3 wants to merge 1 commit intozai-org:mainfrom
Open
feat: add zai-quota-hud plugin for statusline quota display#11n1majne3 wants to merge 1 commit intozai-org:mainfrom
n1majne3 wants to merge 1 commit intozai-org:mainfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ZAI ██░░░ 37%ZAI █████ 100% ⏳ 1h 23m/zai-quota-hud:quota(per-model, supports both ZAI & Zhipu endpoints)/zai-quota-hud:setupcommandapi.z.ai) and Zhipu (open.bigmodel.cn) endpointsWhy this plugin?
Compared to
glm-plan-usagewhich 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 configmarketplace.json,README.md, andREADME_CN.mdto reference the new pluginTesting
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.