Skip to content

Your year of AI coding, one square a day. Right on your GitHub profile.

tokengraph reads the usage logs your coding agents already keep and turns them into a graph for your README, a live view in your terminal, and story cards for your phone.

npx tokengraph
Star on GitHub(opens in a new tab)
  • Nothing to sign up for
  • No server
  • Your data stays on your machine
  • MIT
713.4Mtokens, last 52 weeks
260 active days
  • Claude
  • Gemini
  • GPT
  • Qwen
  • DeepSeek
  • GLM
  • Kimi
MonWedFri
LessMore
Thu 23 Apr7.3M tokensmostly Geminigemini-3-pro57%gemini-2.5-flash30%claude-sonnet-511%claude-haiku-4-52%

A year of a (made-up) developer, coloured by the model family that did the most work each day.

Reads the usage logs of

  • Claude Code
  • Codex CLI
  • Cursor
  • Gemini CLI
  • Cline
  • OpenCode
  • Kilo CLI
  • Copilot CLI
  • pi
  • Qwen Code
  • Goose

Three commands. Then it runs itself.

Step 1 of 3: Run it. No install, no login. It reads your agents’ logs and opens a live view.

No install, no login. It reads your agents’ logs and opens a live view.

$ npx tokengraph
tokengraph              local only

THIS WEEK  30.6M
STREAK     3 days

Top models · 30 days
claude-sonnet-5 31.0M 36%
claude-opus-5-5 22.4M 26%
claude-haiku-4-5 15.7M 18%
gemini-3-pro 5.9M 7%
octocat / README.md

Hi, I’m @octocat. Here’s what my agents burned this year:

The tokengraph README graph for the sample developer, in the light themeThe tokengraph README graph for the sample developer, in the dark theme

It lands in your profile README.

tokengraph readme prints the snippet and copies it. The graph follows the reader’s light or dark theme and stays current by itself.

What tokengraph readme prints (example)
<a href="https://github.com/altindalorcun/tokengraph"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://gist.githubusercontent.com/octocat/a1b2c3d4e5f6a7b8c9d0/raw/tokengraph-dark.svg"> <img alt="My AI coding token usage, made with tokengraph" src="https://gist.githubusercontent.com/octocat/a1b2c3d4e5f6a7b8c9d0/raw/tokengraph-light.svg"> </picture> </a>

Your numbers, in your terminal.

tokengraph opens a live view of every agent and model, right where you work.

  • 713.4Mweighted tokens, last 52 weeks
    • Input ×1
    • Output ×1
    • Cache write ×1
    • Cache read ×0.1

    One weighted total across every agent

    Cache reads are cheap, so they count for a tenth and everything else in full. One number you can compare from day to day, whichever agent did the work.

    • Claude28%
    • Gemini23%
    • GPT21%
    • Qwen10%

    Which model family ate your year

    Your usage split by model family, and underneath it every model on its own with the raw input, output and cache counts.

  • 3-day streak · best day 10.3M on 9 Oct

    Daily rhythm and streaks

    The last 14 days as bars, your streak and your best day: the numbers behind every square in the graph.

Previews use a made-up sample developer, not real data.

Your day, ready for your story.

Post your tokens to Instagram or TikTok: your weeks as a city of towers with today lit up, a receipt of the models you ran, or a transparent sticker for a photo of your desk. Same numbers as your graph.

  • The Receipt story card: a receipt of the models you ran, one line each, sample data
    Receipt
  • The Skyline story card: the weeks as a city of towers with today lit up, sample data
    Skyline
  • The Sticker story card: a transparent sticker laid over a photo of a desk, sample data
    Sticker
npx tokengraph story
tokengraph story today · @octocat✓ Skyline✓ Receipt✓ Sticker
A QR code that opens the tokengraph repository on GitHub

Scan it — this one opens the repo

📱 Phone connected✓ Skyline downloaded
  1. Run npx tokengraph story.
  2. Scan the code with your phone on the same Wi-Fi.
  3. Save to Photos and post. Nothing is uploaded anywhere.

Where your data goes.

Get your graph in a minute.

One command, nothing to sign up for.

npx tokengraph
Star on GitHub(opens in a new tab)