sub-meter
by Miguel Ángel Durán (midudev) · ★ 1 · updated today
Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, as a bar that takes turns.
Install
/plugin marketplace add midudev/after-for-claude-code/plugin install sub-meter@better-claudeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.measureui.render- API calls
$.clock.every$.clock.now$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.resolve- Draws
SessionModePromptHint- Reach
- level 1 of 3 other: $.state.getother: $.state.setpersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/midudev/after-for-claude-code
- Path in repo
sub-meter- Source commit
c2ed4a0the exact code the scan read- Author
- Miguel Ángel Durán (midudev) @midudev
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from midudev/after-for-claude-code
think-hard
midudev/after-for-claude-code
Start a prompt with + and that turn thinks at max effort. Other prompts keep the session's effort.
token-meter
midudev/after-for-claude-code
Each turn's tokens and the session's running total, in color at the end of the hint line under the prompt.
use-haiku
midudev/after-for-claude-code
Start a prompt with _ and that turn runs on Haiku. Other prompts keep the session's model.