Quickstart
This is the fastest path on Claude Code. Install the plugin, run the audit one time, and open the dashboard. Everything else runs automatically from there.
For other platforms, or for a script-managed install on macOS and Linux, see Choosing your install.
Install and run
Section titled “Install and run”-
Add the marketplace and install the plugin. In Claude Code:
/plugin marketplace add alexgreensh/token-optimizer/plugin install token-optimizer@alexgreensh-token-optimizerThis is the recommended path on macOS, Linux, and Windows. The plugin auto-loads its hooks on install, so Smart Compaction, quality scoring, active compression, and session data collection start working without manual setup.
-
Turn on auto-update. Claude Code ships third-party marketplaces with auto-update off, and plugin authors cannot change that default. Go to
/plugin, open the Marketplaces tab, selectalexgreensh-token-optimizer, and choose Enable auto-update. One time, ten seconds, and you receive fixes automatically. -
Run the audit once. In Claude Code:
/token-optimizerIt scans your setup, finds waste, shows you the findings on a dashboard, and applies the fixes you approve. See Reading your first audit for what each phase produces and how to act on it.
-
Open the dashboard. The dashboard regenerates after every session. To make it available at a bookmarkable URL, install the daemon once from the scripts directory:
Terminal window cd ~/.claude/skills/token-optimizer/scriptspython3 measure.py setup-daemonThen open
http://localhost:24842/token-optimizer. The dashboard binds to localhost by default, reachable only from your own machine.
Confirm it worked
Section titled “Confirm it worked”Run the health check from the scripts directory:
cd ~/.claude/skills/token-optimizer/scriptspython3 measure.py doctordoctor reports pass, warn, or fail for each component: hooks, status line, Smart Compaction, dashboard daemon, and quality bar. For a quick context-fill and quality read instead, run /token-optimizer quick.
Next steps
Section titled “Next steps”- Reading your first audit: the multi-phase audit and how to apply fixes safely.
- All features at a glance: every feature, its default, and where to learn more.
- Why install this first: the overhead that makes this worth doing early.