tokenmaxing
v0.1.0
Published
Terminal AI usage wrapped summary for Claude Code and Codex.
Maintainers
Readme
tokenmaxing
tokenmaxing is a local-only, read-only terminal summary for Claude Code and Codex usage — your AI usage, wrapped.
It scans:
- Claude Code:
~/.claude(or$CLAUDE_CONFIG_DIR) for usage stats and transcripts, plus project.claudedirectories under your home directory. - Codex:
~/.codex(or$CODEX_HOME).
It renders, one section at a time:
- Total messages by source
- Per-month token usage
- Burn — local spend cache when present, otherwise a clearly marked list-price estimate
- All-time token usage
- Token usage summary
- Input/output token comparison
- Model token comparison
- Model standing by input + output tokens
- Most active time of day (messages per hour)
- Daily activity matrix (contribution-graph style)
Every count and token figure comes from locally recorded data. The only estimated values are in the burn panel, marked with ≈.
Run
npx tokenmaxingOr from a clone:
npm startIn a terminal the report reveals one section at a time, with a [NN/total] progress counter. Each section decodes in with a brief scramble-resolve animation.
enter/space/→— next section←/b— replay the previous sectiona— show all remaining sectionsq/ctrl-c— quit
Provider colors are categorical: Claude is orange, Codex is cyan, the combined total is amber — so any bar, model row, or table line maps to its source at a glance.
Piped or redirected output prints everything at once without colors or animation.
Privacy
The CLI reads local metadata and transcripts to compute usage, but the report does not print prompt text, model responses, tool outputs, credentials, or file contents. Nothing leaves your machine — there is no network call anywhere in the tool.
