Back to feed
Dev.to
Dev.to
5/8/2026
I built a Rust replacement for ccusage — 1,742x faster, near-zero overhead

I built a Rust replacement for ccusage — 1,742x faster, near-zero overhead

Short summary

Toki is an open-source Rust replacement for ccusage that tracks Claude Code and Codex token usage 1,742× faster with minimal overhead. The core daemon indexes sessions incrementally using an embedded TSDB, while optional toki-monitor provides a macOS menu bar interface and toki-sync enables team leaderboards. Available via Homebrew under FSL-1.1-Apache-2.0 license, with Gemini support coming next.

  • Toki daemon replaces ccusage with 1,742× speedup for token usage tracking with constant-time queries
  • Optional macOS menu bar app (toki-monitor) with token burn visualizations and team sync server (toki-sync) with leaderboard features
  • Open-source FSL-1.1-Apache-2.0; available via Homebrew; Linux/macOS support, Gemini CLI in development

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Explore more