Problem
Large token counts (e.g., 1,234,567) are hard to scan visually in terminal output. Users would benefit from an option to display token counts in compact, human-readable format with K/M/B suffixes.
Proposed Solution
Add a --human / -H CLI flag to all report commands (daily, weekly, monthly, session, blocks) across all apps (ccusage, codex, opencode, amp, pi). When enabled, token counts would display as compact values:
| Raw |
Human-Readable |
| 1,234,567 |
1.23M |
| 500,000 |
500K |
| 2,500 |
2.5K |
| 999 |
999 |
Implementation Notes
- Use
Intl.NumberFormat with notation: 'compact' for standards-based formatting
- JSON output should remain unchanged (raw numbers always)
- Only affects table/terminal display
- The flag should be available across all apps, not just ccusage
Related
Problem
Large token counts (e.g.,
1,234,567) are hard to scan visually in terminal output. Users would benefit from an option to display token counts in compact, human-readable format with K/M/B suffixes.Proposed Solution
Add a
--human/-HCLI flag to all report commands (daily, weekly, monthly, session, blocks) across all apps (ccusage, codex, opencode, amp, pi). When enabled, token counts would display as compact values:Implementation Notes
Intl.NumberFormatwithnotation: 'compact'for standards-based formattingRelated