Claude Code status lines that track usage limits
Claude plans meter usage in five-hour and weekly windows, and Claude Code hands both to your status line as rate limit data. These status lines show how much of each window is gone and when it resets.
They differ mostly in urgency: some show a quiet percentage, others switch color or warn outright as you approach the cap.
Pick the five-hour window if you hit limits during a workday. Pick a config that shows both windows if you care about the week.
Claude Code passes your plan's usage limits to the status line script as rate_limits in its stdin JSON. rate_limits.five_hour and rate_limits.seven_day each carry used_percentage and resets_at, a Unix timestamp for when the window resets. Either window can be missing, so guard both before printing. The configs below differ in how loudly they warn.
24 published status lines.
Updated 2026-09-07
Status lines
Common questions
Why is rate_limits missing from my status line input?
Claude Code can omit rate_limits, or send only the five_hour window. Check that each window exists before reading used_percentage, or the script prints empty values.
How do I show when my limit resets?
Subtract the current Unix time from rate_limits.five_hour.resets_at to get the seconds remaining, then format them as hours and minutes. The same works for seven_day.
What is the difference between five_hour and seven_day?
five_hour covers the current five-hour usage window. seven_day covers the weekly limit. Each carries its own used_percentage and resets_at.