Skip to content
AddHunt
VS Code extensions

optimAIzr

Find and cut wasted tokens in coding-agent sessions

Open source

  • Open source
  • Licence: MIT

In short

optimAIzr is a free, open-source CLI and VS Code extension that reads your local Claude Code, Codex and opencode usage, shows where tokens are spent and prices each possible fix. It is for developers using coding agents who want to stretch their plan or API budget.

What you get

  • Local analysis of Claude Code, Codex and opencode usage
  • Fixes priced in dollars before applying
  • Guard holds messages that would rewrite an expired cache
  • Live view of sessions and cache timers
  • VS Code status bar with cache countdown

The details

optimAIzr analyses the usage logs that coding agents already keep on the machine. Nothing is uploaded: the CLI reads local data, works out where tokens go and attaches a dollar figure to every fix it suggests, then applies the fixes the user accepts.

Guard and the cache

A large share of an agent's cost comes from re-reading the conversation. When the prompt cache has expired, sending the next message writes the whole context again. Guard notices this, holds that message and helps start fresh from a note, so the expensive rewrite can be avoided.

Commands

The CLI installs from npm and has 28 commands. The profile command gives a first overview of plan, calls and possible savings, while the live command watches active sessions, shows which are idle and how long their cache stays warm, and reports the cost of the current run. Fixes such as compacting the context earlier are tracked with before-and-after comparisons.

VS Code extension

Version 0.13 added an extension for VS Code that puts Claude Code's context size, the cache countdown and the 5-hour window in the status bar, with a warning 5 minutes before an expensive cache expires.

The project is MIT licensed on GitHub and also covers your own API calls. A Pro version is marked as coming soon.

Pricing

Free

As of , from optimaizr.com. Prices change: check before you buy.

Alternatives to optimAIzr

All alternatives

Questions

Does optimAIzr upload my transcripts?

No. It reads the usage data already stored on your machine, and its output notes that zero bytes are uploaded.

Which tools does it support?

Claude Code, Codex and opencode, as well as your own API calls. There is also a VS Code extension for Claude Code's context and cache timers.

What does Guard do?

When a message would be sent to an expired cache and rewrite the whole context, Guard holds it so you can avoid paying for that rewrite.

More like this