---
title: "token-weather-usage"
url: "https://claudemods.dev/zh-cn/builds/token-weather-usage-df7534"
source: "https://github.com/augiefra/claude-mods/tree/main/plugins/token-weather-usage"
source_type: "github"
repo: "https://github.com/augiefra/claude-mods/tree/main/plugins/token-weather-usage"
author: "augiefra"
author_handle: "augiefra"
stars: 30
category: "用量与成本"
categories: ["cost"]
tags: ["Claude Code", "mod"]
permission_level: 1
scan_complete: true
install: "claude plugin marketplace add augiefra/claude-mods\nclaude plugin install token-weather-usage"
added: "2026-10-03T12:00:58.826Z"
updated: "2026-11-14T08:18:30Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# token-weather-usage

token-weather-usage：提示符上方一行：上下文天气、令牌数、最近每个提示符一根条形，以及您的 5 小时和 7 天限额

## Description

# Token Weather Usage

在 Claude Code 提示符上方一行：您的 5 小时和 7 天限额对比时钟、上下文天气、令牌数，以及每个提示符一根条形。

![桌面应用中的条带](https://raw.githubusercontent.com/augiefra/claude-mods/main/docs/band.png)

- **5h / 7d**：您的账户限额已使用的比例，按速度显示绿色、黄色或红色。与已用时间的差距用阴影线表示：有剩余时为灰色，使用速度超过时间流逝时显示为条形的颜色。然后是剩余时间和重置时间（机器的时区）。
- **上下文天气**：从晴朗到“即将压缩”，根据已使用的上下文窗口比例。应用内绘制图标，终端中使用 Unicode 符号。
- **上下文**：已使用窗口的百分比和令牌数。
- **轮次**：最近 8 个提示符每个一根条形，高度为其添加的令牌数；当前提示符用颜色显示。跨重启保留。

![与已用时间的差距阴影线](https://raw.githubusercontent.com/augiefra/claude-mods/main/docs/gauges-hatching.png)

终端中：

```
☂ Showers │ 63% context · 634k/1M │ turns ▃▆▂█▃▄▂▆ ▲ +6.3k │ 5h ━━━━━━╍─ 74% · 24 min → 18:20 │ 7d ━━━━━─── 65% · 2d20h
```

标签为英文或法文：`auto` 遵循 `LC_ALL`、`LC_MESSAGES` 或 `LANG`，否则在 **Language** 选项（`/config`）中选择 `en` 或 `fr`。

## 隐私

不收集、发送或保留任何个人数据，不进行网络请求。该模组读取 Claude Code 提供的使用数据和区域设置变量，并在插件的本地存储中保留最新的限额读取值以及每个会话的近期上下文读取值（闲置 8 天后删除）。

## 致谢和许可

天气、上下文和轮次图表基于 Anthropic 的 **Token Weather** 示例（[claude-code-playground](https://github.com/anthropics/claude-code-playground)，Apache-2.0）。限额仪表基于 HolyGrail 的 **usage-meter**（[HolyGrail/claude-mods](https://github.com/HolyGrail/claude-mods/tree/main/plugins/usage-meter)）编写，未复制其代码。Apache-2.0 许可：参见 [LICENSE](https://github.com/augiefra/claude-mods/blob/main/LICENSE) 和 [NOTICE](https://github.com/augiefra/claude-mods/blob/main/NOTICE)。

## Install

```
claude plugin marketplace add augiefra/claude-mods
claude plugin install token-weather-usage
```

## Original README

# Token Weather Usage

One line above the Claude Code prompt: your 5-hour and 7-day limits against the clock, the context weather, the tokens, and a bar per prompt.

![The band in the desktop app](https://raw.githubusercontent.com/augiefra/claude-mods/main/docs/band.png)

- **5h / 7d**: the share of your account's limits already used, in green, yellow or red by pace. The gap with the time elapsed is hatched: grey while you have margin, in the bar's color when you use faster than time passes. Then the time left and the reset time (machine's time zone).
- **Context weather**: from Clear to "Compact soon", by the share of the context window in use. Icons drawn in the app, Unicode symbols in the terminal.
- **Context**: percentage and tokens used out of the window.
- **Turns**: one bar per prompt for the last 8, as tall as the tokens it added; the current prompt in color. Kept across restarts.

![Hatching of the gap with elapsed time](https://raw.githubusercontent.com/augiefra/claude-mods/main/docs/gauges-hatching.png)

In the terminal:

```
☂ Showers │ 63% context · 634k/1M │ turns ▃▆▂█▃▄▂▆ ▲ +6.3k │ 5h ━━━━━━╍─ 74% · 24 min → 18:20 │ 7d ━━━━━─── 65% · 2d20h
```

Labels in English or French: `auto` follows `LC_ALL`, `LC_MESSAGES` or `LANG`, otherwise pick `en` or `fr` in the **Language** option (`/config`).

## Privacy

No personal data collected, sent or retained, no network requests. The mod reads the usage figures Claude Code provides and the locale variables, and keeps in the plugin's local storage the latest limits reading and, per session, recent context readings (deleted after 8 idle days).

## Credits and license

Weather, context and turns chart after Anthropic's **Token Weather** example ([claude-code-playground](https://github.com/anthropics/claude-code-playground), Apache-2.0). Limit gauges written after HolyGrail's **usage-meter** ([HolyGrail/claude-mods](https://github.com/HolyGrail/claude-mods/tree/main/plugins/usage-meter)), without copying its code. Apache-2.0 license: see [LICENSE](https://github.com/augiefra/claude-mods/blob/main/LICENSE) and [NOTICE](https://github.com/augiefra/claude-mods/blob/main/NOTICE).
