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 midudevv0.4.5MITIn 1 marketplace
Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, taking turns, side by side or fixed on one of them.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
What the meter showsdisplay
rotate: one window at a time, switching every few seconds. both: the 5-hour and weekly windows side by side. session: only the 5-hour window. week: only the weekly window.
One of rotate, both, session, week
stringdefault rotate
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.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Hide the mode cycle hinthideCycleHint
Drop "(shift+tab to cycle)" after the permission mode, to leave room for the meter.
booleandefault true
Seconds per windowrotateSeconds
How long the meter shows each window (5-hour, weekly) before it switches to the other. Only used when display is rotate.
numbermin 1default 8
Hide the interrupt hinthideInterruptHint
Drop "esc to interrupt" from the hint line while Claude works, to leave room for the meter.
booleandefault true
A Claude Code mod: your subscription usage, always at the bottom right, on the same line as the permission mode.
⏵⏵ auto mode on 5h ━━━━━━──── 58% ↻ 2h 10m
By default it switches between the 5-hour window and the weekly one every 8 seconds (rotateSeconds in /config). Set display there to change what it shows: rotate (the default), both (the two windows side by side, separated by |), session (only the 5-hour window) or week (only the weekly one). With a single reading available, every mode shows it. The bar turns yellow from 75% and red from 90%. After it, behind ↻, the time until that window resets.
Every open session shares the latest reading, so a window you are not using catches up within 8 seconds. It only sees what some Claude Code session measures: usage elsewhere (claude.ai, the mobile app) shows up at the next response.
Where the footer is short it fits the row instead of breaking to a second line: first the bar goes, then the reset time, and in a very narrow terminal the meter itself. Beside Narrator, the meter shrinks first, then the switch.
⏵⏵ auto mode on · 5h 58% ↻ 2h 10m · ⏵ narrator on
⏵⏵ auto mode on · 5h 58% · ⏵ narrator
There is no monthly window: Claude Code only reports the 5-hour and the weekly ones. Off a subscription (API key billing) there is nothing to show, so the footer stays as it is. The same in the Claude desktop app, which already shows the subscription usage itself: there the meter is the terminal's alone.
While it is on, in the terminal it also drops the (shift+tab to cycle) hint after the permission mode and esc to interrupt while Claude works, to leave room for the meter. Turn either off in /config (hideCycleHint, hideInterruptHint).
/plugin marketplace add midudev/better-claude
/plugin install sub-meter@better-claude
One hooks module (hooks/register.tsx):
session.measure hands it the rate-limit windows after each response (five_hour, seven_day); $.session.usage() gives the first reading at start.$.store with the time it was taken, so a new session shows it before its first response, and every open session reads it back every 8 seconds: what one measures shows up in the others.ui.render hook on SessionMode draws the meter and, after it, what is beneath (the engine's mode labels, another plugin's switch such as Narrator's, which so stays last); $.clock.every redraws the countdown every 8 seconds and, in rotate, switches the window.e.viewport.columns) less the footer's padding, the mode label and the hint, and less what is beneath; the meter takes the widest form that fits.ui.render hook on PromptHint rewrites the hint line without (shift+tab to cycle) and esc to interrupt, and notes its width; the engine still draws it, and the mode label before it.claude plugin validate ./plugins/sub-meter # from the repository root
claude plugin test ./plugins/sub-meter # runs hooks/register.test.tsx against the engine
MIT © Miguel Ángel Durán (midudev)
7-day copy clicks
npx claudepluginhub midudev/better-claude --plugin sub-meterPlugins from other owners that cover similar ground
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.