shieldcn
Docs
Studio
Showcase
Sponsor
jal-co/shieldcn613
shieldcn

Member of the Vercel OSS Program

Analytics provided by OpenPanel

Monitored by Sentry

Powered by Neon.

Community

GitHubjal-co/uiStatsllms.txtPrivacyContact

Product

DocumentationAPI ReferenceToken PoolGeneratorAgent Skill

inspired by shields.io and badgen.net

Made with in by Justin Levine

shieldcn
Docs
Studio
Showcase
Sponsor
jal-co/shieldcn613

Search documentation

Search all badge providers, guides, and reference docs.

Getting Started

IntroductionREADME StudioCLIAgent SkillNewSelf-HostingAPI ReferenceToken PoolSponsor

Badges

Badge GroupStatic BadgeDynamic JSONHTTPS Endpoint
VS Code MarketplaceOpen VSXOpen CollectiveLiberapayWakaTimeWeblateModrinthTokscaleskills.shCountry Flags

Charts

OverviewStar history

Headers

OverviewGenerator

Sponsors

OverviewGenerator

Contributors

OverviewGenerator
shieldcn

Member of the Vercel OSS Program

Analytics provided by OpenPanel

Monitored by Sentry

Powered by Neon.

Community

GitHubjal-co/uiStatsllms.txtPrivacyContact

Product

DocumentationAPI ReferenceToken PoolGeneratorAgent Skill

inspired by shields.io and badgen.net

Made with in by Justin Levine

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 (branded)
Cost
Rank (branded)
Active days
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.

Endpoint details

Use these sections when you need the exact URL shape or a focused example for a specific badge type.

Tokscale Active Days

This section covers the tokscale/active-days badge endpoint.

Show how many days the user had at least one AI interaction.

GET/tokscale/active-days/:username.svg

Path Parameters

required
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/active-days/junhoyeo.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/tokscale/active-days/junhoyeo.svg?mode=light"></picture>
badge preview

URL format

/tokscale/active-days/{username}.svg

Examples

Default variant
Branded variant
Secondary variant
Outline variant

Copy-paste examples

Default — total days with AI activity

<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/active-days/junhoyeo.svg?mode=dark"><img alt="tokscale active days" src="https://shieldcn.dev/tokscale/active-days/junhoyeo.svg?mode=light"></picture>

Branded — Tokscale blue background

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

Tokscale Cost

This section covers the tokscale/cost badge endpoint.

Show the estimated total cost of AI token usage based on LiteLLM pricing data.

GET/tokscale/cost/:username.svg

Path Parameters

required
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/cost/junhoyeo.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/tokscale/cost/junhoyeo.svg?mode=light"></picture>
badge preview

URL format

/tokscale/cost/{username}.svg

Examples

Default variant
Branded variant
Secondary variant
Outline variant

Copy-paste examples

Default — estimated total cost

<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/cost/junhoyeo.svg?mode=dark"><img alt="tokscale cost" src="https://shieldcn.dev/tokscale/cost/junhoyeo.svg?mode=light"></picture>

Branded — Tokscale blue background

![tokscale cost](https://shieldcn.dev/tokscale/cost/junhoyeo.svg?variant=branded)

Tokscale Rank

This section covers the tokscale/rank badge endpoint.

Show the user's position on the Tokscale global leaderboard.

GET/tokscale/rank/:username.svg

Path Parameters

required
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/rank/junhoyeo.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/tokscale/rank/junhoyeo.svg?mode=light"></picture>
badge preview

URL format

/tokscale/rank/{username}.svg

Examples

Default variant
Branded variant
Secondary variant
Outline variant

Copy-paste examples

Default — global leaderboard position

<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/rank/junhoyeo.svg?mode=dark"><img alt="tokscale rank" src="https://shieldcn.dev/tokscale/rank/junhoyeo.svg?mode=light"></picture>

Branded — Tokscale blue background

![tokscale rank](https://shieldcn.dev/tokscale/rank/junhoyeo.svg?variant=branded)

Tokscale Tokens

This section covers the tokscale/tokens badge endpoint.

Show the total number of tokens consumed across all AI coding agents.

GET/tokscale/tokens/:username.svg

Path Parameters

required
<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/tokens/junhoyeo.svg?mode=dark"><img alt="badge" src="https://shieldcn.dev/tokscale/tokens/junhoyeo.svg?mode=light"></picture>
badge preview

URL format

/tokscale/tokens/{username}.svg
/tokscale/{username}.svg

Both formats return the same badge. The default endpoint shows token count.

Examples

Default variant
Branded variant
Secondary variant
Outline variant

Copy-paste examples

Default — total token consumption

<picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/tokscale/tokens/junhoyeo.svg?mode=dark"><img alt="tokscale tokens" src="https://shieldcn.dev/tokscale/tokens/junhoyeo.svg?mode=light"></picture>

Branded — Tokscale blue background

![tokscale tokens](https://shieldcn.dev/tokscale/tokens/junhoyeo.svg?variant=branded)

On This Page

Available badgesQuick examplesFinding your usernameData sourceEndpoint detailsTokscale Active DaysURL formatExamplesCopy-paste examplesTokscale CostURL formatExamplesCopy-paste examplesTokscale RankURL formatExamplesCopy-paste examplesTokscale TokensURL formatExamplesCopy-paste examples