0xGondarxyz/claude-code-mods/tree/main/usage-meter
usage-meter
Claude Code の mod。ステータス行に Claude の 5 時間と週単位のレート制限を表示し、80% と 90% で toast を送ります。
この mod について
usage-meter
Claude Code の mod です。ステータス行に Claude の 5 時間と週単位のレート制限を表示し、80% と 90% で toast を送ります。
インストール
/plugin marketplace add 0xGondarxyz/claude-code-mods
/plugin install usage-meter@claude-code-mods
インストールせずに試すこともできます。
git clone https://github.com/0xGondarxyz/claude-code-mods
claude --plugin-dir claude-code-mods/usage-meter
mod はサンドボックス化されていません。Claude Code と同じアクセス権で動きます。この mod も含め、どの mod でもインストール前にソースを読んでください。
表示内容
ステータス行:
Claude 5h 62% (resets 18:40) · week 41%
ウィンドウが初めて 80% に達したときに一度、90% でさらに一度 toast を表示します。
Claude 5h limit at 82%, resets 18:40. Good time to hand big tasks to Sonnet.
値が 80% 未満から一気に 90% を超えた場合は、90% の toast だけを送ります。使用量が 80% 未満に戻ると、もう一度警告します。これはウィンドウがリセットされたときに起きます。
| ウィンドウ | ラベル |
| --- | --- |
| 5 時間 | 5h |
| 7 日 | week |
| Spend limit (Claude gateway) | spend |
| その他 | ウィンドウ本来の名前 |
リセット時刻はローカルの 24 時間表記で、5h の部分だけに表示されます。リセット時刻がない場合は省略します。
メモ
- Claude のサブスクリプションが必要です。API key ではレート制限のウィンドウがないため、何も表示しません。
- 数値は各ターン後(およびウィンドウの値が 1 ポイント動いたとき)に更新されるため、ウィンドウがリセットされた直後は遅れることがあります。
テスト
claude plugin test .
MIT
インストール
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install usage-meter
原文 / README
usage-meter
A Claude Code mod that shows your Claude 5 hour and weekly rate limits in the status line and sends a toast at 80% and 90%.
Install
/plugin marketplace add 0xGondarxyz/claude-code-mods
/plugin install usage-meter@claude-code-mods
Or try it without installing:
git clone https://github.com/0xGondarxyz/claude-code-mods
claude --plugin-dir claude-code-mods/usage-meter
Mods are not sandboxed. They run with the same access as Claude Code. Read the source before you install any mod, including this one.
What it shows
Status line:
Claude 5h 62% (resets 18:40) · week 41%
Toast, once when a window first reaches 80% and once more at 90%:
Claude 5h limit at 82%, resets 18:40. Good time to hand big tasks to Sonnet.
If a reading jumps from below 80% straight past 90%, only the 90% toast is sent. It warns again after usage falls back under 80%, which happens when the window resets.
| Window | Label |
| --- | --- |
| 5 hour | 5h |
| 7 day | week |
| Spend limit (Claude gateway) | spend |
| Anything else | the window's own name |
The reset time is local, 24 hour, and shown on the 5h part only. It is left out when the reset time is missing.
Notes
- Needs a Claude subscription. With an API key there are no rate-limit windows, so it shows nothing.
- Figures update after each turn (and when a window moves a whole point), so they can lag right after a window resets.
Tests
claude plugin test .
MIT
同名の他の作品
- usage-meterhamzafer · ★ 91
- usage-metermishgoldenberg · ★ 3
- usage-meterLeeHigma0201 · ★ 3
- usage-metereshin087 · ★ 0
- usage-meterPimzino · ★ 0