๐น Token Hamster: Claude Code mod for token usage & limits


Token Hamster is a Claude Code mod, a plugin whose behaviour lives in a hooks module, that shows your token usage, your 5-hour and weekly plan limits, when they reset, and what each turn costs, live, inside Claude Code. An animated hamster eats every token Claude eats, so you see your usage at a glance instead of running a separate command.
- Token usage: input, output, cache read and cache write tokens for the session, plus a lifetime total.
- Usage limits: the 5-hour session limit and the weekly limit as percent left, with a
refill in โฆ countdown to the reset.
- Cost: cost per turn and for the session, and cache hit rate.
- Forecast: your pace per turn and when the session limit will run out at that pace.
- Statusline:
๐น all 3.9M ยท session 62% ยท week 95% ยท credits $1.99 under the prompt.
No API key, no log scraping, nothing estimated: the numbers come from Claude Code's own usage data at the end of every turn.
How do I check my Claude Code usage?
Install the mod and keep coding. Token Hamster answers the usual questions without leaving the session:
| Question | Where you see it |
|---|
| How many tokens has this session used? | The hamster's cheeks, the pane's counts, the statusline |
| How close am I to the 5-hour limit? | session 62% in the statusline; the hamster's mood |
| How much of the weekly limit is left? | week 95% in the statusline; the pane's limit bars |
| When does my Claude limit reset? | refill in โฆ on the cage and in the pane |
| When will I hit the limit at this pace? | The pane's pace forecast |
| What does a turn cost? Is the cache working? | The pane's cost per turn and cache hit rate |
| Which subagent, tool or model burns the most tokens? | The pane's breakdown |
Features
The cage band sits above the prompt. While a turn runs the hamster eats; between turns it naps.
Mood follows your rate limits
The hamster's mood follows the emptiest limit, the 5-hour session or the week:
| Eating | Napping | โค 50% left | โค 25% left | 0% left |
|---|
 |  |  |  |  |
At half the limit it frowns and sweats. With a quarter left it runs it off in its wheel. When the limit is used up it sleeps in its house and counts down to the reset.
Usage dashboard pane
/hamster (or Details) opens a pane with the counts and where the tokens went:

- Context: what fills the context window, as
/context lists it.
- Pace and forecast: tokens per turn and when the session limit runs out.
- Who spends: the main loop against each subagent type, tool calls and models.
- Cache and cost: cache hit rate and cost per turn.
Built to be glanced at
- Smooth vector animation. On desktop, VS Code and mobile it's an animated SVG: seeds fly into its mouth, it chews, blinks, and breathes
z z z when idle.
- The food is your real token mix. ๐ก input, ๐ output, ๐ข cache read, ๐ต cache write, in your session's actual proportions.
- The cheeks are the session. They grow with the log of tokens eaten.
- Terminal fallback. In the terminal it's a colour pixel-art hamster in half blocks, with the same chewing and moods.
- Subagents count too. Subagent turns feed the hamster.
Token Hamster vs other Claude Code usage tools
| Token Hamster | ccusage | Usage monitor apps | Statusline scripts |
|---|
| Runs inside Claude Code | โ
mod / plugin | CLI you run | separate terminal / menu bar app | โ
|
| Live 5-hour and weekly limits | โ
| โ | โ
| some |
| Reset countdown and forecast | โ
| โ | โ
| some |
| Cost per turn, cache hit rate | โ
| โ
(from logs) | โ
| some |
| Breakdown by subagent, tool, model | โ
| by model | โ | โ |
| Animated mascot | ๐น | โ | โ | โ |
Use ccusage for reports over past days and months; use Token Hamster to watch the current session as it happens. They work fine together.
Requirements