Description
token-maxxing is a free and open-source modification (mod) for Claude Code that provides comprehensive insights into token usage and cost efficiency. This tool allows users to monitor their token consumption across different Claude models, including Opus, Sonnet, Haiku, and Fable, both for the current month and all-time.
Read More
A core feature of token-maxxing is its ability to calculate the API-equivalent cost of every reply. It prices local Claude Code transcripts using Anthropic's public API rates, factoring in input, output, cache writes, and cache reads. This gives users a clear understanding of the bill they would incur if they were using their own API key (BYOK) instead of a subscription.
Furthermore, token-maxxing helps users assess the return on investment (ROI) of their Claude subscription. By allowing users to set their plan price, the mod divides the API-equivalent cost by the amount paid, displaying a ratio. A ratio above x1 indicates that the subscription has paid for itself, shown in green, while a ratio below x1, shown in red, suggests otherwise.
The mod operates entirely locally, ensuring user privacy and data security. It reads Claude Code transcripts and maintains a small cache file (`~/.claude/token-maxxing/cache.json`) without making any network calls or accessing user accounts. This commitment to privacy means no data is sent externally.
token-maxxing is compatible with the Claude Code CLI, the Code tab of the Claude desktop app, and the VS Code extension, requiring Claude Code v2.1.287 or later (v2.1.286 in the desktop app). Beyond core tracking, it offers features like a monthly usage chart, a profile picture frame displaying ROI, and "Claude Code Wrapped" for sharing yearly token usage summaries.
- CategoryOther AI Tools
- Pricing ModelFree
- DeploymentRuns locally
- PlatformsClaude Code CLI, Claude Desktop App, VS Code Extension
token-maxxing's Core Features
Track Claude Code token usage per model (Opus, Sonnet, Haiku, Fable)
View token usage for the current month and all-time
Calculate API-equivalent cost at Anthropic's public prices (BYOK)
Include cache writes and reads in API cost calculations
Determine Claude subscription ROI based on plan price
Display ROI ratio: green for profitable, red for underperforming subscription
Operates 100% locally with no network calls
Compatible with Claude Code CLI, desktop app, and VS Code extension
Generates monthly token usage charts
Offers a profile picture frame with ROI display
Provides "Claude Code Wrapped" for yearly usage summaries
Free and open source (MIT license)
Supports setting custom plan prices for ROI calculation
Reads local Claude Code transcripts only
How to use token-maxxing?
Install the mod: In Claude Code, open a terminal and type `/plugin install token-maxxing --marketplace JCK-Sabords/token-maxxing`.
Access usage data: Type `/tokens` in the Claude Code terminal to view your token usage pane.
Configure subscription price: Set your plan price (e.g., 20, 100, 200) using `/plugin configure token-maxxing@token-maxxing` to enable ROI calculation.
Review metrics: Observe your token usage per model, API-equivalent cost, and subscription ROI in the displayed pane.
Share insights: Utilize features like the profile picture frame or Claude Code Wrapped to share your usage and ROI data.
token-maxxing's Use Cases
- Token Usage Monitoring
- API Cost Estimation
- Subscription ROI Analysis
- Performance Comparison
- Personal Productivity Insights
- Data Privacy Assurance



