KhadeerBasha1232/claude-usage-mod/tree/main/plugins/usage-band

Claude Code のプロンプト上に 1 行でプラン使用量、制限、コンテキストウィンドウ、モデル、セッションコストを表示し、リセット時刻、ペース警告、制限アラート、Compact ボタンを提供する mod。
KhadeerBasha1232/claude-usage-mod/tree/main/plugins/usage-band

Claude プランの使用量を常に表示します。Claude Code のプロンプト直上に 1 行のバンドを置き、5 時間のセッション上限、リセット時刻付きの週間上限、トークン単位のコンテキストウィンドウの使用率、API 価格で計算した現在のモデルとセッションコストを示します。ウィンドウが経過するより速く上限を消費している場合にも警告し、80%、95%、リセット時にアラートを表示します。コンテキストが 70% を超えると Compact ボタンも追加されます。各数値には小さな進捗リングがあり、70% で黄色、90% で赤になります。バンドは 15 秒ごと、および各ステップや返信の後に更新されます。macOS と Windows の Claude デスクトップアプリ(Code タブ)およびターミナルで動作し、Claude Code v2.1.286 以降が必要です。ローカルファイルだけを読み取り、ネットワーク要求は行いません。
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add KhadeerBasha1232/claude-usage-mod claude plugin install usage-band
Your Claude plan usage, always visible: a one-line band directly above the prompt in Claude Code.

◔ 5h 72% ⚠ resets 1:19 PM │ ◑ Week 50% resets Sat 2:30 PM │ ○ Context 40% 404k / 1M │ Opus 5.5 · $13.24 (+$0.41)
It also helps you stay ahead of your limits:
Each of these can be turned off in Settings.
Each figure has a small progress ring (pie glyphs ○ ◔ ◑ ◕ ● in the terminal) that turns yellow at 70% and red at 90%. The band updates live: every 15 seconds, after each step Claude takes, and after every reply. It always stays on one line: in a narrow window it shortens the reset times to ↻ 1:19 PM, then drops the token count, then the model. The cost always stays.
Works in the Claude desktop app (Code tab) on macOS and Windows, and in claude in the terminal.
In a Claude Code chat:
/plugin marketplace add KhadeerBasha1232/claude-usage-mod
/plugin install usage-band@claude-usage-mod
Then fully quit and reopen Claude (in the terminal, /reload-plugins is enough). In a new chat the band appears after your first message, once Claude Code has started.
Or from your shell:
claude plugin marketplace add KhadeerBasha1232/claude-usage-mod
claude plugin install usage-band@claude-usage-mod
Requires Claude Code with mod support (v2.1.286 or later).
Tip: turn on auto-update so you get new versions without doing anything.
| Figure | Source |
|---|---|
| 5h / Week | Claude Code's own rate-limit figures, which give exact reset times. Claude Code only reports them in some sessions, and only after a reply, so the band saves the last exact figures and every chat on your computer reuses them. Until it has seen exact figures once, it falls back to the usage history the Claude desktop app keeps on your computer (plan-usage-history.json). |
| Context, model, cost | Claude Code's session figures |
Saved reset times stay exact: the weekly one rolls on a week at a time, and the percentage always comes from the newest reading. Only when the band has never seen exact figures are the reset times worked out from the app's history, marked with ~:
weekly_reset (below).The band only reads local files. It makes no network requests and never touches your credentials.
| Option | What it does |
|---|---|
| weekly_reset | Recommended. Your weekly limit's reset time in local time, e.g. Sat 14:30 or Saturday 2:30 PM. You can find it in Claude Settings → Usage. Leave empty to detect it automatically. |
| alerts | Pop-ups at 80% and 95% and when a limit resets. On by default. |
| pace | The ⚠ pace warning. On by default. |
| compact_button | The Compact button once the context is over 70% full. On by default. |
| reply_cost | The last reply's cost next to the session cost. On by default. |
Set it with:
/plugin configure usage-band@claude-usage-mod
Claude Code doesn't auto-update third-party marketplaces unless you ask it to. Turn it on once and you'll get new versions by yourself:
/plugin.In the desktop app, use the same /plugin command in a Code tab chat.
Or add "autoUpdate": true to the marketplace's entry in ~/.claude/settings.json:
"extraKnownMarketplaces": {
"claude-usage-mod": {
"source": { "source": "github", "repo": "KhadeerBasha1232/claude-usage-mod" },
"autoUpdate": true
}
}
With auto-update on, Claude Code checks for a new version a few minutes after your first message in a chat. When it finds one, it shows Plugin updated: usage-band · Run /reload-plugins to apply, and your next chat loads it.
/plugin marketplace update claude-usage-mod
/plugin uninstall usage-band@claude-usage-mod
claude plugin validate --strict plugins/usage-band
claude plugin test plugins/usage-band
To try changes live, run claude --plugin-dir plugins/usage-band. Saving a file reloads the mod.