Measure observed waste
See would-have-used tokens, actually used tokens, saved tokens, and percentage saved for recorded optimization events.
opencode cost and context control
TokenWarden trims wasted context in opencode, keeps your AI focused, and reports observed optimization savings per session.
$ npm install -g tokenwarden $ tokenwarden status Optimization: active Privacy: local-first Account: free seat | credited 81.7k/100k observed saved tokens $ /tokenwarden-report TokenWarden observed optimized-context savings Scope: recorded optimization events only 150k observed -> 67.3k used, saved 82.7k (saved 55.1%)
See would-have-used tokens, actually used tokens, saved tokens, and percentage saved for recorded optimization events.
Optimizes noisy context so your AI gets what matters without dragging in the whole repo.
Your coding context stays on the developer machine by default.
Free includes
100,000optimized tokens per monthfor individuals to test and explore.
Enter estimated monthly optimizable usage. This is not a full provider bill forecast.
Savings are estimated at 90% for observed optimization events only. Normal prompts and provider-billed tokens outside those events are not included.
Choose monthly or save with yearly billing.
For individuals getting started.
For professionals and teams.
Track optimized-context savings without claiming every provider-billed token.
More room for what matters. Less noise.
All optimization happens locally. Your code stays yours.
Local-first reporting that keeps savings visible across sessions.
Tokens TokenWarden avoided in recorded optimization events, such as context it actually changed or optimized.
TokenWarden compares would-have-used tokens with actually used tokens for recorded optimization events. It does not count every model input, model output, cache token, or provider-specific billing unit.
Yes. Start monthly, move yearly for 20% savings, and adjust paid seats from your account page.
All plans include local-first privacy. No source code is used to train models. Ever.