Browse tools / Development

TokenShield

A local proxy that records every Claude API request with real billed token counts, broken down by model and session, shown in a live dashboard on your own machine. Optional experimental processors can be measured against your own usage.

Visit website ↗

Outbound links may earn a commission when an approved affiliate destination is available. Read disclosure.

Capabilities

  • local proxy on 127.0.0.1 that forwards requests to Anthropic
  • live ledger of billed input, cached-read, and output tokens
  • breakdown by model and session
  • local SQLite ledger
  • localhost dashboard
  • optional experimental conversation deduplication
  • result cache for non-streaming tool calls
  • fail-open processors

Best for

  • Developers and contractors who use Claude Code, Cursor, or Windsurf and want to see exactly where their Claude API tokens and costs go.

Limitations

  • Optimization processors are experimental and off by default
  • Savings depend on workload; no fixed percentage is promised
  • Streaming requests bypass the result cache
  • Diff-based file reads, streaming early-stop, and context auto-summarize are roadmap items only
  • OpenAI and Gemini support are not yet live

Platforms

  • macOS
  • Linux
  • Windows
  • API
  • Web

Integrations

  • Claude Code
  • Cursor
  • Windsurf
  • Zed
  • Aider
  • Anthropic SDK clients

Independent evidence

Evidence review is pending.

Reviewed alternatives

No reviewed alternatives yet.

Explore other tools

Compare your selection