Tokenmeter

TokenmeterVersion 1.1.0

Your Claude and Codex limits, always in sight

A status line under your prompt and a glass widget on your desktop show the 5-hour and weekly limits, when they reset, and what every session has cost.

Windows 10/11 · macOS 13 or later · one zip, both installers

The collapsed widget: 5-hour usage at 62% in orange with a warning that it will run out, weekly usage at 38% in green.

Two ways to keep an eye on it

In the status line

Under the Claude Code prompt: how full the context is, what the session has used and cost, and both limits with the time left until they reset. It works wherever Claude Code runs.

On your desktop

A small floating card shows both limits in green, orange or red, with a marker for how far into the window you are. If you are on pace to run out before the reset, it tells you when. Use Codex too? A switch on the card shows its limits.

  • Plenty left
  • Getting close
  • Almost out

Small things that add up

Right by the notch

On a Mac with a notch, Tokenmeter sits beside it: the 5-hour limit on one side, the time to its reset on the other. Hover it and it unfolds with both limits, today’s spend and a Claude / Codex switch. On a Mac without a notch it waits at the top of the screen.

The notch view. Closed: 62% of the 5-hour limit and 2:20 until the reset. Open: the Claude / Codex switch, today’s spend and both limits.

Spend and models

Open the stats view for the full picture: what your Claude Code and Codex sessions would cost at API prices by day, week and month, and how that splits between models.

DaysThe last two weeks, bar by bar.
The stats view on the Days tab: spend per day for the last two weeks as bars, with the split between models below.
WeeksSpot the heavy weeks and the quiet ones.
The stats view on the Weeks tab: spend per week as bars.
MonthsThe long view, month by month.
The stats view on the Months tab: spend per month as bars.

Screenshots: the macOS widget, with demo data. The Windows widget has the same features.

Every session, itemised

Each Claude Code and Codex session on its own line: title, project, time, tokens and cost, newest first. The expensive ones stand out at a glance.

The stats view on the Sessions tab: a list of recent sessions with project, time, tokens and cost.

Install in a minute

One zip holds both installers. Run the one for your system.

Windows 10 and 11Your system

  1. Download the zip, unzip it and open the tokenmeter folder.
  2. Double-click install.cmd, or run this in PowerShell:
    powershell -ExecutionPolicy Bypass -File install.ps1
  3. Restart Claude Code. The status line appears under the prompt and the widget’s icon appears in the tray or menu bar with your first session. The limits fill in within seconds.

macOS 13 and laterYour system

  1. Unzip the download, then run this in Terminal from the tokenmeter folder:
    bash install.sh
  2. Restart Claude Code. The status line appears under the prompt and the widget’s icon appears in the tray or menu bar with your first session. The limits fill in within seconds.

Only what you need

Want just the status line? Install it without the widget. Already installed? Turn the status line off from the widget’s menu, or stop the widget from starting with Claude Code: the other part keeps working.

Windows
powershell -ExecutionPolicy Bypass -File install.ps1 -NoWidget
macOS
bash install.sh --no-widget

Click the icon to open the card, right-click it for the menu. If the widget is not running, start Tokenmeter from the Start menu (Windows) or Applications (macOS).

Update or uninstall

Update

Once a day the widget asks this site whether a newer version exists. When there is one, a dot appears on its refresh button and the menu offers the update. The request carries only the version and the system, and you can switch it off in the menu.

  1. Download the new zip from this page.
  2. Run the installer again. Your history and settings stay.

Uninstall

Removes the mod, the widget and its shortcuts.

Windows
powershell -ExecutionPolicy Bypass -File install.ps1 -Uninstall
macOS
bash install.sh --uninstall

Add -KeepHistory (Windows) or --keep-history (macOS) to keep your history.

Numbers sync, your work stays

Spend and token counts by day, model and session sync to tokenmeter.nextwell.top, so your history survives a reinstall and linked devices see each other’s totals. Session titles, project names and prompts never leave your computer; the country is taken from your IP address on upload, and the address itself is not stored. Tick “Don’t sync with the server” in the settings to keep it all local; “Delete history” erases it here and on the server. The limits are asked from Anthropic with your own Claude Code sign-in, which is never refreshed or sent anywhere else.

What you need

  • Windows 10 or 11, or macOS 13 or later
  • Claude Code with mod support (tested on 2.1.296). The mod API is in early access and may change between releases.
  • A Claude Pro or Max subscription, or a ChatGPT plan for Codex: the limits come from your account.
  • Node.js for the spend history. Without it the limits still show.

How to read the numbers

  • Limits are your account’s own figures, the ones claude.ai shows under Usage, read every five minutes: claude.ai and your other devices count too.
  • Cost is what the same tokens would cost at API prices. A subscription is not billed that way: it shows how much you get out of it.
  • History is read from the local session logs of Claude Code and Codex. The widget keeps its own ledger from the first run; earlier periods are estimated and drawn paler.

Know before you run out.

Free, open source and quiet: it sits in a corner until you look.

Windows 10/11 · macOS 13 or later · one zip, both installers