JSPM

  • Created
  • Published
  • Downloads 4756
  • Score
    100M100P100Q119755F
  • License SEE LICENSE IN LICENSE

Tokmizer reduces token consumption for AI coding tools (Claude Code, Codex, Cursor, Aider, Gemini CLI, Cline, Windsurf, Copilot). Cross-OS.

Package Exports

  • @tokmizer/plugin
  • @tokmizer/plugin/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tokmizer/plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tokmizer

Tokmizer reduces token consumption for AI coding tools: Claude Code, OpenAI Codex, Cursor, Aider, Gemini CLI, Cline, Windsurf, and GitHub Copilot. Works on macOS, Linux, and Windows.

It compresses noisy command output (logs, diffs, listings, test runs) before it reaches the model. Your agent does more work with the same context window, and you pay for fewer tokens.

Install

In Claude Code:

/plugin marketplace add Impulse-Creation/Tokmizer
/plugin install tokmizer

Any other tool (universal shell-shim):

curl -fsSL https://tokmizer.com/install.sh | bash

Windows (PowerShell):

npm install -g @tokmizer/plugin
tkr shim install

See scripts/README-INSTALL.md for per-tool notes.

Free tier

Optimization starts automatically. The free tier needs no account. To unlock Smart or Pro, subscribe at tokmizer.com, then:

tkr link

Commands

In Claude Code:

  • /tkr shows or changes settings
  • /tkr-link tokmizer_yourkey links a paid account
  • /tkr-unlink unlinks this machine from your account
  • /tkr-gain shows tokens saved
  • /tkr-status shows your current plan and usage
  • /tkr-compression picks the compression level (light, balanced, max)
  • /tkr-reducer makes the assistant's replies shorter (off, light, balanced, max). Smart and Pro
  • /tkr-telemetry views or changes anonymous telemetry
  • /tkr-update updates the plugin when a new version is out

From any terminal:

  • tkr status shows your current plan and status
  • tkr gain shows tokens saved
  • tkr link <key> links a paid account
  • tkr unlink unlinks this machine
  • tkr compression light|balanced|max picks how hard output gets compressed (default balanced)
  • tkr reducer off|light|balanced|max makes the assistant's replies shorter (default off). Smart and Pro
  • tkr settings show|set|configure manages settings and syncs them across your machines

What's in this repository

The user-facing parts of the Tokmizer plugin:

  • Plugin manifests for Claude Code (.claude-plugin/, hooks/) and Codex (codex-plugin/)
  • The /tkr slash commands (commands/)
  • Install scripts for macOS, Linux, and Windows (scripts/)
  • Selected plugin sources (src/): session UI, local stats and usage tracking, host detection, and the telemetry redaction rules that strip secrets before anything leaves your machine

The optimization engine and the API client are proprietary. They ship compiled with the @tokmizer/plugin npm package and are not part of this repository.

Privacy

  • Telemetry is opt-in (telemetryOptIn, default off).
  • Before any usage event is recorded, src/learn/redact.ts strips passwords, API keys, tokens, and cloud credentials. You can audit those rules here.
  • Local state lives in ~/.tokmizer/.

License

Proprietary. See LICENSE and the EULA at tokmizer.com/eula.