Skip to content
aicoolies logo
Tokscale logo

Tokscale

CLI token usage tracker for AI coding agents

Tokscale is a CLI tool that tracks token usage and costs across AI coding agents including Claude Code, Codex, OpenCode, Gemini CLI, Cursor, and more. Built with a native Rust core for high-performance processing, it provides detailed breakdowns of input, output, cache, and reasoning tokens with real-time pricing calculations via LiteLLM data. Features include interactive 2D/3D contribution graphs, web visualization dashboards, global leaderboards, and JSON export for cost analysis.

About Tokscale

Tokscale brings visibility to the often-opaque world of AI coding agent costs. As developers adopt tools like Claude Code, Codex, Gemini CLI, and Cursor, token consumption can escalate quickly without clear insight into where the spend is going. Tokscale reads JSONL conversation logs from these tools and breaks down usage into input, output, cache read, cache write, and reasoning tokens with precise cost calculations using LiteLLM pricing data.

The tool is built with a native Rust core that delivers processing speeds roughly ten times faster than pure JavaScript alternatives, making it practical even for developers with months of accumulated conversation logs. A web-based visualization layer renders interactive contribution graphs in both 2D and 3D, along with filterable dashboards that help identify the most expensive sessions, models, and time periods. JSON export supports integration with spreadsheets or BI tools for deeper analysis.

Beyond individual tracking, Tokscale includes community features like a global leaderboard where developers can compare token usage and a profile system with contribution statistics. The tool supports flexible time-period filtering covering all-time, monthly, and weekly views. For teams and individuals looking to optimize their AI tooling budgets, Tokscale provides the data foundation needed to make informed decisions about which models and agents deliver the best value for their workflows.

Pricing & Platform Specs

Pricing Summary

Tokscale is a free, open-source CLI and TUI tool licensed under MIT that monitors local token consumption, model costs, and multi-agent AI coding sessions without requiring cloud subscriptions or private API keys.

Supported Platforms

CLI tool (Rust/Node.js), cross-platform

Explore categories, tags & use cases

Unified API proxy for 100+ LLMs

Drop-in OpenAI-compatible proxy supporting 100+ LLM providers with load balancing, spend tracking, rate limiting, and fallback routing. Acts as a unified gateway for all your AI model calls, letting teams switch between providers, enforce budgets, and add reliability layers without changing application code. Essential infrastructure for multi-model AI architectures.

Open Source

AI gateway with observability, routing, and guardrails

Portkey is an AI gateway and observability platform providing a unified API for 200+ LLM providers with intelligent routing, caching, rate limiting, and guardrails. Route requests across OpenAI, Anthropic, Google, and more with automatic failover, load balancing, and cost optimization. Features request logging, prompt management, evaluation tools, and real-time monitoring. The open-source gateway can be self-hosted; Portkey Cloud adds managed observability and team features.

freemiumOpen Source

Open-source LLM observability through a single-line proxy

Helicone is an open-source LLM observability and AI gateway platform with proxy-based request logging, cost tracking, latency monitoring, caching, rate limits, user analytics, prompt tools, and HQL. It supports OpenAI, Anthropic, Azure, LiteLLM, Anyscale, Together AI, and OpenRouter integrations, and now presents itself as part of Mintlify while continuing managed and self-hosted gateway/observability workflows.

freemiumOpen Source

Side-by-Side Comparisons

CodeBurn logo
CodeBurn
vs
Tokscale logo
Tokscale

CodeBurn vs Tokscale: Which AI Coding Cost Tracker Wins?

CodeBurn and Tokscale are local-first, open-source tools for understanding token use and cost across AI coding agents. Both read data produced by tools such as Claude Code, Codex, Cursor, Gemini, and OpenCode, then apply model pricing without forcing requests through a proxy. CodeBurn is the stronger overall choice for buyers who want cost diagnostics tied to projects, tasks, retries, cache behavior, and shipped work. Tokscale is attractive when a fast Rust TUI, a very broad client matrix, contribution-style visualizations, and optional social leaderboards are the priority.

CodeBurnTokscale

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Tokscale?

Tokscale is a CLI tool that tracks token usage and costs across AI coding agents including Claude Code, Codex, OpenCode, Gemini CLI, Cursor, and more. Built with a native Rust core for high-performance processing, it provides detailed breakdowns of input, output, cache, and reasoning tokens with real-time pricing calculations via LiteLLM data. Features include interactive 2D/3D contribution graphs, web visualization dashboards, global leaderboards, and JSON export for cost analysis.

Is Tokscale free?

Yes — Tokscale is free to use. Tokscale is a free, open-source CLI and TUI tool licensed under MIT that monitors local token consumption, model costs, and multi-agent AI coding sessions without requiring cloud subscriptions or private API keys.

Is Tokscale open source?

Yes — Tokscale is open source.

Is Tokscale still maintained?

Yes — Tokscale is active. Its listing was last verified on August 26, 2026.

What are the best Tokscale alternatives?

The first editor-selected Tokscale alternatives are LiteLLM, Portkey, Helicone.