Skip to content
Claude Statusline

Live Claude usage in your terminal prompt

Tokemon writes your Claude session percentage, weekly burn, and reset countdown straight into ~/.tokemon/statusline — read it from any zsh, bash, or fish prompt. One-click setup. No scripts to maintain.

~/code/refchecks (main)
[S:42% | W:71% | R:2h31m] $ claude
S = current 5-hour session • W = weekly rate-limit utilization • R = time until reset

Always visible

Your Claude usage sits in the same prompt you're already looking at every command. No window to switch to, no menu bar to glance up at.

Updates in the background

Tokemon polls the Claude usage API and writes the file. Your prompt redraw just reads a tiny cached value — under 1ms overhead.

Color-coded

Green under 50%, orange past 70%, red past 90%. ANSI codes work in every modern terminal — Terminal.app, iTerm2, Alacritty, Ghostty, Warp.

Setup in 30 seconds

Install Tokemon, enable the statusline export in Settings, then add one line to your shell rc file. The helper script auto-installs to ~/.tokemon/tokemon-statusline.sh.

1

Install Tokemon

$ brew install --cask richyparr/tokemon/tokemon
2

Enable the statusline

Open Tokemon Settings → Statusline tab → toggle on. Tokemon writes to ~/.tokemon/statusline every poll and drops a helper script next to it.

3

Wire it into your prompt

Add to your .zshrc or .bashrc:

# Tokemon Claude statusline
source ~/.tokemon/tokemon-statusline.sh
# zsh:
PROMPT='$(tokemon_statusline) %~ %# '
# bash:
PS1='$(tokemon_statusline) \w \$ '

Using fish? Read the file directly in your prompt function — no sourcing needed:

# ~/.config/fish/functions/fish_prompt.fish
function fish_prompt
    cat ~/.tokemon/statusline 2>/dev/null
    echo -n ' '(prompt_pwd)' $ '
end

What the Claude statusline shows

S — Session %

Your current 5-hour rolling window utilization. Resets gradually as old requests age out, not on a fixed clock. Color shifts from green → orange → red as you climb.

W — Weekly %

Anthropic's 2026 weekly rate limit on top of the 5-hour cap. The most common reason developers see rate-limit errors when their session window looks clear.

R — Reset countdown

Time remaining in the current 5-hour window, calculated from your earliest counted request. Tells you exactly how long until your headroom regenerates.

Burn rate (optional)

Tokens-per-hour rate from the past 30 minutes. Useful for predicting whether your current pace will exhaust the window before you wrap up.

Works with your prompt framework

The Tokemon statusline outputs plain ANSI-colored text, so it slots into any prompt framework that supports custom segments.

zshbashfishPowerlevel10kStarshipPureOh My ZshtmuxiTerm2GhosttyAlacrittyWarp

FAQ

What is a Claude statusline?

A Claude statusline is a live indicator embedded in your terminal prompt (zsh or bash) that shows your current Claude Code session percentage, weekly utilization, and burn rate. It updates automatically so you can see usage without leaving your editor.

How does the Tokemon Claude statusline work?

Tokemon writes your live usage to ~/.tokemon/statusline every poll. A small shell helper at ~/.tokemon/tokemon-statusline.sh reads the file and prints colored output. You source the helper in your .zshrc or .bashrc and call it from your prompt.

Does the Claude statusline work with Powerlevel10k or Starship?

Yes. The helper script outputs plain ANSI-colored text, so any prompt framework that supports custom segments — Powerlevel10k, Starship, Pure, Oh My Zsh — can include it as a custom segment that runs on each prompt redraw.

Is the Claude statusline free?

Yes. Tokemon is free and open source under the MIT license. The statusline feature is bundled — no subscription, no paid tier, no telemetry.

Does it slow down my prompt?

No. The statusline reads a single small file (~/.tokemon/statusline) on each prompt redraw — typically under 1ms. The actual Claude API polling happens in the background, not on prompt evaluation.

Get the Claude statusline running

Free, open source, signed and notarized by Apple. Less than a minute from download to live in your prompt.

Download Tokemon for macOS
$ brew install --cask richyparr/tokemon/tokemon