Repository navigation
v0.10.0
What the subscriptions cost
The report now says what the team's Claude, Codex, and Grok subscriptions cost a month, how much of that the team used over the last 4 weeks, which machine used it, when each one charges next, and which ones nobody uses or can say are still paid. It is a budget, not accounting. The header ends with the team's total, and a new section, COST, comes after SUBSCRIPTIONS:
COST $703/mo +1 without a price · used ~$482 (69%) over the last 4 weeks · next: Sun 27 Sep, $200
CLAUDE PLAN $/MO USED NEXT
● mira@studio.dev Max 20x $200 $129 91% · typed for max 5x
leo@studio.dev max ? ? ·
jun@studio.dev Pro $20 $0 0% · still paid?
CODEX
leo@studio.dev Plus $20 ? ·
bots@studio.dev Pro 200 $238* ? ·
● mira@studio.dev Pro 200 $200 $92 46% Sun 27 Sep
ci@studio.dev Plus $20 $0 0% · ended
- The price is the list price of the plan, from a price list built into ai-usage, or the one a person typed, marked
*. A plan billed yearly counts a twelfth of the year's price. A plan the list has no price for, such as a team or business plan, shows?until someone types one. A price typed for another plan no longer counts, and the row saystyped forthat plan. - Used is how full the subscription's weekly window got before each reset over the last 4 weeks, in dollars and percent. After a change of plan, each week counts at the price of its plan then. Claude's 5-hour window never counts, and neither do weeks before the subscription was first found. When no week is known, Used is
?, and the matrix in dollars splits the whole price by tokens, marked~. - Next is the next charge, once someone said when it charges.
- The state:
idlefor a paid subscription nobody used for a week;still paid?when nobody can say, because no reading has confirmed its plan for 35 days, or no machine has had it for 14 days;endedwhen it is on a free plan again or someone cancelled it. An ended subscription counts in no total and goes after 30 days. A subscription stays in COST after the last machine that had it is gone, until it ends. - ATTENTION gives IDLE its price, "idle 9d, $25/mo paid and unused". A new line, CHECK, asks whether a subscription is still paid. Another new line, COST, says for 3 days that a subscription is new, that its plan changed ("plan Max 5x → Max 20x, +$81/mo"), or that the list price of its plan changed.
- The matrix in dollars:
$in the interactive view shows what each machine used of each subscription over the last 4 weeks, what nobody used, and each price in the TOTAL row, so every column adds up to it, with a line for what no machine has.%goes back to shares. - Details: a subscription's detail adds its price and where it comes from, used and unused, the next charge, its state, who bills it, its price for a million weighted tokens, its plans, and what each machine used. A machine's detail adds what it used of each subscription.
- Claude Max's tier: Claude Code's plan now says the tier,
max 20xormax 5x, so the list can price it. A Claude subscription billed through the App Store or Google Play says so in its detail, since its price there may differ from the list's. - Codex's plan now comes from what Codex says each run, not from its saved login, so a change of plan shows sooner.
Hermes borrows a login, so what it spends counts as that login's use, and it costs nothing of its own.
Questions and answers
ai-usage asks a person what no tool says: when a subscription logged in on this machine charges next, and whether monthly or yearly when its plan can be billed yearly; its price, when the list has none; and, on every machine, whether a subscription nobody can confirm is still paid. Claude's question suggests the day Claude Code says the subscription began.
- The interactive view asks one at a time, on the line over the key bar: type the answer, Enter takes the suggestion,
yornsays whether it is still paid,sskips the question,Sasks no more on this machine, and Esc asks later. eon a picked or open subscription asks for its cadence, price, and next charge.- The first run on a terminal asks the questions after the guide.
- A skipped question is not asked again, except a charge day or a price after a change of plan.
- A scheduled run, a run without a terminal, and
--jsonnever ask.
The same answers from the command line:
ai-usage cost # COST, and what each machine used
ai-usage cost set claude:ann@acme.dev --renews 12 # charges on the 12th of each month
ai-usage cost set codex:bots@acme.dev --price 238 # what each charge costs
ai-usage cost set grok:ann@acme.dev --yearly --price 300 --renews 2027-03-02
ai-usage cost confirm claude:jun@acme.dev # still paid
ai-usage cost cancel codex:ci@acme.dev # cancelled
ai-usage cost reset codex:bots@acme.dev # back to the list price
ai-usage cost skip claude:ann@acme.dev renewal # never ask this again
ai-usage cost never-ask # ask nothing on this machine; --undo asks again
ai-usage cost prices # the price list in useA price is what each charge costs, so with --yearly it is the year's; changing only the cadence turns a typed price into the new cadence's, so what the subscription costs a month stays. A yearly subscription charges on one date a year, so its question asks the cadence first and offers the next anniversary, and --renews takes a full date for it. The whole team sees an answer after this machine's next run, and for each answer the newest from any machine counts.
Prices
The price list is built into the release, each price with the page it was checked on, and the relay serves its own copy at /v1/prices. Each collector asks for it once a day and keeps whichever list was checked later, so a corrected price reaches every machine within a day, without a release. When the relay cannot be reached, nothing is said and the built-in list serves. Prices are the providers' US list prices in USD.
The menu bar app
- The popover's header ends with the team's total a month. A click opens the Team window on Cost, or Settings on Cost on a Mac alone.
- The Team window has a third view, Cost: each device against each subscription in dollars over the last 4 weeks, with Unused and Total rows.
$switches to it. - A subscription's details in Limits have a cost line, "$200/mo · used 46% · next charge Sun 27 Sep", with idle, still paid?, or ended when it is so, and its row names the plan as the cost does, as "Pro 200".
- ATTENTION's new CHECK and COST lines show in the alerts, quietly.
- Settings has a Cost pane: this Mac's questions on top, then each subscription with its price, how it is billed, its next charge, Still Paying, Cancelled, and Reset. Each runs
ai-usage cost; the app keeps no answer of its own. - Three new notifications, on by default, for the same subscriptions as the others, the still-paid question on every Mac: a change (new, plan changed, list price changed, ended), a charge in 3 days, and the questions. A still-paid question has Still Paying, Cancelled, and Skip; a charge day or a price has a field to type it in, and Skip. Each is said once, and a change or a charge only within 3 days of it, so the first run of this release does not tell a month of news; a change made from the app, as Cancelled, is not told back.
JSON
A reader of ai-usage --json should know this:
- New
cost: the totals,subscriptions[]with each one's price and its source, cadence, next charge, used and unused, state, plans, and consumers;devices[];questions[]; andevents[]of the last 30 days, each with anidthat stays the same, so a reader can tell each once. It isnullin a report saved by an earlier release. attention[]has two new kinds,checkandcost, and acostentry has theeventit is about. Anidleentry's text now says its price.- A Claude account's
planismax 20xormax 5xwhere it wasmax. A script that matchedmaxshould match its start. - The schema version stays 4. See docs/json-schema.md.
Privacy
What a person types with ai-usage cost travels in the snapshot, sealed with the team key, like the names of accounts: the relay sees only which tool each answer is for, and when it was given. The plain plan of a Claude Max account now names its tier, so the relay can tell max 20x from max 5x. Who bills a subscription and when it began stay on the machine. Asking the relay for prices needs no key and sends nothing of the team.
Compatibility and upgrade
What to do. Nothing, for a script install: releases from v0.2.5 on install v0.10.0 within 15 minutes, and on a Mac the menu bar app updates with the binary. A Homebrew install updates with brew upgrade neoromantic/tap/ai-usage or ai-usage update.
The team. What a person types is shared only once every machine in the team runs v0.10.0 or later; until then it counts on the machine it was typed on. The tier and the prices need no gate: each machine works out its cost from what every release already sends.
Your own relay. Update it to v0.10.0. A relay before it does not serve prices, so collectors use the list built into their release, and it does not accept the new costs member, so collectors send their snapshot without it and try again a day later. Nothing fails meanwhile.
For the website
This release adds a feature and changes most pictures:
- The feature list can say that ai-usage shows what each subscription costs a month, how much of it the team used and who used it in dollars, when each charges next, and which ones nobody uses or can say are still paid; that prices come from a list the relay keeps current, or from what you type; and that the menu bar app has the same, with notifications.
- New pictures:
team-cost.png(COST),team-dollars.png(the matrix in dollars),app-team-cost.png(the Team window on Cost), andapp-settings-cost.png(Settings on Cost), each insocial/where it has a backdrop, and the app's with-light.pngbeside them. - Every team and solo picture changed: the header ends with the total a month, COST follows SUBSCRIPTIONS, and Claude's plan reads
max 20x.team-bots.pngnow shows the whole matrix, and the tour adds$. - The list of keys gains
$for the matrix in dollars andeto edit a subscription's cost. - The commands gain
ai-usage costand its subcommands.
Known limitations
- Prices are US list prices in USD, without tax. A price paid in another currency, with VAT, or through an app store is right only once someone types it.
- Team, business, enterprise, and education plans have no list price.
- A Claude Max on a machine whose release is older than v0.10.0 has no tier, and so no price, until that machine updates or someone picks one of its tiers, Max 5x or Max 20x, which the price question offers.
- Used needs each week's quota readings. While a machine in the team runs a release before v0.5.0, the others' readings stay on their own machines, so the Used of the subscriptions only those machines use is not known (
?), and their split by machine is estimated (~). - Settings shows a typed price again only for a subscription billed monthly, and clearing a field there resets every answer typed for the subscription, as
ai-usage cost resetdoes. The app cannot turn questions off;ai-usage cost never-askdoes. ai-usage report --froma saved report asks no questions and has noe.
What's Changed
- Cost: what the team's subscriptions cost, what it used, and when each charges next by @neoromantic in #58
Full Changelog: v0.9.1...v0.10.0