Tokscale – Track token usage across AI coding agents

Monitor token consumption and costs for multiple AI coding agents from your terminal, with a global leaderboard.

Stars
★ 5.9k
Last updated
today v4.24.0
FARS reviewed
Nov 08, 2026 +5 new
License
MIT
Primary language
Rust

At a glance

How it runs
CLIWeb app
Works with
Universal · cross-platformChatGPT · Codex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js or BunRust toolchain (optional)Shell / CLINetwork accessLocal filesystem
Typical use
A developer wants to monitor their token usage across Claude Code and OpenCode to optimize costs.
Not a fit if
  • Teams that need fully offline operation without reading local session files
  • Users unwilling to log in or sync accounts for Cursor, Trae, or Warp integrations
  • Users needing official support for clients without public APIs, such as Trae CN
Website
tokscale.ai ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v4.24.0 (2026-12-02)+4.6 ★/day over 7 days
Source review
70/100 · Some gaps

What does this agent do, and when should you use it?

Tokscale is a high-performance CLI tool and visualization dashboard that tracks token usage and costs across a wide range of AI coding agents, including OpenCode, Claude Code, Codex CLI, Cursor IDE, Gemini CLI, and more than 40 others. It reads local session files or databases from these agents, computes costs in real time using LiteLLM pricing data, and presents the information through an interactive TUI, a lightweight table mode, JSON exports, contribution graphs, and task-attributed reports. The tool also offers a social platform where users can submit their usage data to a world leaderboard and create public profiles, along with a web frontend for 2D/3D visualization and a 'Wrapped 2025' annual review feature. The core parsing and aggregation are implemented as a native Rust module for up to 10x faster processing. Tokscale is open-source under the MIT license.

Tokscale scans local storage of supported AI coding agents (e.g., Claude Code, OpenCode, Codex, Gemini CLI) to read session transcripts, databases, or exported CSV files. It parses token counts for input, output, cache read/write, and reasoning, then calculates costs using LiteLLM's pricing data with fallbacks to OpenRouter and Cursor pricing. The CLI provides commands like tokscale (TUI), tokscale --light (table), tokscale models, tokscale monthly, and tokscale --json for export. It also offers pricing for model cost lookup, graph for contribution graph data, report for task-attributed summaries (using external LLMs), usage for subscription quotas, and login/submit/autosubmit for leaderboard submission. For specific integrations, it has cursor login/sync, antigravity sync, trae sync, and warp sync commands. The frontend visualizes data on a web dashboard with a 3D contributions graph.

  1. A developer wants to monitor their token usage across Claude Code and OpenCode to optimize costs.
  2. A team lead needs to compare costs between different coding agents and review usage statistics across members.
  3. A developer wants to submit their usage data to the global leaderboard to compete and create a public profile.
  4. A user wants to generate a task-attributed report to understand which projects consumed the most tokens.
  5. A developer prefers a lightweight terminal dashboard without opening a browser to quickly check usage.
  6. A researcher wants to export detailed usage data in JSON format for further analysis and visualization.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx tokscale@latest
  • bunx tokscale@latest

How do you install or deploy this agent?

Quick start: run npx tokscale@latest or bunx tokscale@latest directly without installation. Also works with deno x npm:tokscale@latest. Requires Node.js or Bun. For source installation, clone the repository, run bun install and bun run build:core (Rust toolchain required).

How do you use this agent?

Basic commands: run tokscale to launch the interactive TUI, or tokscale --light for table output. Use tokscale models for model view, tokscale monthly for daily view, and tokscale --json to export JSON. Filter by client with --client opencode, and set date ranges with --since and --until. Look up prices with tokscale pricing "model-name", log in with tokscale login, and submit data with tokscale submit.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Supports over 40 AI coding agents, covering a wide range of tools.
  • Real-time pricing using LiteLLM data with tiered pricing and cache discounts.
  • Native Rust core provides ~10x faster processing.
  • Multiple interfaces: interactive TUI, lightweight table, and JSON export.
  • Social leaderboard feature allows sharing and competition, with public profiles.
Limitations
  • Requires reading local filesystem data from each agent, which may raise privacy and permission concerns.
  • Many features (e.g., Cursor, Trae, Warp integrations) require login and sync, adding configuration and network steps.
  • Task-attributed reports depend on external LLMs like Apple FM, Claude, or Codex, requiring their installation and authentication.
  • Some agents (e.g., Trae CN) are unsupported due to missing official APIs.
  • Subscription usage is vendor-reported and may not always be accurate or consistent.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Tokscale – Track token usage across AI coding agents This agent 70 · Some gaps CLIFree ★ 5.9k today Rust ChatGPT · Codex · Claude Code
ccusage 66 · Some gaps — ★ 20k today Rust Codex · Claude Code
AgentTrace 74 · Some gaps — ★ 159 1mo ago Rust Codex · Claude Code
ccxray 76 · Good CLIFree + model costs ★ 296 7d ago JavaScript Claude Code · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
70/ 100 5-point scale 3.5 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 5 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 14/29
Reliability 9/14
Adaptability 15/18
Convention 15/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust14 / 29 · 2.4/5

The CLI primarily reads local session files and databases from multiple agents. The README lists data paths, some source-specific reading behavior, and cache locations, while the CLI exposes an offline option. The product also offers login, sync, usage submission, and a public leaderboard; some sync paths use APIs, browser authentication, or local credentials. The packet does not explain per-action confirmation, permission scope, or the full data flow for all such operations, so these criteria are not full marks. The dependency list and TLS configuration are detailed, but the packet provides no dependency vulnerability review. Recovery or deletion procedures are also not sufficiently documented in the supplied material. The README attributes tracked clients and pricing data sources; publisher identity remains unknown as instructed.

Reliability9 / 14 · 3.2/5

The CLI wrapper selects a native binary by platform and gives a build hint before exiting when it cannot find one. Cargo lists dependency version ranges, and the source exposes offline and cache behavior. The README, CLI options, and workflow are broadly consistent, though the client and version information is distributed and may change over time; static evidence cannot establish runtime correctness. The missing-binary path has a clear message, but the supplied scope does not show complete handling for failures across all platforms and services.

Adaptability15 / 18 · 4.2/5

The product targets users who want to aggregate usage across AI coding tools and offers an interactive TUI, light table output, JSON, filters, offline use, cross-platform support, and many sync scenarios. The README also records limitations, including estimated usage from transcript text, sources that provide request totals only, and tool-specific model or path constraints. However, support boundaries are spread across a large client list, and the supplied code does not fully show trigger conditions and permission details for many features, so full marks are not justified.

Convention15 / 18 · 4.2/5

The README has a table of contents, feature descriptions, installation steps, command examples, configuration and environment variable sections, and an MIT license. The repository also includes version metadata and release workflow guidance. AGENTS.md mainly contains contributor maintenance, commit, and release instructions, so it is not treated as product instructions for end users. The README explains package structure and source build requirements, earning strong installation support. The version and change history evidence is incomplete; naming and the multi-format client list create maintenance overhead. Releases are manually triggered and publish directly to npm latest. The release path is described, but maintenance responsibility is not fully developed.

Effectiveness12 / 13 · 4.6/5

The product aggregates token, model, session, date, and pricing usage across local agents into a TUI, tables, JSON, and shareable material. Its outputs and comparison use cases are clear, and the README describes filters, grouping, and export. It can be launched directly with npx, bunx, or Deno, while some advanced features require network access, authentication, or extra sync. Ongoing costs and the practical value of submitting data are not fully quantified, so cost-benefit is not full marks.

Verifiability5 / 8 · 3.1/5

The README's main interfaces and data sources have partial counterparts in the CLI options, wrapper, Cargo manifest, and CI workflows, providing some traceability and cross-file corroboration. The coverage badge and workflows indicate testing or build processes, but the supplied excerpts cannot verify all README performance, accuracy, and safety claims. The documentation states concrete facts and limitations alongside promotional performance and leaderboard claims; the packet does not independently verify each claim, so full marks are not warranted.

Risks and how to mitigate them
  • The tool reads session files and databases from multiple local agents. Before using sync, login, or submission features, check which data those features access or upload.
  • Usage accuracy and coverage vary by source; some sources estimate from text or provide aggregate data only, and pricing may depend on external catalogs.
  • This static assessment uses only the supplied file excerpts; it did not execute the program or independently verify performance, data accuracy, or dependency security.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 82613d2f5e96 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/tokscale.svg)](https://followagents.com/en/agents/tokscale)
<a href="https://followagents.com/en/agents/tokscale"><img src="https://followagents.com/badge/tokscale.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v4.24.0
    Release notes excerpt
    <div align="center"> [![Tokscale](https://github.com/junhoyeo/tokscale/raw/main/.github/assets/hero-v3.png)](https://github.com/junhoyeo/tokscale) [email protected] is here! </div> What's Changed * fix(lint): make clippy pass on Windows by @The-Minion-oOo in https://github.com/junhoyeo/tokscale/pull/1669 * feat(profile): add custom date range filter to public profiles by @Musicminion in https://github.com/junhoyeo/tokscale/pull/1662 * feat(profile): track and display period-scoped submission counts by @Freakyskittle in https://github.com/junhoyeo/tokscale/pull/1673 …
    View on GitHub ↗
  2. v4.23.1
    Release notes excerpt
    <div align="center"> [![Tokscale](https://github.com/junhoyeo/tokscale/raw/main/.github/assets/hero-v3.png)](https://github.com/junhoyeo/tokscale) [email protected] is here! </div> - Price gpt-6.2 Astra and Sol requests above 272k input tokens at the long-context rate for the whole request. - Count Zed threads that run on a ChatGPT subscription. - Show saved Pi session names in the Sessions view. - Report an unreadable Claude Keychain item in the Usage view instead of hiding Claude. - Recover Kimi Code response timing from native step events. …
    View on GitHub ↗
  3. v4.23.0
    Release notes excerpt
    <div align="center"> [![Tokscale](https://github.com/junhoyeo/tokscale/raw/main/.github/assets/hero-v3.png)](https://github.com/junhoyeo/tokscale) [email protected] is here! </div> - Add [Capy](https://capy.ai) usage sync, including subscription-routed usage that has no local session log. - Track Capy in reports, the TUI, submissions, and the website. - Preserve hourly/day bucket totals and isolate cached usage by the active API key and user filter. - Treat Capy usage buckets as aggregates for per-message moderation; daily and lifetime limits still apply. What's Changed …
    View on GitHub ↗

FAQ

What platforms does Tokscale support?
Tokscale supports Windows, macOS, and Linux, but some features like Antigravity sync are macOS/Linux only.
How is data privacy handled?
Tokscale primarily reads local files, and data is not uploaded unless you explicitly submit to the leaderboard. You can use filters to control what is submitted.
How is pricing calculated?
Pricing uses LiteLLM data with a 1-hour disk cache, falling back to OpenRouter and Cursor pricing for new models. You can also override prices via custom-pricing.json.
Which coding agents are supported?
Supported agents include OpenCode, Claude Code, Codex CLI, Gemini CLI, Cursor IDE, Amp, Codebuff, Droid, OpenClaw, Hermes, Copilot, and many more. See the documentation for the full list.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts