Usage Metrics Visibility for Max Subscribers
Feature Request: Usage Metrics Visibility for Max Subscribers
Description
As a Claude Max subscriber, I would like to retain the ability to view my usage metrics (time spent, input/output token count, conversation turns, etc.) even though I don't need to monitor costs. Currently, when using the /cost command as a Max subscriber, I only see:
With your Claude Max subscription, no need to monitor cost — your subscription includes Claude Code usage
Why This Matters
While I understand that Max subscribers don't need to worry about billing, these metrics are still valuable to me for:
- Developer productivity tracking: Quantifying my development time and efficiency
- Resource usage awareness: Understanding my token consumption patterns
- Workflow optimization: Identifying potential areas to improve my interaction with Claude Code
Suggested Implementation
Allow Max subscribers to view detailed usage metrics with a command such as /stats or an enhanced /cost that includes:
- Session duration
- Input/output token counts
- Number of conversation turns
- Commands executed
- Time saved (if possible to estimate)
Current Behavior
When using /cost as a Max subscriber, only a subscription reminder is shown without any metrics.
Requested Behavior
Even as a Max subscriber, I should be able to access detailed usage metrics that help me quantify and optimize my development workflow.
If you’d like to monitor usage while in Max mode (before Anthropic officially supports it), you can manually patch the CLI.
Go to your node_modules, find the claude-node directory, and open cli.js. Search for the string "With your Claude Max subscription". You’ll find a line like:
if (o3()) return "With your Claude Max subscription..."
Change it to something like:
if (o3()) return mg1()
This will allow the /cost command to return your current usage stats even while using Claude Max.
That said, there’s a minor issue: input tokens seem to increase by ~0.3k every time you run /cost, even when no other interactions happen. For example:
> /cost
⎿ Total cost: $0.0052
Token usage by model:
claude-3-5-haiku: 5.6k input, 181 output
> /cost
⎿ Total cost: $0.0055
Token usage by model:
claude-3-5-haiku: 5.9k input, 203 output
So while it’s helpful as a temporary workaround, be aware that input token count might not be entirely accurate.
That said, there’s a minor issue: input tokens seem to increase by ~0.3k every time you run /cost, even when no other interactions happen. For example:
> /cost ⎿ Total cost: $0.0052 Token usage by model: claude-3-5-haiku: 5.6k input, 181 output > /cost ⎿ Total cost: $0.0055 Token usage by model: claude-3-5-haiku: 5.9k input, 203 output
Seems that it's an intended behavior since some requests are performed under the hood, but I did not verify that.
See: https://docs.anthropic.com/en/docs/claude-code/costs
Command processing: Some commands like /cost may generate requests to check status
Today, after updating Claude Code, I found an interesting clue while trying to modify the "/cost" code. It might be that Claude Code will be opened up to Pro users in the next few days.
+1, I just switched to a max plan from AWS Bedrock and miss being able to check usage metrics :(
YES PLEASE! especially since claude code auto switches off OPUS and I have no idea what the usage looked like, and if its worth switching over to my api key to use it as needed. It would be great to see what the usage is to better understand consumption for things. and I also kind of feel like running through my claude max 20x usage in a couple days is something I should either be proud of or mad about, but I cant make an informed decision about that without usage info 😅
+1 we are in a token/context optimization game here. the subagents reporting their token usage is great but now we have no easy way to see how many tokens are being used by the primary one.
+1 , we need it
Hi there everyone! (@mindhunter77 @toby-andyintel @jriskin @mattgodbolt @SigismondPhilippe @ramarnat @hkarasek @C12345678901111 @0ttik @mattbnz @BnnQ @samuel-2018 @TimHolahan @cendenta @jonsampson @cassidymichael @fitz-vivodyne @minamijoyo @dasha-512 @davidlwg @JrPribs @pendrya @JEETDESAI25 @MingyuJeon @marco-altran @nicoburniske @0xdeafbeef @andrewesweet @alex-orlovskyi @Spectrum-Ian @brittlewis12 @vkryukov @faisalburhanudin @ArturoTorresMartinez @cyreb7 @garrettg123 @vanakema @FindingJohnny @jmapfm @dmitry-semenov @cyfranT @Anarios @jgrayla)
I added @XiaTiaoQAQ's excellent patch to tweakcc, an automated patcher for Claude Code that fixes several bugs and adds a variety of features to Claude Code. If you'd like to use /cost to get your session stats with your Pro/Max subscription right now, run npx tweakcc --apply. (Note that when CC is updated you'll need to apply the patches again.)
Before:
$ npm install -g @anthropic-ai/claude-code
changed 3 packages in 1s
2 packages are looking for funding
run `npm fund` for details
$ claude
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /home/user │
╰───────────────────────────────────────────────────╯
> /cost
⎿ With your Claude Max subscription, no need to monitor cost — your subscription includes Claude Code usage
After:
$ npx tweakcc --apply
Applying saved customizations to Claude Code...
Configuration saved at: /home/user/.tweakcc/config.json
Found Claude Code at: /home/user/n/lib/node_modules/@anthropic-ai/claude-code/cli.js
Version: 1.0.111
Applying customizations...
Customizations applied successfully!
$ claude
╭───────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code! │
│ │
│ /help for help, /status for your current setup │
│ │
│ cwd: /home/user │
╰───────────────────────────────────────────────────╯
> /cost
⎿ Total cost: $0.0000
Total duration (API): 0s
Total duration (wall): 3s
Total code changes: 0 lines added, 0 lines removed
Usage: 0 input, 0 output, 0 cache read, 0 cache write
$