ClaudeCodeMod

All shelves / Mods / Usage

usage-quota

By anantraghunath

usage-quota is a Claude Code usage mod by anantraghunath.

Draws 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.

Draws

Install

The marketplace name is claude-code-usage-quota-mod.

In Claude Code
/plugin marketplace add anantraghunath/claude-code-usage-quota-mod
/plugin install usage-quota@claude-code-usage-quota-mod
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.6
License
MIT
Repo stars
27
Last change
2026-10-10

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Reaches the network or an outside service
  • Runs a command when you press
  • Calls another program on this machine

Needs Claude Code 2.1.287 or later, signed in with a Pro or Max plan. Run /reload-plugins after installing; if the band does not appear, restart Claude Code. In the desktop app, the README has you ask Claude in the Code tab to install the usage-quota plugin from the GitHub marketplace anantraghunath/claude-code-usage-quota-mod, then quit and reopen the app. From your own shell, the two claude plugin lines do the same. Installed before v0.1.5? The plugin was renamed from claude-code-usage-quota to usage-quota, so remove the old one and install again. The 5 Hour and Weekly limits are your whole Claude account's, Claude chat and Cowork included. Auto compact compacts the session once the context reaches 30% by default, set from 15 to 99, and never mid-reply; each session keeps its own setting, and a new session starts with it off. In the terminal, the arrow control expands and collapses the band. /quota turns the band off and on.

The marketplace name is claude-code-usage-quota-mod, and it holds only this plugin. The plan limits and the context window are why this page files it under usage. usage-band draws one line for the 5-hour and 7-day limits, the context, and the last turn's cache hit. statuspane draws a card with the limits and a context gauge you press to run /compact. This one forecasts where each limit will be at its reset, from your usual pace, and can compact the session by itself at a context percent you set. In the source, Auto compact compacts through the session itself, and types /compact where that way is refused, as the desktop app does.

Demo

The author's screenshot of the usage-quota band in the desktop app, expanded: On track. You should reach Wednesday's reset with room to spare; the 5 Hour bar at 81%, on pace for about 87% by reset, resetting in 23m; the Weekly bar at 20%, on pace for about 36%, resetting in 2d 20h; the context 24% used, 723k free of 1M, split into Messages 190k, Tools 36k, and Other 18k; an Auto compact switch at 30% and a Compact button. The figures are the author's sample.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • ui.focusA Claude Code eventAbovePrompt
  • ui.pressA Claude Code eventAbovePrompt
  • prompt.editWhen you edit the prompt
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command/quota
  • ui.renderDraws into the sessionAbovePrompt

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

Slash commands 1

  • /quotaToggle the Claude Code Usage Quota band above the prompt

Files

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

Facts

Author
anantraghunath
Category
Usage
Marketplace
claude-code-usage-quota-mod
Repo
anantraghunath/claude-code-usage-quota-mod
Version
0.1.6
License
MIT
Repo stars
27
Last change
2026-10-10
Language
TypeScript
Files
37

Other mods in Usage

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.ccbaremaballarinDraws a quiet band above the prompt: model and effort, the GitHub repo and branch with lines changed, a context bar split as /context, tokens, and plan limits.token-monitor-hudfractal-manifoldDraws the 5-hour and 7-day windows above the prompt with reset times and where each lands at this pace, plus Codex and Antigravity quotas if they're signed in.cost-ledgerFynnXlandKeeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.limit-barsFynnXlandDraws the 5-hour and weekly limits as two slim bars above the prompt, a ring for how long the prompt cache stays warm, and asks before a costly cold send.claude-loadGerruxOpens a /load pane of CPU and memory per Claude Code session, with orphaned dev servers you can end, and draws a load line above the prompt under high load.smart-compacthellosverreOffers /compact in a dialog above the prompt at good moments: after a commit, when tests go green, before the prompt cache expires, or when Claude asks.tideHula-Hoop-AIDraws the context window as a tide above the prompt: a fill bar by phase, a sparkline of recent turns, the rise per turn, and turns left before compaction.
All 183 in Usage