AIAny
AI Client2026
Icon for item

Token Optimizer

Audits and reduces token waste in LLM sessions by compressing verbose outputs, checkpointing before compaction, and restoring lost context. Runs fully locally with zero telemetry and provides a live token dashboard plus plugins for Claude Code, OpenClaw and Codex.

Introduction

Most LLM-tooling focuses on compressing a single slice of output; the real cause of session quality loss is structural bloat and compaction loss that never gets measured. Token Optimizer tackles that blind spot by making every token visible and recoverable so sessions survive compactions and context quality doesn't quietly degrade.

What Sets It Apart
  • Measured, local-first approach: captures per-turn token breakdowns, cache reads, subagent spend and quality scores in a local SQLite store and a bookmarkable dashboard — nothing is sent off-host.
  • Smart compaction and checkpoints: snapshots session state at thresholds, archives large tool outputs, and restores critical decisions after compaction so you don't lose the work that led to decisions.
  • Active compression + structural fixes: delta-mode diffs on re-reads, AST-based structure summaries for large code files, and a growing set of CLI output compressors (git, pytest, linters, logs) to cut repetitive runtime noise.
  • Multi-platform integration: native plugins / adapters for Claude Code, OpenClaw and Codex (beta), with a single-file HTML dashboard and CLI for environments without extension support.
Who it's for — fit and trade-offs

Great fit if you run long, tool-heavy LLM sessions (multi-agent orchestration, code-heavy debugging, or repeated large file reads) and want reproducible token savings plus session continuity. The tool prioritizes safety: it never mutates existing in-context conversation blocks (avoids prompt-cache invalidation) and runs with zero runtime dependencies.

Look elsewhere if you require a cloud-hosted analytics service, need permissive commercial licensing for high-revenue enterprise use (the project ships under PolyForm Noncommercial), or if you prefer lossless, full-output retention for every CLI command — some compressors are intentionally lossy and are toggleable.

Information

  • Websitegithub.com
  • AuthorsAlex Greenshpun
  • Published date2026/02/26

Categories

More Items

GitHub
AI Client2025

Enhances web AI chat interfaces (Gemini, AI Studio, Claude, ChatGPT) with folder-based conversation organization, timeline navigation, prompt vault, cloud sync, chat export, UI fixes and a plugin engine. Runs as a browser extension and includes cross-site prompt management and Mermaid rendering.

GitHub
AI Agent2026

Manages real tmux-backed terminals and AI agents as draggable nodes on an infinite pan/zoom canvas, with a Trello-style kanban view, persistent sessions that survive restarts, mobile companion support, and a browser Server Edition for self-hosting.

GitHub
AI Agent2026

Runs locally to learn your tastes and proactively discover content across Bilibili, Xiaohongshu, Douyin, YouTube, X, Zhihu, Reddit and the open web. Local-first agent storing data in a local SQLite, with a browser extension, optional desktop backend bundling embeddings (bge-m3/Ollama), and conversational feedback to refine recommendations.