---
title: "usage-meter"
url: "https://claudemods.dev/zh-cn/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: "zh-cn"
content_locale: "zh-cn"
---

# usage-meter

状态列计量器，显示上下文填充率、5 小时和每周方案限额以及工作阶段成本；另有供 Remote Control 使用的 /usage-meter。

## Description

显示工作阶段相对于限额所处的位置。它是只读的，从不会催促你收尾。

- **状态列**：每个回合结束后，以及方案窗口移动一个百分点时刷新：`ctx 42% · 5h 81% · 7d 23% · $3.10`。这表示上下文填充率、5 小时和 7 天方案窗口，以及工作阶段成本。成本是 API 等价金额，**不是订阅用量**；实际支出由 `/money` 负责。
- **Toast**：方案窗口第一次跨过 80% 和 95% 时显示（每个窗口每次重置一次）。
- **`/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.
