See the quota
before it runs out.

Touch Bar companion for TokenTracker.

Claude, Codex, Cursor, Grok, OpenCode, and Command Code, counting down on the Touch Bar. You see what’s left before the limit hits.

Free open-source utility

View the code Install on this Mac
TokenBar on a real MacBook Touch Bar
TokenBar running on a MacBook Pro
On a MacBook Pro with a Touch Bar.

What it does

Green, then amber, then red. You feel it before you hit the wall.

The short ones stay bigA 5-hour window keeps its place. Week and month step aside when the bar fills up.
It doesn’t go blankCommand Code, OpenCode, Grok, and Cursor can answer on their own when the feed goes quiet.
On the bar in a minuteThree lines in Terminal. TokenBar shows up on the Touch Bar.

Install via command line

A Mac with a Touch Bar. macOS 13 or later. TokenTracker running.

git clone https://github.com/jashjacob/TokenBar.git
cd TokenBar
./scripts/install.sh

Questions

Which tools?

Chips will be shown for Claude, Codex, Cursor, Grok, OpenCode, Command Code, and Grok Bot.

What if TokenTracker is empty?

Command Code, OpenCode, Grok, and Cursor can still show, from the login already on your Mac. Claude, ChatGPT / Codex, and Antigravity still need TokenTracker to send a window.

How do I update?

From the TokenBar folder:

git pull
./scripts/install.sh
How do I uninstall?

Quit TokenBar. If Launch at Login is on, turn it off in the menu first. Then drag TokenBar out of Applications.

Fallbacks

TokenTracker sometimes comes back stale or empty. A fallback then asks that tool itself, and owns every window for it.

ToolFallback
Command CodeIn
OpenCodeIn
GrokIn
CursorIn
ClaudeNot yet
ChatGPT / CodexNot yet
AntigravityNot yet

For coding agents

Don’t download the disk image. Don’t clone TokenTracker unless asked.

1. Touch Bar Mac, macOS 13 or later.
2. TokenTracker must return 200 from http://127.0.0.1:7680/functions/tokentracker-usage-limits before you install TokenBar.
3. ./scripts/install.sh
4. Check pgrep -x TokenBar and ~/Library/Logs/TokenBar.log.