ccusage 20.1.0 release notes
ccusage 20.1.0 was released on November 23, 2026. The latest version is 20.1.2.
Release notes
🚀 Features
- Measure active installations and publish aggregate usage - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2524 (721b9)
- codex: Add a native statusline provider - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2097 (633eb)
- dsh: Track DeepSeek Harness token usage and cost - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2112 (9c2e8)
- junie: Add Junie session usage adapter - by @ryoppippi and kehh in https://github.com/ccusage/ccusage/issues/2109 (1643b)
🐞 Bug Fixes
- Make the root MIT license detectable - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2313 (164b8)
- adapter:
- Follow symlinked log files and directories during discovery - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2223 (a3c32)
- Stop Grok and ZCode raw model ids from matching a different row fuzzily - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2279 (56b9a)
- Report a cut-off log as still being written only while it changes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2301 (862a8)
- Keep unexplained tokens out of output counts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2505 (941de)
- Enable weekly reports for every agent - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2509 (572b4)
- Stop SQLite reports from crashing on arm64 when several databases open at once - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2520 (72139)
- antigravity:
- Enable weekly reports for Antigravity, ZCode, Kimi, and Copilot - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2488 (e20e9)
- ci:
- Unbreak every Nix-backed CI job after the setup-nix action update - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2319 (6ec37)
- Accept abbreviated profile refs and label runs by fixture - in https://github.com/ccusage/ccusage/issues/2357 (74527)
- Install all typecheck dependencies before telemetry deploy - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2528 (60052)
- Invoke the telemetry deployment script explicitly - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2530 (66a11)
- claude:
- Find ccusage.json under XDG_CONFIG_HOME and ~ in CLAUDE_CONFIG_DIR - by @ryoppippi and Vinícius DS Andrade in https://github.com/ccusage/ccusage/issues/2107 (1451e)
- Count cache writes from every message iteration of advisor turns - by BaeHenryS and @ryoppippi in https://github.com/ccusage/ccusage/issues/2085 (f82d1)
- Attribute workflow-run logs to their parent session - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2121 (58866)
- Keep duplicate selection stable for project paths with invalid UTF-8 - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2360 (07c07)
- Count proxied multi-block responses once regardless of message id shape - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2341 (45ab8)
- Stop --since from dropping in-window usage in transcripts with stale mtimes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2379 (63c44)
- Resolve project and session below the discovered projects root - in https://github.com/ccusage/ccusage/issues/2393 (a2870)
- Count usage written with JSON whitespace - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2390 (65d38)
- Apply configured project filters to every report - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2490 (542c1)
- Accept project filters across Claude reports - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2510 (51ce3)
- Keep excluded projects from reappearing as OpenCode usage - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2507 (2a75f)
- cli:
- Accept -d for statusline debug - in https://github.com/ccusage/ccusage/issues/2293 (6701e)
- Report an error instead of panicking for oversized --last - in https://github.com/ccusage/ccusage/issues/2391 (615eb)
- Exclude periods after the current one from --last - in https://github.com/ccusage/ccusage/issues/2396 (84b6c)
- Let --last replace a configured date window - by Vinícius DS Andrade in https://github.com/ccusage/ccusage/issues/2291 (90a8e)
- codex:
- Keep spawned siblings with identical usage apart - by luisleineweber and @ryoppippi in https://github.com/ccusage/ccusage/issues/2185 (73317)
- Credit a replaced stand-in's usage to the recording session - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2205 (9964b)
- Keep cumulative token deltas independent of skipped-row diagnostics - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2275 (20b9c)
- Make daily and session reports agree on fork requests and copies - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2335 (9de35)
- Stop dropping forked sessions' own usage as parent replay - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2339 (9ac3e)
- Keep a fork's own request that matches an ancestor's recorded one - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2384 (b8f94)
- Apply configured Ultrafast pricing to unclassified usage - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2493 (74326)
- Preserve configured pricing for copied rollouts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2511 (b0c28)
- Refresh native statusline costs after tier changes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2512 (4f1df)
- copilot:
- Count session.usage_record calls - by @ryoppippi and chrisrneal in https://github.com/ccusage/ccusage/issues/2108 (cb29b)
- Price auto mode from the credits Copilot recorded - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2116 (97da8)
- Recover credits lost from partially exported sessions - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2264 (3f1c6)
- Reconcile OpenTelemetry identities across all files - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2382 (174d0)
- deps:
- Update dependency tsrs to v7.1.0-beta.tsrs3 - in https://github.com/ccusage/ccusage/issues/2473 (12450)
- droid:
- Skip unrepresentable token counts - in https://github.com/ccusage/ccusage/issues/2403 (7e44d)
- grok:
- Keep projects with invalid UTF-8 names distinct - in https://github.com/ccusage/ccusage/issues/2265 (647e1)
- hermes:
- Stop adding reasoning tokens on top of output tokens - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2378 (4db9d)
- kilo:
- Price tokens when the recorded cost is zero - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2438 (d7b9c)
- nix:
- Regenerate the config schema from the working tree in dev shells - in https://github.com/ccusage/ccusage/issues/2346 (c42bd)
- Rerun the config schema generator from every schema source - in https://github.com/ccusage/ccusage/issues/2362 (accfc)
- opencode:
- Stop bounded reports from dropping messages with a nested earlier time - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2273 (63a30)
- Stop bounded reports from dropping rows whose time_created drifts from the message time - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2274 (dc6c6)
- Keep every parallel session_message reader on one database file when its path flips - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2447 (16cf4)
- pi:
- Keep every project in explicit Pi stores and add --pi-agent-dir - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2336 (08443)
- pricing:
- Bill openrouter/<vendor>/<id> at the models.dev row for <vendor>/<id> - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2277 (bedaf)
- Report missing pricing instead of billing unlisted models at a related model's rate - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2276 (09c5b)
- Bill prefixed and suffixed spellings of a models.dev tier at the tier's rate - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2278 (82fc4)
- Price thinking and reasoning variants of Claude, Gemini, DeepSeek, GLM and Grok at their documented base rates - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2325 (5d425)
- Stop charging Claude fast-mode multipliers to unrelated model ids - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2321 (49267)
- Stop billing foreign-routed DeepSeek V4 requests at DeepSeek's time-of-day rates - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2326 (94de8)
- Price missing cache rates at each vendor's published multipliers - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2331 (6faef)
- Price Qwen, Kimi and Mistral thinking ids at their documented rates - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2333 (147bb)
- Bill scheduled base-only overrides at the override above the long-context split - in https://github.com/ccusage/ccusage/issues/2389 (3558c)
- Bill retired deepseek-v4-flash ids at flash rates, with the deepseek-flash peak and off-peak schedule - by @k3rnelpan11c in https://github.com/ccusage/ccusage/issues/2404 (edcb5)
- Bill Claude long-context requests at Anthropic's published tier whichever row wins - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2435 (6a90a)
- Bill Kimi K2, DeepSeek V3.2 and Gemini 2.0 Flash at the vendor's list price online and offline - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2445 (05ca8)
- Price a base-rate override at every context size - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2434 (2ccaf)
- Bill Grok usage from xAI's own rows offline as well as online - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2455 (9918c)
- Make CCUSAGE_MODEL_ALIASES pick the pricing model everywhere - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2436 (59691)
- Bill Claude 4.6 and later requests above 200K at standard rates for every spelling - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2454 (fb174)
- Keep an override's above-200K rates on fast-mode requests - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2468 (61258)
- Apply vendor long-context billing to Gemini and overrides - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2471 (9d2c2)
- Bill mixed-case model IDs with case-sensitive precedence - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2474 (1c12b)
- Bill every Google-owned Gemini spelling at Google's own rate, including its announced price changes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2437 (c826c)
- Bill a known host's own listing first, and Bedrock-spelled ids at Bedrock's rate offline and online - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2466 (a9e9f)
- Bill a marked estimate for a vendor's free model used through a paid host - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2484 (aa331)
- Exclude unexplained tokens from calculated costs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2492 (110b9)
- Bill hosted long-context requests at the whole-request tier - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2503 (2c51e)
- Bill missing cache rates at the long-context tier - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2506 (2c514)
- Match overrides for mixed-case model IDs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2508 (9b59b)
- qwen:
- Count sessions archived to chats/archive/ - by @4ekuct25, @ryoppippi and Sergei P in https://github.com/ccusage/ccusage/issues/2091 (9304e)
- Stop counting cached prompt tokens and inside-candidate thinking twice - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2377 (8b7db)
- rust:
- Keep incomplete-input diagnostics on the report clock - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2266 (8cfd1)
- Bill foreign-provider DeepSeek requests at flat rates - in https://github.com/ccusage/ccusage/issues/2334 (4da37)
- Price session and interval totals at the base tier - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2380 (aa824)
- Skip unrepresentable token counts instead of panicking - in https://github.com/ccusage/ccusage/issues/2394 (8d0b5)
🏎 Performance
- adapter:
- Make large Claude and Codex reports faster - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2102 (2a903)
- Stop reparsing report dates per entry and shrink the Linux binary by 3.4 KiB - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2270 (ca897)
- Cut codex daily instructions by 7% by decoding zstd rollouts in place - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2354 (64483)
- Stop remapping zstd and line buffers for every file - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2409 (6f7a0)
- Cut 16-22 KB from the release binary by ordering parallel results without a per-type sort - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2415 (74f97)
- Cut Codex report wall time by up to 39% on 2–12 core machines by parsing on every core - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2481 (70ffb)
- Cut macOS daily RSS 14% on a plain JSONL stress test - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2494 (0d2bf)
- bench:
- Size the benchmark fixture like real agent logs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2209 (8dfea)
- Measure the perf comment's wall and CPU time without hyperfine's skew on threaded runs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2461 (382cd)
- Flag wall-time regressions like #2407 in the perf comment - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2464 and https://github.com/ccusage/ccusage/issues/2407 (ec2de)
- ci:
- Skip Time Machine exclusions in the macOS Nix install - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2113 (83622)
- claude:
- Find compact usage markers directly - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2222 (16f7a)
- Make --since reports up to 1.9x faster by streaming bounded discovery - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2340 (bcae1)
- Bring --since report CPU back to pre-#2340 levels by checking mtimes in the walker - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2358 and https://github.com/ccusage/ccusage/issues/2340 (ba1eb)
- Cut claude daily peak RSS 12% by shrinking usage entries from 248 to 192 bytes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2411 (8c06d)
- Halve --since wall time and cut its CPU 3.2x and peak RSS 3.4x on stale-mtime logs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2432 (f0b22)
- Cut recent --since wall time ~10% by walking beside the stale-file probe - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2462 (36255)
- cli:
- Cut macOS report wall time by up to 5% with mimalloc - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2450 (26866)
- Cut Linux musl daily peak RSS by 27–29% - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2482 (f62b9)
- codex:
- Cut Codex statusline and bounded report time by 4–9× by skipping archived rollouts older than --since - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2317 (e9a52)
- Cut codex daily instructions 1.4% by decoding usage objects without a JSON value - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2398 (5a5c5)
- Cut codex daily peak RSS 15% by shrinking dedupe buckets from 152 to 128 bytes - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2413 (7038a)
- Cut codex daily wall time by 3.5% on many rollouts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2422 (f37f4)
- copilot:
- Win back 448 B of the Linux binary that #2218's env routing added - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2267 and https://github.com/ccusage/ccusage/issues/2218 (6242d)
- fixture:
- Match Claude key order and body escaping to real logs - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2224 (a9292)
- nix:
- Cut macOS report wall time by up to 15% and Linux instructions by up to 20% with PGO release builds - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2457 (8b508)
- opencode:
- Cut large-database report time 2.3x and peak RSS 7% by reading session_message payloads in parallel - by @ryoppippi and igorovh in https://github.com/ccusage/ccusage/issues/2412 (1573e)
- Cut report CPU time by 46–47% on Linux 32 vCPU - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2486 (b90a6)
- pricing:
- Cut ~128M instructions from every report's startup - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2344 (cb3d8)
- Cut 110M instructions from every report's startup by building the pricing table at compile time - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2399 (a37ef)
- Cut small-report instructions 27-48% by matching pricing keys without per-pair searchers - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2456 (3724f)
- Cut tiny daily report instructions by 37% - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2491 (7fda7)
- release:
- Cut report wall time by up to 7% for a 12% larger Linux binary with opt-level 3 on workspace crates, serde_json and memchr - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2458 (74fff)
- Cut Claude report wall time by 7% on Linux for +90 KB npm download with opt-level 3 on every dependency but SQLite - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2518 (8952b)
- rust:
- Scan Claude and Codex log lines once, cutting claude daily instructions 1.6% (x86) to 6.4% (arm64) - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2350 (56f9f)
- Cut Claude report instructions by 11% and shrink the binary by validating UTF-8 once - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2348 (6e175)
- Cut claude daily instructions 1.4% by borrowing usage-line fields that die with the line - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2392 (86a3c)
- Cut 23-50 KB from the release binary by sharing summary, entry, and breakdown sorts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2417 (4b763)
- Cut 33-50 KB from the release binary by sharing one sort across short-list sorts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2419 (0f921)
- Cut 12,480 bytes from the Linux release binary by dropping duplicate entry sorts - by @ryoppippi in https://github.com/ccusage/ccusage/issues/2420 (31d19)
View changes on GitHub
Source: GitHub release v20.1.0