Feature Request: Expose rate limit data to statusLine script

Resolved 💬 4 comments Opened Jan 23, 2026 by ghumano Closed Feb 28, 2026

Feature Request

Is your feature request related to a problem?

When configuring a custom statusLine script, I wanted to display the 4-hour rolling rate limit usage and reset time. However, this data is not available in the JSON input passed to the statusLine command.

Describe the solution you'd like

Please expose rate limit information to the statusLine JSON input, including:

  • rate_limit.tokens_used - Current tokens consumed in the rolling window
  • rate_limit.tokens_limit - Maximum tokens allowed per window
  • rate_limit.reset_time - Timestamp when the limit resets (or time remaining)
  • rate_limit.window_duration - Duration of the rate limit window (e.g., 4 hours)

This would allow users to see something like:

➜ myproject git:(main) [Opus 4.5 | 45K/200K (22.5%), resets in 3h42m]

Describe alternatives you've considered

Currently the statusLine can show:

  • Model name
  • Version
  • Context window usage (%)
  • Session cost
  • Context window size

But the rate limit data that helps users understand their remaining capacity before hitting limits is not accessible.

Additional context

This would be helpful for users on plans with rate limits who want to pace their usage throughout the day.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗