Discover and explore top open-source AI tools and projects—updated daily.
junhoyeoCLI tool for tracking AI coding assistant token usage and costs
Top 82.7% on SourcePulse
A high-performance CLI tool and visualization dashboard for tracking AI coding assistant token usage and costs across multiple platforms. It targets developers and power users seeking to understand and manage their AI-assisted development expenses, offering detailed insights, real-time pricing, and social sharing capabilities.
How It Works
Tokscale employs a native Rust core for high-performance data parsing and aggregation, achieving up to 10x speedup over TypeScript implementations. It reads local session data from various AI coding assistants, aggregates token usage (input, output, cache, reasoning), and calculates estimated costs using LiteLLM's real-time pricing data with OpenRouter fallback. The primary interface is an interactive TUI powered by OpenTUI, offering multiple views and navigation, complemented by a web-based 2D/3D contribution graph visualization.
Quick Start & Requirements
bunx tokscale@latestHighlighted Details
Maintenance & Community
The project lists GitHub contributors and has active development signals (forks, stars, issues). Specific community channels like Discord or Slack are not detailed in the README.
Licensing & Compatibility
Limitations & Caveats
Some AI tools automatically delete old session files, necessitating user configuration to preserve history for accurate tracking. Cursor IDE integration requires handling a sensitive session token obtained via browser developer tools. The interactive TUI's reliance on Bun is due to its native Zig modules.
18 hours ago
Inactive
cloudflare