Skip to content

Latest commit

 

History

99 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tokmax

How much would your AI coding cost at API prices? You're on a Codex / Claude Code subscription — tokmax reads your local usage logs, works out what the same tokens would have cost at pay-as-you-go API prices, and turns it into a shareable page + a public leaderboard.

npx tokmax

It scans your logs, shows your number in the terminal, and publishes your page at tokmax.dev/your-handle. Screenshot it, drop it in a chat, climb the board. Sign in with X and every machine you code on merges into one combined total.

Only numbers ever leave your machine — never your prompts, code, API keys, or raw logs. It's open source so you can check that yourself.

  • 🔗 Dashboard & leaderboard: https://tokmax.dev
  • Try it: npx tokmax · options: npx tokmax --help
  • 🗑️ Your data, your call: npx tokmax daily off · npx tokmax delete

Repo layout (for contributors)

  • cli/ — the open-source tokmax CLI (the npm package): reads local JSONL logs, computes the API-equivalent locally/offline, publishes only aggregates. See cli/README.md.
  • web/ — Next.js + Convex: public profile pages, the leaderboard, and the hardened ingest endpoint. A separate Convex project, isolated from the main site.

Prices: LiteLLM · Counting: ccusage · License: MIT.

About

What would your AI coding subscription cost at API prices? npx tokmax reads your local usage logs and puts your number on a public leaderboard. Only aggregates leave your machine.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages