junhoyeo/tokscale

🛰️ Track token usage across AI coding agents from your terminal. 🏅 Global leaderboard with trillions of tokens tracked.

What it solves

Tokscale is a high-performance CLI tool and visualization dashboard designed to track token usage and costs across a wide variety of AI coding agents. It eliminates the need to manually track spending across different tools, providing a centralized view of consumption and expenses.

How it works

Tokscale monitors consumption by reading data from the local storage locations (databases, JSONL files, and logs) of numerous AI coding agents (such as Claude Code, GitHub Copilot CLI, Cursor, and others). It integrates with LiteLLM's pricing data to perform real-time pricing calculations, including support for tiered pricing and cache token discounts.

Who it’s for

Developers and teams using multiple AI coding assistants and agents to monitor their token expenditure and analyze their usage patterns.

Highlights

  • Broad Client Support: Supports a massive list of AI coding agents including OpenCode, Claude Code, Cursor, GitHub Copilot CLI, and many others.
  • cantidad de datos: Reads directly from local files, databases, and some API caches to aggregate usage.
  • Real-time Pricing: Uses LiteLLM's pricing data for accurate cost calculations.
  • Visualization: Includes a TUI (Terminal User Interface) and a visualization dashboard for tracking stats and daily summaries.

Related

  • Project
  • Project
  • Project
  • Project
  • Project