[FEATURE] add `extra_usage` to statusline callback info
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
As many of us are switching to pay-per-token/enterprise setup to keep using Fable, API/programmatic use etc, it would be very useful to be able to track this in our claude code statusline.
Right now, only subscription rate limits data is available in the callback input.
Proposed Solution
Add theextra_usage info info that is available on the usage API to the statusline callback would be the easiest solution, as it also seems to include enterprise limits.
Example:
"extra_usage": {
"is_enabled": true,
"monthly_limit": 50000,
"used_credits": 0.0,
"utilization": null,
"currency": "USD",
"disabled_reason": null
}
Alternative Solutions
I don't think there are any, except possibly going back to the old barely working method of hijacking the oauth token and calling the usage API at very low rates.
Priority
Medium - Would be very helpful
Feature Category
Interactive mode (TUI)
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗