by blendbunjaku
Spend fewer tokens on the same work. A local CLI that finds wasted tokens in Claude Code, Codex and your own API calls.
# Add to your Claude Code skills
git clone https://github.com/blendbunjaku/optimaizrGuides for using cli tools skills like optimaizr.
See how optimaizr compares with popular alternatives.
optimaizr is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by blendbunjaku. Spend fewer tokens on the same work. A local CLI that finds wasted tokens in Claude Code, Codex and your own API calls. It has 50 GitHub stars.
optimaizr's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/blendbunjaku/optimaizr" and add it to your Claude Code skills directory (see the Installation section above).
optimaizr is primarily written in TypeScript. It is open-source under blendbunjaku on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh optimaizr against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Spend fewer tokens on the same work.
In a long Claude Code session, most of what you pay for isn't Claude writing code. It's Claude re-reading your conversation on every call, cheap per token but paid again and again, and writing it into the cache again after a break, at up to twice the input price. optimAIzr shows where your tokens go, warns you before the expensive moments, and fixes what it can in one command. For Claude Code and Codex.
npx optimaizr
No account, no upload, no telemetry. It reads token counts from the logs already on your machine, never your prompts or Claude's answers. To spot repeated work it also reads what each tool call was given (a file path, a command, the first 200 characters of anything else), in memory only, and stores none of it.
Your Claude Pro did $938.12/mo of work at API prices: 47x what you pay
Savings found
Clear waste $13.07/mo $159.01/yr · fix it, nothing to lose
Likely, if you try +$1.54/mo model mismatch, excess reasoning
Up to, if you test $263.14/mo compact earlier · 48% of calls carry over 200K of conversation
Where it goes
Re-reading the conversation 56% ███████████░░░░░░░░░
Loading context into cache 24% █████░░░░░░░░░░░░░░░
Answers, code and thinking 20% ████░░░░░░░░░░░░░░░░
The cache countdown. Claude Code keeps a conversation cached for an hour. Come back later and your first message writes all of it again. One command puts a countdown under Claude Code's prompt, with what coming back will cost.
optimaizr statusline on
◉ optimAIzr · 161.0K context, $0.032/call to re-read · cache warm 12m, then $1.29 to write again · leaving? handoff note, then /clear · 5h 61%
Live, beside your agent. optimaizr live warns when context jumps or
passes 200K, and 5 minutes before a cache expires, and offers a fix you take
with Y.
Where long sessions turn expensive. optimaizr sessions opens with your
costliest conversations, by the title Claude Code gave them, then finds the
context size where re-reading takes over, what each cache write was for, and
every time you came back too late.
Cold cache returns
16 times you came back after a long conversation's cache
expired, and paid for all of it again: 5.9M tokens for
$47.25, where a warm cache would have read it for $1.19.
optimaizr apply context-compaction # Claude Code and Codex compact at 200K
optimaizr undo context-compaction # and back
Every finding says what happened, why it matters and what it saves, in dollars from your own logs. Savings are split into clear waste, likely, and "up to", and never added together.
The optional optimAIzr mod runs inside the session: the cost of each answer and
your 5-hour window as you work, Y in live moves the session you're in to a
cheaper model, and /optimaizr handoff writes a note to start fresh from.
⏺ optimaizr: this turn $0.18 · 2m 10s · 4 requests · ~0.4% of 5h
optimAIzr █████████░░░░░░░ 56% of 5h · resets 15:00
/plugin marketplace add blendbunjaku/optimaizr
/plugin install optimaizr@optimaizr
| Command | What it does |
|---|---|
optimaizr |
Where your tokens go, and what to fix first |
optimaizr live |
Watches while you work, fixes with Y |
optimaizr statusline on |
The cache countdown under Claude Code's prompt |
optimaizr sessions |
Where long conversations start to cost more |
optimaizr why |
Spend by model, project and kind of work |
optimaizr apply <rule> |
Applies a fix; undo <rule> takes it back |
optimaizr verify <rule> |
Replays your own requests on the cheaper option |
optimaizr card |
Your last 30 days as an image to post |
optimaizr --help lists the rest.
Claude Code and Codex with no setup. Your Claude plan (Pro, Max, Team) and
ChatGPT plan are detected. Your own app with one line,
optimaizr.wrap(new Anthropic()) or new OpenAI(), and CSV or JSON usage
exports. Node 20.11 or later.
optimaizr results puts the days after each change
against the days before, on your own usage. optimaizr apply lists what you
can change, and --done records a change you made yourself. sessions
ranks your costliest conversations, and live says what each turn cost.optimaizr sessions.Every release in full:
changelog or
optimaizr changelog.
Everything runs on your machine and stays in ~/.optimaizr/. The only network
calls are verify (to your own provider, with your own key), the optional Jev
second opinion, and a daily version check against npm, off with
OPTIMAIZR_NO_UPDATE_CHECK=1.
SECURITY.md
lists every file read and written.
npm install && npm run build && npm testFirst presented on September 13, 2026, open source since September 30, 2026. optimAIzr Pro, the hosted product coming to optimaizr.com, is separate from this repository.