You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add subscription usage data to statusline context #20413
I have searched existing requests and this feature hasn't been requested yet
This is a single feature request (not multiple features)
Problem Statement
The statusline hook currently receives context data (model info, context_window usage, cost data) but does NOT include subscription usage information. Users with Claude Max/Pro subscriptions cannot monitor their usage percentage or reset time in their custom statusline without manually running the /usage command.
Proposed Solution
Add subscription usage fields to the statusline context JSON that is passed to custom statusline scripts:
subscription_usage.percentage - Current usage percentage of subscription limit (0-100)
subscription_usage.reset_timestamp - ISO timestamp when the usage resets
subscription_usage.plan_tier - Plan name (e.g., "Max", "Pro")
subscription_usage.messages_used - Number of messages used (optional)
subscription_usage.messages_limit - Total message limit (optional)
Alternative Solutions
No response
Priority
Low - Nice to have
Feature Category
Developer tools/SDK
Use Case Example
I have a custom statusline script (~/.claude/statusline-command.sh) that displays model name, git branch, and context usage. I want to also display my subscription usage like:
[Opus] main | 42% subscription | resets in 3d 5h
This would let me monitor my Claude Max usage at a glance without interrupting my workflow to run /usage manually.
Additional Context
The infrastructure already exists - the statusline hook receives rich JSON context including cost and context_window data. Adding subscription data would be a natural extension. This is particularly valuable for Max/Pro subscribers who have monthly message limits and want to pace their usage throughout the billing period.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
nsanden commentedon Jan 29, 2026
https://github.com/nsanden/claude-rate-monitor
danaug23 commentedon Feb 2, 2026
I also would like to see this functionality. Thank you
shane-nzer commentedon Feb 27, 2026
Until they add this for subscription users, I wrote one that integrates with ccstatusline:
https://github.com/shane-nzer/claude-subscription-usage
claude commentedon Apr 26, 2026
This is a duplicate of #18121, which was fixed as of version 2.1.80.
github-actions commentedon May 4, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.