Daniel Bauke
Open Source / Claude Counter Statusbar

Claude Counter Statusbar

Visit on GitHub
Animated demo: in a git worktree, the statusline counts context, cost, water and rate limits while Claude Code works.

A Claude Code statusline with your subscription usage, an estimate of the water your prompts used, and what your tokens would cost on the API.

Why it exists

It’s a funny little thing, but very useful. Your Claude usage stays in view while you work.

What it does

Subscription usage
How much of your 5-hour and weekly limits you have used, and when each one resets. It also shows how full the context window is.
Water footprint
An estimate of the water your prompts used, for the session and the billing month.
Money “saved”
What your tokens would cost on the API, for the session and the billing month.
Where you are
The folder, branch and session name. In a git worktree it names the repository, and a branch that does not match the folder shows in orange.

Estimating the water footprint

First, tokens become energy, based on a published energy figure for Claude Sonnet. Then energy becomes water: what the data center uses for cooling, plus the water used to make the electricity, following a 2023 study of AI’s water use. It’s a rough estimate.

Bar styles

dots    ●●●○○
bar     ██░░░
ball    ──●──
capped  ━━╸┄┄
filled  ■■□□□
text    ~19.0k 40%