Feature Request: Expose billing session usage in statusline JSON payload
Resolved 💬 4 comments Opened May 11, 2026 by hdmartinezm Closed May 12, 2026
Summary
The Claude Code UI displays a "Current session" panel with:
- Usage percentage (e.g., "85% used")
- A visual progress bar
- Reset time (e.g., "Resets 2:30pm (America/Monterrey)")
This information is not available in the JSON payload received by the statusline command script, making it impossible to display billing/quota usage directly in the terminal statusline.
Requested Change
Expose the following fields in the statusline JSON payload:
{
"sessionUsagePercent": 85,
"sessionResetTime": "2026-05-11T20:30:00-06:00",
"sessionResetTimeFormatted": "2:30pm (America/Monterrey)"
}
Use Case
Power users running Claude Code in the terminal want to monitor their plan usage at a glance without switching context. Adding these fields would allow statusline scripts to show something like:
my-project | main | Claude Sonnet 4.5 | [████████░░] 85% used | Resets 2:30pm
Current Workaround
None — the data is not accessible outside the UI.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗