Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Arunjay4213v0.1.0MITIn 2 marketplaces
Shows the subscription plan limits - the 5-hour window, the 7-day window and a gateway spend limit - as a pinned status line under the prompt, with a reset countdown and a projection of when you would hit 100% at the pace of the last few samples. /quota opens a pane with a bar, the reset clock time and the burn rate for each window.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes none of the file, program, network, tool or prompt calls we list.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Your Claude subscription has usage windows: a 5-hour one, a 7-day one, and on a Claude gateway a spend limit.
Claude Code reports how full each one is, but only in a notice that appears once you are already close.
quota-meter keeps that reading on screen for the whole session, with a countdown to the reset and an estimate of how long the current pace can last.
A line is pinned under the prompt from the start of the session:
5h 15% (resets 1h23m) · 7d 6% · nothing hits 100% before reset
The end of the line is the part to watch, and it says one of three things:
5h full in ~2h05m means that at the recent pace this window fills before it resets.nothing hits 100% before reset means every window resets before the pace could fill it.collecting burn rate means no window has been watched long enough to have a usable rate yet.
A window that is still collecting is left out of this part of the line, but it never hides a window that does have a rate.When the account reports no windows at all the line reads no plan limits reported yet.
That is normal for an API-key session, and for the first few seconds of any session before Claude has answered once.
/quota opens and closes a pane with one block per window:
5-hour limit · 15% used
██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
resets 15:00, in 1h23m
burn 24.4%/h over the last 2m
projection: resets first
7-day limit · 6% used
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
resets Sun 02:00, in 5d 12h
burn 0.0%/h over the last 2m
projection: steady, not rising
The bar is drawn to the pane's width, so it fits both when the pane is docked beside the transcript (110 columns and up, in the fullscreen layout) and when it sits inline above the prompt on a narrow terminal. The reset is shown both as a clock time and as a countdown.
claude plugin marketplace add Arunjay4213/claude-mods
claude plugin install quota-meter@claude-mods
Mods are early access, so the hooks module only loads when function hooks are switched on.
Add this to ~/.claude/settings.json:
{
"env": { "CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1" }
}
or set CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 on the command line for one run.
To try it from a checkout without installing:
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 claude --plugin-dir plugins/quota-meter

$.session.usage() reports the windows the last API response carried, each as { kind, percentUsed, resetsAt }.
The mod reads it after every finished turn and on a 60 second tick, and keeps each reading as { atMs, percentUsed } in $.store.
The burn rate is the slope from the first reading to the last, (last percent - first percent) / (last time - first time), in percent per hour.
It uses that instead of a least-squares fit because the readings inside one window form a step function that only rises, and a fit through the middle of it would understate where the window is now.
A rate is only quoted once the readings span 5% of the window, which is 15 minutes for the 5-hour window and about 8.4 hours for the 7-day one (spend limits use the same 7-day clock).
Until then both the line and the pane say collecting.
The wait is there because the API reports usage as a whole percent.
If a 7-day window ticks from 6% to 7% during a 16 minute span, that reads as 3.8% per hour and projects a full window in a day, while the same single tick spread over 8.4 hours reads as the small movement it really was.
Percent values are also rounded to whole numbers before any math, because the API sometimes reports 7.000000000000001.
The projection is the remaining percent divided by the rate, (100 - percentUsed) / burn.
If the window resets before that point, the mod says resets first, and if the rate is zero or falling it says steady, not rising.
Old readings are dropped once they no longer describe the current window.
Anything older than the window length goes, and when the percent falls by more than half a point the window has reset, so every reading before that is discarded.
Readings persist in $.store, so restarting Claude Code inside the same window keeps the rate you had built up.
Nothing is estimated or filled in: if the API does not report a figure, the mod reports it as missing.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub arunjay4213/claude-mods --plugin quota-meterPlugins from other owners that cover similar ground