ClaudeCodeMod

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.

In Claude Code
/plugin marketplace add midudev/better-claude
/plugin install sub-meter@better-claude
Open the repo

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

The opening of the Sub Meter README: 5h, a bar, 58% and the reset time on the permission mode's line, the rotate, both, session, and week displays, and how the meter shrinks beside Narrator.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • session.measureWhen usage is measured
  • ui.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
Repo
midudev/better-claude
Folder
plugins/sub-meter
Version
0.4.2
License
MIT
Repo stars
194
Last change
2026-10-22
Language
TypeScript
Files
7

Other mods in Usage

token-metermidudevEnds the hint line under the prompt with the last turn's input, output, and cache tokens, and the session's running total, in color.use-haikumidudevRuns a prompt that starts with _ on Haiku, subagents included, and shows it as you type, while it runs, and under the answer.agent-usage-guardrbartoliHolds a commandAsks before a subagent starts, a heavy prompt is sent, or a tool loop runs on, from the 5-hour and weekly usage, and refuses when nobody can answer.optim-jevOqura-aiHas TypeSafe's Jev drop stale tool calls and their output when the session compacts, keeping the rest word for word, and draws a dashboard above the prompt.secondwindorchetronCompresses Bash output of 512 bytes or more through the local secondwind binary, keeps the full text one call away, and draws a pane of the net tokens saved.session-hudbradtraversyDraws a strip above the prompt with the git branch, warned on main, context used against a target you set, and weekly usage, and a Details pane of the rest.time-blamekaranb192Splits each turn's time between Claude, each tool, your approvals, and the rest, under the answer, and /blame opens a panel of the whole session's split.subagent-tunerKruhlikauHolds a commandPicks each subagent's model and effort by asking you in a pane, from a recommendation for the task, or from your saved default, with a band above the prompt.cockpitdrkokorevHolds a commandOpens a panel beside the transcript with context, rate limits, cost, subagents, tool calls, changed files, and tests, and asks before rm -rf or a force push.cache-refresherolddonkeyDraws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.
All 183 in Usage