Cost Doctor sits in your menu bar, names the session eating your plan, and turns your screen red when a check fails while an agent waits.
Download free for MacThis is a working demo. See what your screen does when an agent goes quiet.
A total does not help you spend less. These three findings do. The numbers are from our own logs.
One session grew from 127K to 300K per turn, so every turn cost 2.4 times a fresh one. Cost Doctor measures the history each session carries and tells you when to compact.
What our sessions weighed at their first turn, from the tool lists of connectors and plugins. Cost Doctor shows what each of yours starts at.
The share of turns made by subagents on our heaviest day. Cost Doctor counts them, including the logs most tools skip.
Your 5-hour and weekly limits for Claude Code and Codex, when each resets, and when you will run out at the current pace. It also names the session that used most of the window.
Each session is marked working, finished, waiting on a tool call, or stopped on a failure, so you can see which one needs you without opening every terminal.
Paste an ntfy topic or a Slack webhook and failures, limit warnings and waiting sessions reach you when you are away from the desk.
You walk away, a check goes red, and the agent waits. Cost Doctor makes that impossible to miss: the menu bar badge turns red, a red frame appears around every screen, and a notification is sent.
echo "deploy failed" > ~/.costdoctor/alerts/deploy.txt
Every alert has a Dismiss button, and the frame never blocks a click.

Cost Doctor reads the session logs in ~/.claude and ~/.codex on disk. It has no server and sends no prompts, code or usage anywhere.
There is no sign-up. A licence is a key you paste once; it is checked on your Mac, offline.
It never calls a model, and it never touches a session. Watching your spend costs nothing.
One-time purchase, plus tax where it applies. No subscription. 14-day free trial with everything switched on.
Just want the numbers in a terminal? The costdoctor command is free and open source: brew install apexnorthca/tap/costdoctor
Codex writes its limits into its own log files, so those appear automatically. For Claude Code, Cost Doctor asks Anthropic directly, using the Claude sign-in already saved on your Mac. It asks your permission first, sends the sign-in only to Anthropic, and works whether you use Claude Code in the desktop app or in a terminal.
A Mac on macOS 13 or later, Apple silicon or Intel, with Claude Code or Codex installed. Pull request alerts also need the GitHub command line tool (gh), signed in.
It is an estimate at published list prices, shown for scale. If you are on a plan, your bill is your plan price; tokens are the number to watch. The rates are editable in ~/.costdoctor/config.json.
Today's total keeps showing. The per-session breakdown, the advice and the red alerts need a licence.
No. It only reads log files. It never edits a prompt, a setting or a session.
Yes. The costdoctor command is free and open source. It prints the same 7-day totals, plan limit forecast and session advice in a terminal when you run it. The app keeps it live in your menu bar and adds the alerts.
A meter shows how much of your limit is left. Cost Doctor shows which session used it and what to change. See how it compares with ccusage, CodexBar, Headroom and SessionWatcher.