Zero Dependencies · Local-First · MIT Core + MCP Server

Stop burning AI coding tokens blindly.

TokenGuard scans your repo for hidden context hogs, packs budget-capped XML/Markdown bundles, and runs as a native MCP server inside Claude Code, Cursor, and Windsurf — 100% locally.

npx tokenguard-mcp scan .
Download VS Code / Cursor Extension (.vsix) Extension Repo (MIT) npm: tokenguard-mcp@1.0.1 Compare Free vs Pro
TokenGuard VS Code, Cursor & Windsurf Preview — Live Status-Bar Token/USD Meter, Secret Leak Guard & 1-Click Context Packer

Spot Context Hogs Instantly

Rank every file by token count, auto-skip lockfiles & binaries, and see exact single-pass USD cost across 10 major 2026 models.

60–85% Skeleton Compression

Pro mode strips noisy function bodies while keeping exports, types, classes, and signatures — fit 5× more architecture in the same budget.

Native MCP + CI Secret Guard

Plug straight into Claude Code or Cursor via stdio MCP, and block token bloat or leaked API keys in CI with SARIF 2.1.0 output.

Quick ROI Calculator (Skeleton Mode Savings)

Monthly Sonnet Input Cost (Full)
$28.80
Monthly Cost (70% Skeleton Compression)
$8.64
Estimated Monthly Savings
$20.16 / mo

Open-Source Core

$0 MIT Forever
  • tokenguard scan — repo token & cost breakdown
  • tokenguard pack --budget N — smart budget packer
  • tokenguard diff — git diff cost estimator
  • tokenguard mcp — stdio MCP server
Install via npm

TokenGuard Pro

$19 one-time · no subscription
  • Everything in Open-Source Core
  • Skeleton Compression (--mode skeleton, 60–85% savings)
  • CI Budget Gate & Secret Leak Scanner (SARIF 2.1.0 + JSON)
  • Local AI Spend Audit (JSONL session cost ledger)
  • Instant Creem license key · works offline (7-day grace) & in CI
Buy Pro License ($19)