❯what am I looking at
A menu bar app that tells you if you are ahead of the clock on your Claude plan, or behind it.
why build another one
Every time I looked at a percentage, I did the same calculation in my head. It is Thursday afternoon. 61% used. The week resets Sunday evening. Am I ahead of the clock or behind it? When does it run out if I keep going like this?
fig. 2 the weekly window as a ruler. It starts at 0h, the notch is the clock, the bar ends at the reset. The lines under it are the sum I kept doing.
I wanted that said in words and in clock time, not as a gauge.
what does it do
The pace: what I have used against how much of the window has passed, in one word. Under it, the clock time the limit lands if nothing changes, and what is left per hour:
The 5h window, the same way. Open sessions, each with its context window as a bar. Tokens by model and by project, counted from the transcripts already on the Mac.
The Mac's own numbers on a second tab: CPU, GPU, memory, and battery where there is one.
Two nudges, one notification each, once per window: when the week reaches 80%, and in the 15 minutes before the 5h window ends. The Nudge switch in Settings turns them off, and Notifications must be allowed for tokenpanda in System Settings.
A switch in Settings, off by default, reopens your Claude Code sessions after a restart. One notification names the sessions that were open. Only the Reopen button starts them; a click on the notification opens the panel.
And two switches, off by default, that keep the Mac awake while Claude works. More on them further down.
what does the panda say
The item in the menu bar is the panda and my weekly percent, nothing else. It changes like this, shown here at twice its size:
- 45%Ahead or on pace: the panda and the figure, plain.
- 61%Over pace: the figure goes semibold.
- 61%Stale: the whole item dims when the figures are older than an hour.
- 61%A small warning sign after the figure when the Mac's memory pressure is high, or one process has used over 80% CPU for a minute.
- No feed yet: the panda alone, dimmed, no figure.
- 100%Weekly limit reached: the eyes turn to x x.
- 57%5h limit reached: the eyes turn to - -.
If both limits are reached, the weekly one wins. Once the window resets, the eyes go back to normal. Weekly limit and 5h limit in the pace window at the top show it live.
can it keep the Mac awake
Yes, if I ask it to. Two switches in Settings, both off by default:
Keep the Mac awake while Claude works: while a session's figures moved in the last ten minutes, the app holds one power assertion against idle sleep.
Also while a session waits for you: any open session holds it, idle ones too.
Why I wanted it: I often steer my sessions from my phone with Remote Control. When the Mac falls asleep, that's over. I could run caffeinate and keep it awake all the time, but tokenpanda already knows when a session is open, so it keeps the Mac awake while one is, and only then.
What it does not do: the display may still sleep, and a closed lid on battery still sleeps the Mac. While the assertion is held, this shows it:
pmset -g assertionswhere do the numbers come from
By the rules:
- ●It reads the status line, the one feed Claude Code documents for exactly this, and nothing else. The plan figures are four fields in it:
rate_limits.five_hour.used_percentage rate_limits.five_hour.resets_at rate_limits.seven_day.used_percentage rate_limits.seven_day.resets_at
- ●The token figures come from the transcripts Claude Code keeps on the Mac. Counts, model and time. Never what was written.
- ●No login. No token. No endpoint. No network at all.
- ●The plan figures are as fresh as the last running session. Between sessions it says "as of 14:19". Stale in the pace window above shows how that looks.
Limitations
It shows what Claude Code hands it, and no more. On a Pro, Max or Ultra plan the status line carries two windows that tokenpanda shows, the 5h and the week, each as a used share and a reset time.
- It showsThe 5h window and the week, with pace and reset. Tokens by model and by project, counted from the transcripts on the Mac.
- It cannot showA weekly figure per model. The status line data has none. Fresh plan figures while no session runs, because the status line only updates during a session.
tokenpanda reads no login token and calls no endpoint. Anthropic's terms for Claude Code say "developers may not collect, store, or intermediate Claude.ai credentials or session tokens". This app does none of that.
If Anthropic adds a per model figure to the status line data , tokenpanda will show it.
why does it look like Claude Code
Because it is for Claude Code. Block bars, monospace, the reset as a clock time:
It uses the terminal's own grammar and reads like the usage screen of Claude Code, opened from the menu bar.
how do I install it
macOS 14 and later, Apple silicon. Download the zip from the latest GitHub release, with the small .sha256 file beside it. Check the zip before you open it, then unzip and move the app into Applications:
shasum -a 256 -c tokenpanda-*.zip.sha256With Homebrew, from my tap:
brew install --cask tokenpandadev/tap/tokenpandaHomebrew trusts a cask installed by its full name, and only that one, so there is no trust step. The app is signed ad hoc, not notarised, so macOS blocks it the first time. Open System Settings, Privacy & Security, scroll down and click Open Anyway. The warning comes back once more: click Open Anyway again and enter your Mac password or use Touch ID. From then on it opens normally. The same steps apply after a Homebrew install.
On first launch the Claude tab offers one button, Install the status line entry. Click it, then open Claude Code once. If you already have a status line, it keeps working.
what leaves my Mac
Nothing. The privacy statement, in five rules:
- 1The app makes no network calls and works offline: no analytics, no telemetry, no update check, no price fetch.
- 2From a transcript line it keeps the line type, the time, the ids, the model, the working directory name and the token counts. Not what you wrote, not what Claude answered, not what the tools returned.
- 3It never opens memory/ or tool-results/, never reads the Keychain, a token or a cookie, and never asks you to sign in.
- 4It writes files only in its own folder in Application Support and in its preferences. It touches settings.json in ~/.claude (and in each other settings folder) only when you click, and only its statusLine key. "Remove the status line entry" in Settings puts your previous entry back exactly. The file docs/privacy.html in the repository lists every file.
- 5Check it. The source is public; search it for URLSession. Run nettop on the app for an hour: zero connections.
The full statement is the Privacy section of the README . The file docs/privacy.html in the repository names every file it reads and writes.
Audited against OWASP ASVS 5.0.0 Level 2 by me, with AI agents, not by an outside firm. Read the report.
and what does this site count
The site is not the app. The app sends nothing. This page counts its own visitors, because I want to know who comes and from where, to get an idea of the interest beyond GitHub.
Per visit it keeps the country, the device and browser as rough labels, the site you came from, how far you scrolled and for how long, and which links, copy buttons and demo controls you used. It makes no visitor code from your address, so nobody is followed, not even within a day.
It keeps no address, sets no cookie and reads nothing you type. The counts sit in a small database next to the page, go to no one else and are deleted after 180 days.
where is the code
Open source, free, no account, nothing leaves the Mac. Issues and ideas welcome.
If it saved you a limit once, a coffee is welcome. Two ways, neither required:
Sponsor me on GitHub, soon, or buy me a coffee