---
title: "usage-meter"
url: "https://claudemods.dev/ja/builds/usage-meter-854f5c"
source: "https://github.com/LeeHigma0201/claude-code-mods/tree/main/mods/usage-meter"
source_type: "github"
repo: "https://github.com/LeeHigma0201/claude-code-mods/tree/main/mods/usage-meter"
author: "LeeHigma0201"
author_handle: "LeeHigma0201"
stars: 3
category: "ダッシュボード・HUD"
categories: ["hud"]
tags: ["context", "cost", "hooks", "plan-limits", "status-line", "usage"]
permission_level: 0
scan_complete: true
install: "claude plugin marketplace add LeeHigma0201/claude-code-mods\nclaude plugin install usage-meter"
added: "2026-10-05T17:00:21.383Z"
updated: "2026-10-01T21:48:43Z"
locale: "ja"
content_locale: "ja"
---

# usage-meter

コンテキストの使用量、5時間と週間プラン上限、セッション費用をステータス行に表示し、Remote Control 用に /usage-meter も提供します。

## Description

セッションが上限に対してどこにいるかを表示します。読み取り専用で、終わりにしろと促すことはありません。

- **ステータス行**：各ターンの後、またはプランウィンドウが1ポイント動くたびに更新します：`ctx 42% · 5h 81% · 7d 23% · $3.10`。コンテキストの充填率、5時間と7日間のプランウィンドウ、セッション費用を表します。費用は API 換算値で、**サブスクリプションの利用量ではありません**。実際の支出は `/money` が担当します。
- **トースト**：プランウィンドウが 80% と 95% を初めて越えたときに表示します（ウィンドウごと、リセットごとに1回）。
- **`/usage-meter`**：同じ読み取り値とリセット時刻をトランスクリプトの行として表示します。ステータス行が描かれないスマートフォンの Remote Control から使えます。

プランウィンドウはサブスクリプションの場合だけ、セッションの最初のレスポンス後に表示されます。

Hooks：`session.start`（コマンドを登録）、`session.measure`、`command.run`。呼び出し：`$.session.usage`、`$.ui.status`、`$.ui.toast`、`$.clock.now`、`$.command.register`。

テスト：`claude plugin test .`（3テスト）。アンインストールはリポジトリの README を参照してください。

## Install

```
claude plugin marketplace add LeeHigma0201/claude-code-mods
claude plugin install usage-meter
```

## Original README

# usage-meter

Shows where the session stands against its limits. It is read-only and never nudges you to wrap up.

- **Status line**, refreshed after every turn and whenever a plan window moves a point:
  `ctx 42% · 5h 81% · 7d 23% · $3.10`. That is context fill, the 5-hour and 7-day plan windows, and session
  cost. Cost is the API-equivalent figure, **not** subscription usage; `/money` owns real spend.
- **Toast** the first time a plan window crosses 80% and 95% (once per window per reset).
- **`/usage-meter`**: the same readings with reset times, as a transcript line. Use this one from the phone
  over Remote Control, where the status line isn't drawn.

Plan windows show only on a subscription, after the first response of the session.

Hooks: `session.start` (registers the command), `session.measure`, `command.run`. Calls: `$.session.usage`,
`$.ui.status`, `$.ui.toast`, `$.clock.now`, `$.command.register`.

Test: `claude plugin test .` (3 tests). Uninstall: see the repo README.
