#2626th of 48 in Gateways and observability

tokscale

CLI and dashboard that tallies token usage and cost across AI coding agents

Stars
5.8k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Rust
Stars, last 29 weeks+3,807
21 Apr 2026: 2,025 stars28 Apr 2026: 2,285 stars5 May 2026: 2,556 stars12 May 2026: 2,805 stars19 May 2026: 2,979 stars26 May 2026: 3,163 stars2 Jun 2026: 3,395 stars9 Jun 2026: 3,528 stars16 Jun 2026: 3,692 stars23 Jun 2026: 3,834 stars30 Jun 2026: 3,957 stars7 Jul 2026: 4,107 stars14 Jul 2026: 4,315 stars21 Jul 2026: 4,440 stars28 Jul 2026: 4,614 stars4 Aug 2026: 4,725 stars11 Aug 2026: 4,845 stars18 Aug 2026: 4,965 stars25 Aug 2026: 5,097 stars1 Sept 2026: 5,175 stars8 Sept 2026: 5,297 stars15 Sept 2026: 5,383 stars22 Sept 2026: 5,459 stars29 Sept 2026: 5,530 stars6 Oct 2026: 5,597 stars13 Oct 2026: 5,642 stars20 Oct 2026: 5,697 stars27 Oct 2026: 5,746 stars3 Nov 2026: 5,791 stars10 Nov 2026: 5,832 stars

2,025 on 21 Apr 20265,832 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Tokscale is a Rust CLI, distributed on npm, that reads the local session files of dozens of AI coding agents and totals token usage and cost. Supported sources include Claude Code, Codex CLI, OpenCode, Gemini CLI, Copilot CLI, Cursor, Cline and LM Studio. It shows the results in a terminal UI with overview, model, daily, hourly and session views, and can submit them to a public leaderboard on tokscale.ai.

Who it is for: Developers using several AI coding agents who want to track token spend

Strengths

  • Reads local session files from 50+ coding agents, so no proxy or code changes are needed
  • Terminal UI with overview, models, daily, hourly and session breakdowns
  • Covers local inference sources like LM Studio and Unsloth Studio, costed at $0
  • MIT license, Rust core, frequent releases

Weaknesses

  • Some clients need a manual sync step first, such as Amp, Trae, Warp and Antigravity
  • Warp data is aggregate requests and spend only, with no token transcripts
  • Freebuff token usage is estimated from transcripts, not measured
  • Leaderboard submission sends usage data to a hosted service

What it needs

  • no GPU
  • Docker + Compose
  • Needs Bun or Node.js (npm package)
  • Models: Claude Code, Codex CLI, OpenCode, Gemini CLI, GitHub Copilot CLI

Quick answers

Is tokscale open source?

Yes. Its code is on GitHub under the MIT license.

Can you run tokscale with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Does tokscale need a GPU?

No, it runs without one.

Also in Gateways and observability

See all 48
Also in Gateways and observability
RankProjectScore
1OmniRouteLLM gateway routing one OpenAI-compatible endpoint across 372 providers86.5k starsMIT96 out of 100
2headroomCompresses tool outputs, logs and history before they reach the LLM79.4k starsApache-2.092 out of 100
3new-apiGateway that unifies LLM providers behind OpenAI, Anthropic and Gemini APIs51.8k stars+2,216 (+4.5%) in 30 daysAGPL-3.0known advisory in latest version91 out of 100
#4MLflowTracing, evaluation and prompt registry for LLM apps, plus ML tracking Live demo ↗ (opens in a new tab)28.8k stars+450 (+1.6%) in 30 daysApache-2.090 out of 100
#5LiteLLMOpenAI-format gateway and Python SDK for calling 100+ LLM providers63.1k stars+2,260 (+3.7%) in 30 dayscustom license87 out of 100