Website · npm · Docs · llms.txt · Example
Every AI token you spend, across Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Copilot and more, on every machine, as one API. Stored in a repo on your own GitHub. Free, no account.
Ask your agent:
Install tokentracker for me: run
npx @bicrick/tokentracker init
Or run it yourself (Node 22.13+; you'll sign in to GitHub with a code):
npx @bicrick/tokentracker initAsk your agent:
How many tokens did I use this month, and on which models? Use my tokentracker API.
Agents get everything they need from llms.txt and AGENTS.md. People can read the docs.
curl https://<github-username>.github.io/tokentracker-data/api/v1/stats.jsonMIT