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 .
Rank every file by token count, auto-skip lockfiles & binaries, and see exact single-pass USD cost across 10 major 2026 models.
Pro mode strips noisy function bodies while keeping exports, types, classes, and signatures — fit 5× more architecture in the same budget.
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.
tokenguard scan — repo token & cost breakdowntokenguard pack --budget N — smart budget packertokenguard diff — git diff cost estimatortokenguard mcp — stdio MCP server--mode skeleton, 60–85% savings)TokenGuard and ChatVault MD run 100% locally. Your source code, git diffs, and AI chats are never uploaded to our servers. Only your license key and an anonymous device ID are sent when activating a Pro license.
Open-source core features are licensed under MIT. A Pro license grants a non-transferable perpetual license for up to 3 personal devices (plus CI runner usage for TokenGuard Pro). No recurring fees.
Not satisfied with your Pro license? Contact support within 14 days of purchase with your order ID for a full, no-questions-asked refund processed via Creem.