aicoolies logo
Tokscale logo
Tokscale logo

Tokscale

CLI token usage tracker for AI coding agents

freeverified Aug 24, 2026

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.

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

Free AI token pricing calculator and model cost benchmarking platform ($0). Provides real-time pricing, prompt caching discounts, and throughput comparisons across 100+ LLM providers with zero software fees.

full pricing breakdown →

Platforms

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

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

Claude Code logo

Claude Code

Top Pick

Anthropic's agentic coding CLI

Anthropic's agentic CLI coding tool that delegates complex tasks to Claude directly from the terminal. Understands entire codebases via automatic context gathering, edits multiple files, runs shell commands, and manages Git workflows autonomously. Supports CLAUDE.md for persistent project instructions, integrates with VS Code and JetBrains, and uses Claude Opus/Sonnet with extended thinking for complex architectural decisions. Built for terminal-first developers.

freemium
Ghostty logo

Ghostty

Top Pick

Fast, native terminal emulator

GPU-accelerated terminal emulator written in Zig by Mitchell Hashimoto (HashiCorp co-founder). Native UI rendering on macOS and Linux. Supports ligatures, true color, Kitty graphics protocol, and splits/tabs. Configurable via a simple key-value file with sensible defaults. Open-source with 20K+ GitHub stars and a focus on correctness, speed, and minimal resource usage. Growing as a modern alternative to iTerm2, Alacritty, and WezTerm.

Open Source
Grok logo

Grok Build

Top Pick

xAI's terminal coding agent with parallel subagents and worktree-aware automation

Grok Build is xAI's terminal-first coding agent for planning, editing, testing, and reviewing code from a local CLI. The early beta exposes subagent controls, worktree mode, headless JSON output, best-of-N parallel attempts, sandbox profiles, and experimental memory. It fits developers comparing Claude Code, Codex, and Gemini CLI for local agentic workflows with deeper parallel execution.

paid
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

paid
Cilium logo

Cilium

eBPF-based networking, security, and observability for Kubernetes

Cilium is a CNCF Graduated, Apache-2.0 project for Kubernetes networking, security, and observability using eBPF. It can replace kube-proxy, enforce identity-aware L3-L7 network policies, and add Hubble flow observability plus Tetragon runtime-security signals. Current source checks support GKE Dataplane V2 using Cilium/eBPF and Azure CNI Powered by Cilium for AKS.

Open Source
OrbStack logo

OrbStack

Fast and lightweight Docker Desktop alternative for macOS

OrbStack is a macOS application that replaces Docker Desktop with lightweight container and Linux VM management. Its docs emphasize fast starts, lower CPU and memory overhead, and native macOS integration with menu bar controls, file sharing, and network access to containers by name, with exact gains depending on workload. Supports Docker, Kubernetes, and full Linux VMs.

freemium

Comparisons

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

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. Free AI token pricing calculator and model cost benchmarking platform ($0). Provides real-time pricing, prompt caching discounts, and throughput comparisons across 100+ LLM providers with zero software fees.

Is Tokscale still maintained?

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

What are the best Tokscale alternatives?

The top editor-verified Tokscale alternatives are LiteLLM, Portkey, Helicone.