Free and open source
One command reads the usage logs Claude Code, Codex, Copilot CLI and other agents already keep on your machine, and prices every model at API rates. See what your Claude plan is really worth. No signup to try it, and your usage never leaves your machine.
Connect an account when you want more: a dashboard by agent and model, a monthly plan-value receipt, and a place in the shared picture of what AI actually costs.
npx mytokentracker
Needs Node.js 20 or later. Free, with no paid plans. Your data is yours.
7 developers tracked their AI usage here in the last 7 days 60.2B tokens in the shared community data, last 30 days
Coding agent spend this month, at API prices
$184.20
Claude Code
claude-opus-4-5
Claude Code
claude-sonnet-4-5
Codex
gpt-5-codex
Copilot CLI
claude-haiku-4-5
Illustrative sample data. Yours comes from the usage logs your agents already keep.
Coding agents sync with one command. Your own apps take one SDK line or one API call.
Why it exists
You are paying for Claude, ChatGPT, and raw API calls, each in its own dashboard, none of them talking to each other. MyTokenTracker is the one place that answers a simple question: what is AI actually costing me, and on what?
Claude Code, Codex, Copilot CLI, Antigravity and more in one table, plus OpenAI, Anthropic, Gemini, Mistral and any other provider from your own apps through the events API or a drop-in SDK wrapper.
Your subscription hides what your usage would cost at API prices. The plan-value receipt puts the two side by side, so you know whether Max is paying for itself.
Run the numbersWatch your usage against plan limits, and track a price-hike radar so the next increase is never a surprise.
Leaderboard
A public leaderboard of real AI usage. Rank by tokens or spend, climb a streak, and share a profile card that shows your tokens, cost, favorite model, and a full activity heatmap. Opt in anytime, it is free.
A taste. The real board is live and growing.
Ship it fast
Next.js · Stripe
AI Resume
React · OpenAI
PriceSpy
Laravel · Claude
VoiceNote
Python · Whisper
Preview images auto-fetched — no upload needed.
Builder Showcase
Your public builder profile shows your real AI usage alongside the projects you ship. Add a URL and we automatically grab a preview image — no screenshot, no upload. Then your work is discoverable in our growing community showcase.
mytokentracker.io/u/youHow it works
Try it, no account
npx mytokentracker prints what your coding agents cost over the last 30 days, by day, agent and model. Nothing is installed and nothing is uploaded.
Connect an account
npx mytokentracker init uploads the history your agents still hold, then syncs every 30 minutes in the background (launchd on macOS, cron on Linux, a Task Scheduler job on Windows).
See exactly what it costs
Your dashboard fills with spend by agent and model, with your plan-value receipt, weekly trends and budgets. For your own apps, add a Python or Node wrapper or post to the events API.
# See what your coding agents cost (no account)
npx mytokentracker
# Is your $200 Max plan paying for itself?
npx mytokentracker --plan 200
# Track it over time (with an account)
npx mytokentracker init
# Any app, Python
track_openai(client.chat.completions.create(...))
Get startedSign in with GitHub, Google, Microsoft or a magic link. No password.
We are a team
No one truly knows what AI costs in the real world, across tools, models, and the way people actually work. So we are figuring it out together. Your usage joins an anonymized, aggregate picture, and the more of us who track, the clearer that picture gets for everyone.
Anonymized and aggregate only. No names, no projects, no individual numbers. You can opt out anytime.
Explore the community dashboardRun npx mytokentracker in a terminal. It reads the usage logs Claude Code already keeps on your machine and prints the last 30 days by day, agent and model, priced at API rates. No account, nothing to install, and your usage never leaves your machine.
Claude Code, Codex, GitHub Copilot CLI, Antigravity, OpenCode, Amp, Qwen Code and more. The CLI is built on the open source ccusage, so it reads every agent ccusage reads. For your own apps, the events API and drop-in Python and Node wrappers track OpenAI, Anthropic, Gemini and any other provider.
Run npx mytokentracker --plan 200 (or 100, or 20) and it compares what your usage would have cost at API prices with what you pay for the plan. With an account, the plan-value receipt does this for you every month and makes a shareable card.
Nothing until you run npx mytokentracker init with an account. After that it syncs daily totals per agent and model every 30 minutes: token counts and cost. Never prompts, code, file names or project contents.
Yes. Free, forever. There are no paid plans. The CLI is open source on GitHub and npm.
At current API list prices from our daily-synced catalog of 3,989 priced models. If you send a real cost through the events API we store it as actual, otherwise we label it estimated, so a guess never reads as a fact.
Yes. Ask your coding agent to run npx mytokentracker, or point it at mytokentracker.io/llms.txt and it will find the CLI, the events API and the wrappers.
Only if you leave the leaderboard on. Synced accounts show aggregate stats and your GitHub profile (name, handle, avatar) on the public leaderboard by default. We never show prompts, project names or file paths, and you can turn it off anytime in Settings.
Guides: Is Claude Max worth it? · Claude Code cost · Codex cost · vs ccusage
From the blog
Cost per million tokens is the only sane way to compare LLMs. Here’s how to calculate it, read it, and track it in real...
Reasoning tokens are the hidden line item in agent bills. Here’s how they work, when they matter, and how to track them.
A receipt for your AI plan: every model priced at API rates, your plan's cost subtracted, and an honest multiple. Plus a...
Free weekly digest
One email a week: what AI cost this week, the biggest price moves, and where it is all heading. Free, no account needed. Unsubscribe in one click.
One command, no signup, nothing leaves your machine. Connect an account when you want the dashboard and the receipt.