How TokenFlexing works
Three things make up the system: a local scanner (the CLI), a cloud sync API, and a public dashboard + leaderboard. None of them read your prompts or completions — only the usage blocks the AI tools themselves write to disk.
Deeper references
- Full README ↗ — repo overview, architecture, env setup.
- CLI README ↗ — every command, flag, and integration point.
- npm package ↗
Deep API docs (REST + MCP) ship with the v2 leaderboard release. Until then the READMEs above are the source of truth.