All shelves / Mods / Usage
sub-meter
By midudev
sub-meter is a Claude Code usage mod by midudev.
Draws your 5-hour and weekly subscription usage at the bottom right, on the permission mode's line, with a bar and the time until it resets.
Draws
Install
The marketplace name is better-claude.
/plugin marketplace add midudev/better-claude /plugin install sub-meter@better-claude
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.4.2
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
What it can reach
- Draws in the session
- Reads usage or context figures
The meter sits on the same line as the permission mode: 5h, a bar, the percent, and behind ↻ the time until that window resets. By default it switches between the 5-hour and the weekly window every 8 seconds, and rotateSeconds in /config sets the pace. display picks rotate, both side by side, session for the 5-hour window only, or week. The bar turns yellow from 75% and red from 90%. Every open session shares the latest reading, so a window you are not using catches up within 8 seconds. Usage elsewhere, on claude.ai or the mobile app, shows up at the next response. There is no monthly window, because Claude Code reports only the 5-hour and weekly ones. With API key billing there is nothing to show, and the footer stays as it is. In a short footer it drops the bar, then the reset time, then the meter. While it is on, it also drops the (shift+tab to cycle) and esc to interrupt hints, and hideCycleHint and hideInterruptHint in /config turn that off.
The marketplace name is better-claude. The marketplace also holds after, use-haiku, think-hard, token-meter, context-meter, image-preview, commit, narrator, and time-machine. This one installs on its own. The subscription meter is why this page files it under usage. usage-status-robbyt draws a row under the prompt hint with the 5-hour and 7-day limits left and how full the context is. quota-meter pins the 5-hour and 7-day plan limits, with the reset and whether the current pace fills them first. This one sits on the permission mode's line and takes turns between the two windows.
Demo

What it hooks into
session.startWhen a session startssession.endWhen a session endssession.measureWhen usage is measuredui.renderDraws into the sessionSessionModePromptHint
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- midudev
- Category
- Usage
- Marketplace
- better-claude
- Folder
- plugins/sub-meter
- Version
- 0.4.2
- License
- MIT
- Repo stars
- 194
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 7