TokenPincherGet started

For Claude Code & Codex

Reduce Claude Code token usage by up to 60%.

A tiny CLI that strips logs, diffs, and test noise out of your agent's context — before the model reads it.

npx tokenpincher init

that's the whole setup

tokenpincher statsexample
Bash · npm test1,912306 tk−84%
server logs
83%
npm test
81%
git diff
56%
file reads
41%
0 tokens savedthis session · −57%

your prompts: untouched · originals kept on disk · savings are estimates

What it does

Same information. A fraction of the tokens.

npm test212 lines · ~1,912 tk
PASS src/engine/compress.test.ts (4.1s)
FAIL src/lib/license.test.ts
  ✕ rejects expired subscription (211ms)
    Expected: 403   Received: 200
    at Object.<anonymous> (license.test.ts:88)
… 207 more lines of reporter noise, timing tables, stack traces

Claude reads all of it — again, every turn

npm test · pinched~306 tk · −84%

213 passed · 1 failed: rejects expired subscription (403 vs 200)

Claude reads only this

tail -200 server.log200 lines · ~5,110 tk
14:02:11 INFO  req GET /api/license/validate 200 12ms
14:02:11 INFO  req GET /api/license/validate 200 9ms
14:02:12 INFO  req GET /api/license/validate 200 11ms
14:02:14 WARN  stripe retry (attempt 2) — timeout after 5000ms
14:02:15 ERROR license signature mismatch key=TP-9f…
… 195 more lines, mostly repeats of the same requests

Claude reads all of it — again, every turn

tail -200 server.log · pinched~480 tk · −91%

182 INFO · 14 WARN · 4 ERROR — errors kept in full, repeats folded

Claude reads only this

The full output stays on disk — if the model wants the original, it pulls it back on demand.

Your prompts are ~4% of your token bill.

your prompts · ~4%tool output your agent rereads every turn · ~96% — this is what gets pinched

Setup, once

  1. 1

    npx tokenpincher init

  2. 2

    every tool call is compressed, automatically

  3. 3

    tokenpincher stats shows the receipts

Pricing

Free$0

7 days, everything included. Then pauses until Pro.

Pro$9/mo

Unlimited. Cancel anytime.

Go Pro

Costs less than the tokens it saves.

npx tokenpincher init

read the full guide