DEDUPED Hot AI repos, turned into use cases Get 5 a day

What you can do with Optimaizr

A local CLI that finds wasted tokens in Claude Code, Codex, opencode and your own API calls, and fixes some of it.

Trended earlier

Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk.

4 use cases

  • Find where Claude Code tokens are wasted

    Run one report on your local logs to see savings ranked by how sure they are, in dollars.

    View prompt
    Run `npx optimaizr` from the optimaizr repo (github.com/blendbunjaku/optimaizr) on this machine and report the Clear waste and Re-reading the conversation figures. Verify that the savings are reported per month and that the three savings tiers are not added together.
  • Hold expensive Claude Code messages before they go

    Guard holds a message to an idle long conversation once, with its cost, and a cache countdown shows time left.

    View prompt
    In the optimaizr repo (github.com/blendbunjaku/optimaizr), run `optimaizr guard on` and then `optimaizr guard` on this machine. Report how many messages were held and the cost each would have written. Verify that a held message was not sent until it was sent again.
  • Track token use in your own Anthropic or OpenAI app

    Wrap your existing API client in one line so optimAIzr can read your app's calls.

    View prompt
    In the optimaizr repo, wrap the API client in <app path> with optimaizr.wrap, run the app once, then run `npx optimaizr` and report the Where it goes breakdown. Verify that the app still returns the same responses it returned before the wrap.
  • Check whether compacting at 200K actually saved money

    Apply the change, wait several days, then compare cost per prompt and each trade-off to the days before.

    View prompt
    In the optimaizr repo, after context compaction has been applied for several days, run `optimaizr results` on this machine and report cost per prompt before and after. Verify that every row that got worse is marked as a trade-off before you draw a conclusion.

How to use Optimaizr

  1. Check you have what it needs: Node.js 20.11 or later (22.13 or later to read opencode history); Existing usage logs from Claude Code, Codex or opencode on this machine; A terminal.
  2. Open blendbunjaku/optimaizr on GitHub and read the README and license.
  3. Run npx optimaizr in a terminal.
  4. Read the Savings found section and the Where it goes breakdown.
  5. Run optimaizr sessions to see your costliest conversations.
  6. Run optimaizr why to see spend by model, project and kind of work.

These steps come from our top use case, Find where Claude Code tokens are wasted, which also has a copy-paste agent prompt.

Optimaizr alternatives · Best AI repos for Software and DevOps

About this repo

  • Who it is forDevelopers and heavy users who pay for Claude Code, Codex or opencode, or call the Anthropic or OpenAI API, and want to see where their token spend goes.
  • Why it is hot
  • LanguageTypeScript
  • Sourcegithub.com/blendbunjaku/optimaizr · Back to Hot repos

Requirements

  • Node.js 20.11 or later (22.13 or later to read opencode history)
  • Existing usage logs from Claude Code, Codex or opencode on this machine
  • A terminal
Maintain Optimaizr? Add the Featured on Deduped badge

Paste this into your README:

[![Featured on Deduped](https://dedupedai.com/badge/blendbunjaku-optimaizr.svg)](https://dedupedai.com/use-cases/blendbunjaku-optimaizr/?ref=badge)

More badge styles and HTML

Questions about Optimaizr

What is Optimaizr?

A local CLI that finds wasted tokens in Claude Code, Codex, opencode and your own API calls, and fixes some of it. It is an open-source project on GitHub: https://github.com/blendbunjaku/optimaizr.

Who is Optimaizr for?

Developers and heavy users who pay for Claude Code, Codex or opencode, or call the Anthropic or OpenAI API, and want to see where their token spend goes.

What can I do with Optimaizr?

4 use cases so far, for example: Find where Claude Code tokens are wasted; Hold expensive Claude Code messages before they go; Track token use in your own Anthropic or OpenAI app. Each has steps and a copy-paste agent prompt.

What do I need to run Optimaizr?

Node.js 20.11 or later (22.13 or later to read opencode history); Existing usage logs from Claude Code, Codex or opencode on this machine; A terminal.

What are alternatives to Optimaizr?

Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.

Is Optimaizr safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.