> tokenly --today

What your AI coding really costs.

A tiny macOS menu bar app for Claude Code and Codex. Cost at API prices, plan limits and where your tokens go, read straight from the logs on your Mac.

Free and open source · macOS 13+ · Apple silicon & Intel · ~1 MB

Tokenly panel: cost and tokens for the last 7 days, a chart split by provider, and Claude and Codex plan limits
Features

One glance at the menu bar.
Everything else one click away.

The panel opens on a short overview. Unfold it when you want the breakdown and the history.

$

Cost and tokens

Spend at API list prices next to token volume, with the change from the previous period and a one-line summary.

%

Live plan limits

Claude and Codex limits read live, plan badge, reset credits, time to reset, a warning when you're on pace to run out, and what 100% of a limit is worth, and what your plan is worth vs its price.

▤

Where it goes

Split by provider, model, project and device. Charts stack by provider; the token mix shows what the cache saved you.

⌚

Any period

Today, 24 hours, 7 / 30 / 90 days, all time or a custom range. Hourly, daily or monthly bars, and a 13-week calendar.

⌂

All your Macs

Optionally bring in your other devices from a linked Vibe Usage account, read-only, back to your first day.

⚙

Yours to tune

Pick what the menu bar shows, which sections appear, text size, and your own prices for any model.

Unfolded Tokenly panel with breakdown and history
Unfolded

The full picture, on one page.

  • Plan weeksCost, full limits used and resets for every week.
  • BreakdownProvider, model, project, device or day. Click any row to filter the whole panel.
  • Token mixInput, output, cached and cache writes, with your cache hit rate and savings.
  • HistoryA 13-week activity calendar and every month on record.
  • Cost, tokens or timeSwitch the charts between dollars, tokens and active time.
Plan weeks

How many full limits did you really use?

Tokenly keeps every plan reading it sees, so each week gets its own numbers, even after the tools' logs are gone.

  • Cost per weekWhat each 7-day window cost at API prices, across all your devices.
  • Full limits usedThe week's cost divided by what 100% was worth that same week.
  • Resets detectedA mid-week drop in usage shows up as ↻, so weeks above 100% make sense.
Plan weeks table with cost, full limits used and detected resets, above the activity calendar
Privacy

Local first. Nothing uploaded.

Tokenly reads the session logs Claude Code and Codex already write to your Mac. It never sends your usage anywhere and needs no account.

  • Read-onlyNo hooks, no config changes, no background uploads.
  • Live limits, read-onlyCodex limits come straight from OpenAI with the Codex login already on your Mac; Claude limits come from Claude Code itself, asked without a prompt and without using tokens. Both can be turned off. Other devices are only fetched if you turn that on.
  • Native and tinyA single Swift app. No Node, no Electron, no runtime to install.
Tokenly settings window
Command line

Also a one-file CLI.

The same numbers in your terminal: Python, no dependencies.

$ tokenly 7 --by provider
                               input      output    cache_read   cache_write         total    cost($)
Anthropic                      2,140     812,300    96,420,000     4,118,000   101,352,440      61.40
OpenAI                       390,200      98,750    18,240,000             0    18,728,950       3.92

$ tokenly --quota
Plan limits (as last recorded locally)
  Claude          7d            64%   resets Nov 17 11:00
  Codex (Pro)     7d            38%   resets Nov 19 18:31

Install with pipx install git+https://github.com/Longado/tokenly

Install

Up and running in a minute.

  1. Download Tokenly.zip and unzip it.
  2. Move Tokenly.app to your Applications folder.
  3. Open it with right-click → Open the first time (the app isn't notarized yet).
  4. Click the menu bar icon. Optional: Settings → Launch at login.