AI-assisted visual development platform that works inside your own repo and design system, so designers and PMs can ship UI through pull requests.

Token Optimizer
Source-available plugin that audits wasted context in Claude Code and other coding agents, compresses output and saves session checkpoints.
What is Token Optimizer?
Token Optimizer is a plugin and skill for AI coding agents, primarily Claude Code, that shows where your context window and spend go and trims what does not need to be there. An audit workflow scans your setup and produces a per-component token breakdown, while a local SQLite history feeds trends, savings and per-turn cost reports and a single-file HTML dashboard. Active compression rewrites safe read-only CLI output into short summaries, returns only the diff when a changed file is re-read, and archives large tool results so they can be expanded later. Smart compaction saves checkpoints at several context-fill bands and restores them afterward, and a 0 to 100 quality score based on seven signals appears in the status line with warnings and loop detection. Measurement runs locally on your machine. It is licensed under PolyForm Noncommercial 1.0.0 with a written permission for small businesses: personal, hobby, research and education use is free, and companies under 5 people and $20k/month revenue need no paid license.
Use cases
- Audit wasted tokens in Claude Code sessions
- Track token and dollar cost per session
- Recover a session after context compaction
- Compress noisy command output before it fills context
- Score context quality while coding
- Reorder CLAUDE.md for better model attention
Who it's for
Why use Token Optimizer
- Shows which sessions, models and skills cost the most, so you can cut waste with evidence.
- Checkpoints protect long sessions from losing state when auto-compact runs.
- Full source is published, so you can audit what it reads from transcripts before trusting it.
- Free for personal use and for very small businesses under the stated size and revenue limits.
Token Optimizer features
- Full audit with per-component token breakdown and suggestions
- Single-file HTML dashboard of overview, quality and trends
- Trends, savings and per-turn cost reports from a local database
- Bash and search output compression
- Delta mode that returns only the diff on re-reads of changed files
- Checkpoint capture and restore around compaction
- 0 to 100 context quality score with status line display
- Loop detection and quality nudges
- Token Coach and Fleet Auditor for behavior and multi-agent audits
- Attention optimizer that scores and reorders CLAUDE.md
Token Optimizer integrations
How to get started with Token Optimizer
- Install Token Optimizer as a plugin or skill for your coding agent.
- Run the audit or quick scan to see overhead, top offenders and degradation risk.
- Let the default hooks compress output, cache reads and save checkpoints as you work.
- Open the dashboard or run the trends and savings commands to review cost and realized savings.
- Use the checkpoint restore after compaction or on a fresh session to pick up where you stopped.
Token Optimizer limitations
- Licensed PolyForm Noncommercial 1.0.0; companies above 4 people or $20k/month revenue need a commercial license
- Work done for an employer counts as the employer's use, even on a personal laptop
- Some commands write settings or end processes, so not every report is read-only
Token Optimizer pricing
Token Optimizer is free to use.
Token Optimizer plans
Personal and education
Free
- Full source
- Runs locally
- Hobby, research and education use
Small business
Free
Under 5 people and $20k/month revenue
- No-cost commercial license granted in writing
- Internal business use only
Commercial license
Custom
Contact the author
- For larger organizations
- Terms scale with company size
Plans as listed on the official pricing page on . Prices can change and may vary by country or exclude tax. Check the official pricing page.
Token Optimizer alternatives
The main Token Optimizer alternatives listed on Debuly are Langfuse, Helicone, WhereMyTokens, agent-top, Poirot and Supercode. The table compares pricing and platforms; order is A–Z.
| Tool | Pricing | Starting price | Platforms |
|---|---|---|---|
| Token Optimizer | Free | — | CLI |
| agent-top | Pricing unknown | — | macOS, Linux, CLI |
| Helicone | Freemium | $79/mo | Web, API, Self-hosted |
| Langfuse | Freemium | $29/mo | Web, API, Self-hosted, Docker |
| Poirot | Open source | — | macOS |
| Supercode | Paid | $9.99/mo | — |
| WhereMyTokens | Open source | — | Windows, macOS |
agent-top
Terminal dashboard that lists every local Claude Code, Codex, Gemini CLI and OpenCode session with its state, tokens and cost.

Helicone
Open-source LLM observability and AI gateway that logs requests, tracks cost and latency, and routes to 100+ models through one API.
FreemiumVisit Helicone (official site)
Langfuse
Open-source LLM observability and evaluation platform for tracing agents, managing prompts and scoring outputs.
FreemiumVisit Langfuse (official site)
Poirot
Free, open-source macOS app that shows what Claude Code did in each session, with usage analytics and cost views.
Open sourceVisit Poirot (official site)
Supercode
Extension for Claude, Codex and Cursor that trims token use, adds project context and offers a catalog of agent skills.
WhereMyTokens
Local-first Windows tray app that tracks Claude Code, Codex and Antigravity token use, quota windows and cost estimates.
Open sourceVisit WhereMyTokens (official site)
Token Optimizer FAQ
How much does Token Optimizer cost?
Personal, hobby, research and education use needs nothing. Organizations with fewer than 5 people and under $20k/month revenue get a no-cost commercial license; larger companies need a commercial license by contacting the author.
Is Token Optimizer open source?
It is source-available under PolyForm Noncommercial 1.0.0 plus a small business permission. The full source is public, but it is not an OSI open-source license.
Does Token Optimizer send my data anywhere?
The site says normal measurement stays local and reads session transcripts, configuration and memory files on your machine. Optional network features are described on its privacy page.
Which agents does it support?
Claude Code is the reference path. The docs also mention a Codex runtime and other adapters that block Claude-targeting commands and use their own reports.
Is there a free plan?
Yes for eligible users: personal and educational use, and small businesses under the headcount and revenue limits, pay nothing. There are no published paid tiers.
What are alternatives to Token Optimizer?
Alternatives for tracking Claude Code usage and cost include ccusage and Claude Code's built-in /context and /cost commands. On Debuly, compare Langfuse, Helicone and WhereMyTokens.
Sources & verification
Facts on this page come from the official sources below, each with the date we read it. Written by Debuly; the vendor did not review this page.
| Source | Type | Accessed |
|---|---|---|
| token-optimizer.dev | official | |
| github.com/alexgreensh/token-optimizer | repository | |
| token-optimizer.dev/pricing | pricing | |
| token-optimizer.dev/reference/license/ | pricing | |
| token-optimizer.dev/start/feature-map/ | official | |
| token-optimizer.dev/features/usage-analytics/ | official |
Image credits
- Logo: from token-optimizer.dev · fetched · Vendor trademark, used only to identify the product; removed on request
- Cover: none collected yet, so a generated tile is shown.
Spot an error? Report an issue with this listing. We also remove a logo or image on the owner's request.



