Tokscale is a CLI and TUI that aggregates token usage and cost estimates across many AI coding agents and editors on your machine.
Overview
Tokscale monitors how many tokens you consume when using AI-assisted coding tools. It reads session logs and local databases from clients such as Claude Code, Cursor, Codex, Gemini CLI, and numerous other agents listed in its compatibility table, then presents usage through terminal dashboards.
The tool calculates pricing using LiteLLM pricing data, including tiered rates and cache discounts where applicable. Views cover daily summaries, hourly breakdowns, per-model stats, session details, project rollups, and optional social leaderboard submission through a bunx command.
An interactive TUI built with Ratatui is the default experience, with filtering by platform, date ranges, and subscription usage. A separate frontend offers visualization such as a 3D contributions graph and a Wrapped-style annual report.
Tokscale is positioned as local analytics for developers who want visibility into AI token spend without relying on each vendor's separate reporting. Native binaries are distributed for common platforms through package runners.
Key features
- Cross-agent token usage aggregation
- Interactive Ratatui dashboard
- LiteLLM-based cost estimates
- Daily, hourly, and session views
- Leaderboard submission command
- Platform and date filters
- Optional web visualizations
- Supports many AI coding clients
Use cases
- Tracking personal AI token spend
- Comparing usage across coding agents
- Auditing team token consumption locally
- Publishing anonymized leaderboard stats