ClaudeCodeMod

All shelves / Mods / Usage

usage-bar

By omeerdvrn

usage-bar is a Claude Code usage mod by omeerdvrn.

Draws your 5-hour and 7-day plan limits under the prompt, used or left, with the git branch and file counts, the model, context, and the session's cost.

Draws

Install

The marketplace name is o-mods.

In your shell
claude plugin marketplace add omeerdvrn/o-mods
claude plugin install usage-bar@o-mods
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.1.0
License
MIT
Repo stars
6
Last change
2026-10-15

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Calls another program on this machine

Run /reload-plugins in a session that is already open. The limit readings come from Claude Code itself, so the bars appear after the session's first reply; API-key and gateway sessions without plan limits show no bars. /usage-bar switches the bars between used and left, and /usage-bar used or /usage-bar remaining picks one; the choice is kept across sessions. A percentage turns amber at 70% and red at 90%, and a tick marks how much of the window's time has passed. Git is read when the session starts, after each turn, and every 15 seconds; outside a repository it shows the folder name. Labels other mods add to the footer, such as heat's tier, show here too. It replaces a statusLine command for these figures: remove statusLine from ~/.claude/settings.json if you used one for them.

The marketplace name is o-mods. The marketplace also holds heat, linear, usage-stats, persona, themes, and other mods, from the same author. This one installs on its own. The plan limits are why this page files it under usage. usage-meter draws the 5-hour and 7-day limits as small bars above the prompt, with the reset countdown and the session's cost. sub-meter draws the 5-hour and weekly usage at the bottom right, on the permission mode's line. This one sits under the prompt, can show what is left instead of what is used, and adds the git branch or linked worktree, with staged, modified, and untracked files and commits ahead and behind. Git is the local program. The limits come from Claude Code's own API responses, so this page does not list network access. In the source, the footer is drawn in the SessionMode slot.

Demo

The author's recording of a terminal session with usage-bar under the prompt: the footer shows the branch feature/eng-123 with staged, modified, and untracked counts and commits ahead, then after the first reply the 5h bar at 42% resetting in 2h13m and the 7d bar at 18% resetting Sunday, with the model, context, and cost. Claude commits a fix and the commits ahead go up; asked to switch back to main, the branch changes to main; then /usage-bar switches the bars to 58% left and 82% left. The project and figures are the author's sample.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/usage-bar/usage-bar:usage-bar
  • session.measureWhen usage is measured
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionSessionMode

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /usage-barShow plan limits as used or remaining

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
omeerdvrn
Category
Usage
Marketplace
o-mods
Repo
omeerdvrn/o-mods
Folder
mods/usage-bar
Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-15
Language
TypeScript
Files
15

Other mods in Usage

limitsRyan-LTDraws a band above the prompt with the 5-hour and weekly limits, a pace warning, and context fill, and toasts at 75%, 90%, and 100%.context-guardmelodic-softwareShows a toast when the session's context crosses into a worse zone, smart, acceptable, or dumb, and can draw the zone and percent in a row above the prompt.rate-limit-guardmelodic-softwareShows a toast when the account's 5-hour or 7-day rate-limit window reaches 90% or 95% and when it resets, and can draw both windows in a row above the prompt.orca-quotamutlumehmetDraws the 5-hour and 7-day usage of every Claude account on this machine in one band above the prompt, and warns once before the current account hits its limit.context-keepermishgoldenbergOpens a pane of what fills the context window with tips to trim it, and saves a handoff note of the goal, decisions, files, and TODOs to .claude/checkpoints/.usage-metermishgoldenbergOpens a pane of the 5-hour and 7-day plan limits with reset countdowns, burn rate and when a limit fills, session cost, cache hit ratio, and tokens per turn.usage-quotaanantraghunathDraws the 5-hour and weekly limits with a forecast at reset and the context window above the prompt, with a Compact button and Auto compact at a set percent.usage-graphdonvitoDraws cards above the prompt for the 5-hour limit, the weekly limit, and the context window, each with its percentage, a bar, and when it resets.wavy-usageBatuhanCakmakkDraws liquid-filled rings above the prompt for the 5-hour and 7-day limits, the context, and the prompt cache, a jet for the effort, and a pane of recent turns.usage-band-modjonathanlocksDraws one line above the prompt with the model, session cost, context, the 5-hour and weekly limits, and a per-model weekly limit, led by a pixel crab mascot.usage-statsconnorchuang32Opens /usage-stats in the desktop app: a heat map of tokens per day, trends and models tabs, and a Wrapped-style card you can save as an SVG.session-infodougcunhaHolds a commandOpens a pane of the session: context, cost, prompt cache, plan usage, agents, checks, CI runs, and Git, and holds a prompt that would rewrite an expired cache.
All 183 in Usage