Optimize your Claude Code spend in three commands.

install
$ pip install "tokenjam[mcp]"$ tj onboard --claude-code$ tj optimize
tj — bash
Star on GitHub

Open source. No sign up needed. Runs 100% locally.

What does this do?

  1. Backfills up to 30 days of your existing Claude Code session logs into a local DuckDB.
  2. Flags sessions that match the structural shape of a smaller model's workload — short inputs, short outputs, few tool calls — and shows projected savings if you switched.
  3. Projects your monthly spend against a budget you set, per provider, and tells you when you'll run out.