~/.claude/projectsdrag the windows around
npm 1.0
3,710downloads since sep 13417 in the last 7 days
Tokens 1.0●
667tokens a secondmy average pace over 30 days
optimaizr resultsOct 19, 2026
Compact earlier: Claude Code at 200K
applied Oct 7, 12 days ago
before$1.06after$0.803
→ 5% to 24% less per prompt than the 3 to 14 days before
calls past 200K60%0%-60 pts
median context288K100K-65%
compactions a day0.235.223x trade-off
waiting for summaries a day0.4m6.8m16x trade-off
the range is the baselines · every row that got worse is marked
optimaizr profileOct 25, 2026
$ optimaizr profile # first run
plan detected · 8,448 calls · 30 days · 1.73B tokens
Claude Pro$20.00/mowhat you payAPI-equivalent$801.89/mo40x what you pay→ up to 30% less, ~1.4x the work per 5h and per weekCompact earlier18%up to, if you testCold cache returns8%likely, if you trySmaller default model3%up to, if you test6 smaller ones1%clear waste and likely
you pay$20work done$801.89
✓ read locally · 0 bytes uploaded
optimaizr live● watching
⏸ 12:44:07 AM Guard held a message
cache expired, sending it writes 161.9K again: $1.30
✓ 12:47:03 AM started from the note: $1.30 not spent
── now
Add retry logic to sync workerClaude working · 4m 36s · $0.957 so far
○Summarize the flaky test runsidle 41m · cache warm 14m more
○Review onboarding email copyidle 45m · cache warm 10m more
○Draft the API changelogidle 53m · cache warm 2m more
◉ optimAIzr live · $13.24 this run · 202 calls · watching
optimAIzr
Version 0.13.0 · free CLI
Open source · MIT
© 2026 optimAIzr
could save
up to 30%
What It Is

A free, open-source CLI for Claude Code, Codex, opencode and your own API calls, and a VS Code extension. It reads the usage already on your machine, and every line of it is on GitHub under MIT.

What It Does

It finds wasted tokens, prices every fix in exact dollars and applies the ones you accept. Guard holds a message to an expired cache: in my last 30 days, 40 of them wrote it again for $90.26, where a warm cache would have read it for $2.26.

new in 0.13 · vs code

the countdown, in vs code.

Claude Code’s context, its cache countdown and the 5-hour window in VS Code’s status bar, and a heads-up 5 minutes before an expensive cache expires. On mine: reply before then to skip a $1.14 rewrite. The savings, guard and the fixes are one click away.

28 seconds · sound in the playerthe extension’s own numbers, oct 29, 2026
Get it on the Marketplaceor search optimAIzr in ExtensionsWhat it shows
/**
“good to see the per-model read rates in there, that’s the part most tools still have at a flat 0.1x.”
*/
one of our users, after checking 45,063 of their own transcript rows
/**
“I tried optimAIzr, it’s really good. Great work, thanks.”
*/
a Claude Code user, in a Reddit DM
what it found on my machine

41% of my billwas re-reading.

One optimaizr profile run on Oct 25, 2026, over 30 days of my own Claude Code and Codex use. Every call re-reads the whole conversation. Printed below as the receipt my AI bill never came with.

optimaizr
receipt for my ai usage
oct 25, 2026 · 30 days
8,448 calls · 1.73B tokens
claude pro plan$20.00/mo
work at api prices$801.89/mo
40x what i pay
where it goesshare
re-reading the conversation41%
loading context into cache34%
answers, code and thinking25%
can be saved, all inshare
compact earlier18%
cold cache returns8%
smaller default model3%
6 smaller ones1%
up to30%
work per 5h window1.4x
each from what the ones above leave: a plain sum says 33%
clear waste$6.80/mo
likely, if you try+$80.80/mo
each call counted once
thanks for not wasting tokens
how the receipt is counted
checked on my own history and one user’s 45,063 rows
[ .. ][ ok ]one prompt sets off many callsjudged as one task, not call by call0.8 flagged 1,673 calls; 0.9, 25 tasks
[ .. ][ ok ]one response is written as several rowscounted once, by message idnaive sum: output 3.4x too high
[ .. ][ ok ]resumed sessions copy their historycounted once across files51.7% of requests sit in 2+ files
[ .. ][ ok ]subagents keep their own transcriptsread from every subfoldera quarter of total spend
[ .. ][ ok ]cache writes last 5 minutes or 1 hourpriced at 1.25x and 2xmain sessions write 1h, subagents 5m
[ .. ][ ok ]cache reads cost differs by modelfable 5.1 0.025x, opus 5.5 0.05xa flat 0.1x overstated fable 1.6x
Watch a full run47 seconds · no sound needed
latest releases

what’s new.

Every release, in plain words
faq

questions i get asked

Does it really work?

On my machine, yes. 12 days after I started compacting at 200K, optimaizr results measured a prompt at 5% to 24% less than the 3 to 14 days before, and showed what it cost me: 6.8 minutes a day waiting for summaries. Tried on my last 51 five-hour windows, guard's pace warning came before all 7 of my stops at the limit, 67 minutes ahead on the median. Run it on your own history and see. If a number looks wrong, tell me.

Does it just tell me to use smaller models?

No. Model choice is one of fourteen rules, and on most Claude Code bills it is not the biggest lever: every call re-reads the whole conversation, so compacting earlier usually saves more. The other rules catch files read twice, blind retries, oversized tool output, heavy reasoning on trivial answers and coming back after the cache expired.

How is the up to 30% counted?

Every saving it found, together, with no dollar counted twice: the biggest first, and each one after it only on what the ones before leave. A plain sum of mine would have said 33%. It judges whole tasks instead of single calls, and leaves out normal debugging, files being written and switches that would not pay back. Each part says how sure it is, and the biggest ones are an "up to" until you test them. On a plan, 30% less usage is about 1.4x the work in each 5-hour window and each week.

Does anything leave my machine?

Your usage never does. It reads token counts from files your agents already write. verify calls your own provider with your own key, live --jev is opt-in, and once a day it asks npm for the latest version number, which you can turn off with OPTIMAIZR_NO_UPDATE_CHECK=1.

Is it open source?

Yes. The CLI is MIT-licensed and developed in the open on GitHub. Pro, the hosted version, is a separate product.

What does it cost?

The CLI is free, with no account. Pro, a hosted version for you or your team, is coming soon.

What can it read?

Claude Code, Codex and opencode sessions, your own Anthropic or OpenAI calls through wrap(), or a CSV export.

Does it work in VS Code?

Yes. optimAIzr for VS Code puts Claude Code's context, cache countdown and 5-hour window in the status bar, with the savings, guard and the fixes in a sidebar. Search optimAIzr in Extensions. The CLI runs in VS Code's terminal too.

try it

try it on your own history.

~ · zshfree
$ npm i -g optimaizr
$ optimaizr profile
Star on GitHub, 185 starsFree and open source. Runs on your machine and reads token counts, never token contents.

just trying it once? npx optimaizr profile runs without installing

pro

coming soon

A hosted version for you or your team: a dashboard, 12 months of history, auto-apply fix and spend guardrails, with Jev double-checking every model switch.

The CLI stays free either way.

tell me when it opens
3,710 npm downloads since Sep 13185 GitHub stars in 31 daysRead the docsA number doesn’t match your bill? Tell me