toktrack scans your AI coding CLI session files and shows exactly how much you're spending — per model, per day. Works with Claude Code, Codex CLI (including gpt-5.3-codex), Gemini CLI, and OpenCode. One command: npx toktrack. Built in Rust with SIMD JSON parsing — scans 3,500+ session files in ~40ms. It also caches your cost history independently, so even after Claude Code deletes sessions (default 30 days), your data is preserved. Free and open source (MIT).
Hi PH! I'm the maker of toktrack.
I use Claude Code, Codex CLI, and Gemini CLI daily — but none of them show you how much you're actually spending. I kept getting surprised by my monthly bill.
Existing trackers were either slow (40s+ to scan large datasets) or didn't support newer models like gpt-5.3-codex at all.
So I built toktrack in Rust. It parses thousands of session files in ~40ms using SIMD JSON, and caches your cost history independently — so even after Claude Code deletes your sessions (default 30 days), your spending data is preserved.
One command to try: npx toktrack
Would love feedback — especially on what other AI CLIs or features you'd want to see.
toktrack