Tokscale

Badges for Tokscale — AI token usage, cost, rank, and active days from the global leaderboard.

Display live stats from Tokscale, the AI token usage leaderboard for developers using Claude Code, OpenCode, Codex, Cursor, Pi, and more.

tokens
Tokens (branded)
cost
Cost
rank
Rank (branded)
active days
Active days
stats
Global stats

Available badges

BadgeEndpointDescription
Tokens/tokscale/tokens/{username}Total token consumption
Cost/tokscale/cost/{username}Estimated total cost
Rank/tokscale/rank/{username}Global leaderboard rank
Active Days/tokscale/active-days/{username}Days with AI activity
Stats/tokscale/statsGlobal user count

The default endpoint /tokscale/{username} returns the token count.

Quick examples

![tokens](https://shieldcn.dev/tokscale/tokens/junhoyeo.svg)
![cost](https://shieldcn.dev/tokscale/cost/junhoyeo.svg?variant=branded)
![rank](https://shieldcn.dev/tokscale/rank/junhoyeo.svg)
![active days](https://shieldcn.dev/tokscale/active-days/junhoyeo.svg)

Finding your username

Your Tokscale username is your GitHub username. To appear on the leaderboard:

  1. Install the CLI: bunx tokscale
  2. Login: bunx tokscale login
  3. Submit your usage: bunx tokscale submit

Visit your profile at https://tokscale.ai/u/{username} to verify.

Data source

Uses the Tokscale API. Returns data from the user's profile including all-time stats. No API key required. Cached 10 minutes.