Token Meter

See how many tokens each Claude Code turn uses

·

source at 249f0f6

·

MIT license

After each turn, the hint line under the prompt ends with that turn's input, output and cache tokens and the session's running total, in color.

What this mod can do

  • Reviewed at commit 249f0f6
Good to know (2)
  • The session total starts over whenever a new session starts.
  • It draws in the hint line, not the status line, because the status line only takes plain text.
Are mods safe?

Preview

Terminal

· ↑ 37.0k ↓ 1.4k cache 7.0k · session ↑ 111.0k ↓ 4.2k

Claude Desktop

Draws nothing in Claude Desktop.

What it does

In the author's words

Each turn's tokens and the session's running total, in color at the end of the hint line under the prompt.

What you see
Colored token counts at the end of the hint line
Works in
Terminal
Slash commands
None
Uses your tokens
No
Changes files
Nothing
Network access
None
Reviewed commit
249f0f6
Preview recorded with
Claude Code 2.1.309

How it works

  1. Runs when each turn in the session completes
  2. Reads the turn's token usage and adds it to the session total
  3. Appends the colored meter after what the hint line already shows

Common questions

How do I see how many tokens each Claude Code turn uses?

This mod adds the last turn's tokens to the hint line under the prompt: ↑ input in blue, ↓ output in green and cache for tokens read from or written to the prompt cache, followed by the session's running total, dimmed.

Badge for your README

Own this listing? Add it to your README. The badge shows the install count as it grows.

Reviewed on statuslin.es
[![Reviewed on statuslin.es](https://statuslin.es/badge/mods/token-meter.svg)](https://statuslin.es/mods/token-meter?utm_source=readme-badge)

Or show the preview card:

Preview on statuslin.es
[![Preview on statuslin.es](https://statuslin.es/og/mods/token-meter.png)](https://statuslin.es/mods/token-meter?utm_source=readme-badge)

More like this

Context Meter in Claude Desktop

The session's context window fill, right above the prompt: gray while there is room, yellow when it is time to /compact, red when a new session is better.

Token Weather Usage in Claude Desktop

One line above the prompt: context tokens with their weather, a bar per recent prompt, your 5-hour and 7-day limits against the time elapsed, the prompt cache with its time left, the session cost with the last prompt's share in dollars and in points of the 5-hour limit, the subagents running, and a one-click pill for the GOs Claude proposes. Labels in English, French or Russian. After Token Weather (Anthropic, Apache-2.0) and the ideas of usage-meter (HolyGrail) and prompt-cache-control (Daniel San).

⏵⏵ auto mode on · ← for agents 5h ━━━─────── 26% ↻ 2h 7m

Your subscription usage at the bottom right of Claude Code: the 5-hour and weekly windows, taking turns, side by side or fixed on one of them.

Deck in Claude Desktop

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.

Opus 4.8 · ctx ● 22% · 5h ● 26% · 7d ● 7%

One short Python line: the model, then context, five-hour and seven-day usage, each as a percentage with a dot that shifts from green to red as it fills. No dependencies, no network calls.

╭─ CONTEXT ────────────────────────────────────────────╮ │ ████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │ ├─ STATS ──────────────────────────────────────────────┤ │ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ ├─ REPO ───────────────────────────────────────────────┤ │ ◆ Opus 4.8 · main · 16:21 │ ╰──────────────────────────────────────────────────────╯

A boxed multi-line panel with auto-sizing borders: a context section with a gradient bar and status word, a stats section (tokens, cost, duration, lines changed), and a repo section (model, git branch with file counts, clock, vim mode), in a terracotta Claude-brand palette.

app · main · Opus-4.8 · effort high · ctx 22% · 5h 26% ↻2h6m · 7d 7% ↻2d0h

One-line status bar showing your directory, git branch (with a * when dirty), model, live effort level, context-window usage, and 5-hour/7-day rate-limit usage.