Products/Developer tools / AI cost tracking / CLI utilities/Toktrack

Toktrack

Ultra-fast token & cost tracker for LLM Token Usage (e.g. Claude Code)

Developer tools / AI cost tracking / CLI utilitiesaitrackingdeveloper-toolscliReviewed

Our Take

Toktrack lets developers monitor their AI CLI spending across Claude, Codex, and Gemini in just 40 milliseconds. If you're running AI models in the terminal—which more developers are doing every day—you're burning through API credits and there's basically no way to see where your money's going. Toktrack fixes that. It plugs into your CLI workflow and tracks token usage in real-time so you know exactly what each prompt costs.

That's the whole product. It's new, it's on Product Hunt, and it's solving a problem everyone who's used Claude Code or similar CLI tools has complained about: where did my credits go? Simple tool, obvious gap, now someone's filling it.

A persistent token and cost tracker for AI coding CLIs that preserves usage history even after CLIs delete their session files

Key Features
Persistent cache that survives CLI data deletion, Multi-CLI support (Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, PI Agent), TUI Dashboard with 3 tabs (Overview, Stats, Models) and daily/weekly/monthly views, CLI Commands: daily, weekly, monthly, stats with JSON output support, Usage Reports with shareable text and SVG receipts via toktrack report, Fast parsing with simd-json + rayon parallel parsing (~3 GiB/s), Cached runs in ~0.04s, Shell integration for prompt display, Remote Codex Sources via SSH/rsync
Problem It Solves
Claude Code and similar AI coding CLIs delete session data after 30 days by default, causing cost history to disappear permanently. Each CLI also keeps separate data with no unified view.
Target Customer
Developers using AI coding tools like Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, and PI Agent
Use Cases
Track AI coding costs across multiple CLIs, Preserve cost history beyond CLI session limits, Generate usage reports for sharing, Monitor daily/weekly/monthly AI spend, Data-preservation audit
Pricing Details
Open source - free to use
Free Tier
Open source - free
Differentiator
Persistent cache that survives after CLI deletes its session files, ultra-fast performance with simd-json + rayon, unified dashboard for multiple AI coding CLIs
Why Now
Claude Code deletes session data after 30 days by default, causing cost history to be lost forever unless preserved
Traction
Notable Metrics: 158 stars, 13 forks, 317 commits

Key Facts

Category
Developer tools / AI cost tracking / CLI utilities
Discovered via
producthunt

Links

Browse by category

Want products like this in your inbox every morning?

Five products. Every morning. Written by someone who actually cares whether they're good or not. Free forever, unsubscribe whenever.

Toktrack — SLAYREPORT