Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (toktrack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
toktrack
Ultra-fast AI CLI token usage tracker. Built with Rust + simd-json + ratatui.

Scanning 2,000+ session files (3 GB) took over 40 seconds with existing tools — toktrack does it in ~1 second.
Installation
# No installation required
npx toktrack
# Or install globally
npm install -g toktrackFeatures
- Ultra-Fast Parsing — simd-json + rayon parallel processing (~2 GiB/s throughput)
- TUI Dashboard — 4 views (Overview, Models, Daily, Stats) with daily/weekly/monthly breakdown
- Multi-CLI Support — Claude Code, Codex CLI, Gemini CLI
- CLI Commands —
daily,weekly,monthly,statswith JSON output - Data Preservation — Cached daily summaries survive CLI data deletion
Supported AI CLIs
| CLI | Data Location |
|---|---|
| Claude Code | ~/.claude/projects/ |
| Codex CLI | ~/.codex/sessions/ |
| Gemini CLI | ~/.gemini/tmp/*/chats/ |
Supported Platforms
| Platform | Architecture |
|---|---|
| macOS | x64, ARM64 |
| Linux | x64, ARM64 |
| Windows | x64 |
Quick Usage
# Launch TUI dashboard
npx toktrack
# JSON output for scripting
npx toktrack daily --json
npx toktrack stats --jsonPerformance
| Mode | Time |
|---|---|
| Cold start (no cache) | ~1.2s |
| Warm start (cached) | ~0.05s |
Measured on Apple Silicon (9,000+ files / 3.4 GB).
Links
License
MIT