Repository navigation
v1.8.0
This release gives the price table a time dimension: each turn is priced at the rate that was in effect when it ran, rather than at today's rate. That closes a silent-error class arriving on 2026-09-01, when Claude Sonnet 5's introductory pricing expires — until now there was no correct value to put in the table, since one number had to serve both historical and future turns. It also adds Claude Opus 5 (previously missing, and therefore free), and makes the unpriced-model warning report what the gap is actually costing you.
Changed
unknown_modelschanged shape in JSON output — update any script that reads it. It was an array of model-name strings; it is now an array of objects,{"model": "…", "turns": N, "tokens": N}, sorted by unpriced token volume descending. This affects bothclaudit report --jsonand the/_claudit/api/overviewendpoint. A script reading.unknown_models[]should now read.unknown_models[].model.- Sonnet 5 turns dated 2026-09-01 or later price at the standard $3/$15 automatically. The bundled entry now carries the standard rate, with the introductory $2/$10 recorded as a dated period ending 2026-08-31. Existing spend is unaffected — July and August turns still price at the introductory rate they were actually billed at — and no upgrade is needed when the cliff passes.
Added
-
Date-effective pricing. A model entry may now carry an optional
rates:list of historical periods alongside its current rate:claude-sonnet-5: input_per_mtok: 3.00 # the rate in effect now output_per_mtok: 15.00 rates: - until: 2026-08-31 # inclusive, UTC — introductory pricing input_per_mtok: 2.00 output_per_mtok: 10.00
Each turn is priced by its own timestamp.
untilis inclusive through 23:59:59 UTC on that date; periods may be listed in any order (the narrowest one covering the turn wins), so there is no oldest- or newest-first convention to get wrong; and a turn with no usable timestamp falls back to the current rate. The key is optional and purely additive — existing flat~/.config/claudit/prices.yamloverlays keep working unchanged, and per-model replacement still swaps the whole entry, rate history included. -
Pricing: Claude Opus 5.
claude-opus-5andclaude-opus-5[1m]were absent from the bundled table, so those turns landed inunknown_modelsand contributed nothing to reported spend. Added at the Opus 4.8 rate card ($5 / $25 base; cache 0.50 / 6.25 / 10.00). Every other bundled rate was re-verified against the live pricing page on 2026-07-26 and none had drifted. -
Unpriced-model warnings now quantify the gap. Every surface that lists unpriced models — HTML, markdown, and JSON — now reports the turn count and token volume behind each one, worst first, and says plainly that those turns count as $0 and the totals are therefore understated. Three unpriced turns and thirty thousand are very different problems, and the old warning couldn't tell them apart.
-
An unpriced-model warning on stderr. The default HTML path writes the report to stdout and previously said nothing in the terminal, so a stale price table surfaced only as totals that were quietly low.
claudit reportnow prints the affected models and their volume to stderr.
Fixed
- Flaky
claudit watchpainter test under-raceon Windows. The Windows resize watcher pollsTerminalSizeon a ticker — Unix usesSIGWINCHand has no polling goroutine — so the test's deferred pipe close raced with that read and intermittently failed thewindows-latestCI leg. Teardown now drains the reader to unpark the parked paint goroutine, so the painter stops the watcher before the pipe closes. Test-only;watchbehavior is unchanged.