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

# usage-meter

狀態列計量器，顯示脈絡填充率、5 小時與每週方案上限，以及工作階段成本；另有供 Remote Control 使用的 /usage-meter。

## Description

顯示工作階段相對於上限的位置。它是唯讀的，絕不催促你收尾。

- **狀態列**：每個回合後，以及方案視窗移動一個百分點時更新：`ctx 42% · 5h 81% · 7d 23% · $3.10`。這代表脈絡填充率、5 小時與 7 天方案視窗，以及工作階段成本。成本是 API 等值金額，**不是訂閱用量**；實際支出由 `/money` 管理。
- **通知**：方案視窗第一次跨過 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.
