show-usage-limits
/show-usage-limits
Put the user's Claude usage limits in their status line — the 5-hour and weekly windows, how much is spent, and when each resets — so hitting a limit stops being a surprise. Use this whenever someone asks to see their usage, wants to monitor rate limits or context usage, says they keep hitting limits without warning, asks about the status line, or wants to track what a session is costing while it runs. Also reach for it after a limit was hit, because seeing the window fill is what prevents the next one.
- Author
- emerickchasse ↗
- Repository
- claude-code-plugin-marketplace-culp ↗
- Licence
- MIT
- Last repository change
- 12.08.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 12.08.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/statusline.py
What it does and when to use it
Put the user's Claude usage limits in their status line — the 5-hour and weekly windows, how much is spent, and when each resets — so hitting a limit stops being a surprise. Use this whenever someone asks to see their usage, wants to monitor rate limits or context usage, says they keep hitting limits without warning, asks about the status line, or wants to track what a session is costing while it runs. Also reach for it after a limit was hit, because seeing the window fill is what prevents the next one.
Original author description
Put the user's Claude usage limits in their status line — the 5-hour and weekly windows, how much is spent, and when each resets — so hitting a limit stops being a surprise. Use this whenever someone asks to see their usage, wants to monitor rate limits or context usage, says they keep hitting limits without warning, asks about the status line, or wants to track what a session is costing while it runs. Also reach for it after a limit was hit, because seeing the window fill is what prevents the next one.
How it works
- Install it
- What to tell the user about the limits it shows
- Colour thresholds, and why they are early
- If it renders nothing
- Doing more with the payload
SKILL.md preview
---
name: show-usage-limits
description: Put the user's Claude usage limits in their status line — the 5-hour and weekly windows, how much is spent, and when each resets — so hitting a limit stops being a surprise. Use this whenever someone asks to see their usage, wants to monitor rate limits or context usage, says they keep hitting limits without warning, asks about the status line, or wants to track what a session is costing while it runs. Also reach for it after a limit was hit, because seeing the window fill is what prevents the next one.
license: MIT
allowed-tools: Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/statusline.py *)
metadata:
author: Emerick Chasse
homepage: https://claudeusagelimits.com
---
# Show usage limits in the status line
Claude Code hands the status line a JSON payload before each render, and two of
its fields are the ones people actually hit:
```
rate_limits.five_hour.used_percentage the rolling 5-hour window
rate_limits.seven_day.used_percentage the weekly window
```
Those numbers are otherwise behind a menu. Rendering them at the bottom of the
terminal turns "I ran out with no warning" into something the user watched
happen, early enough to do something about — switch to a cheaper model, clear a
stale session, or stop starting something large twenty minutes before a reset.
The line it renders:
```
Opus ▓▓░░░░░░░░ 28% 5h 24% (2h10m) wk 41% (3d11h) $0.55
└ context window └ 5-hour limit └ weekly limit └ session cost
```
## Install it
**1. Preview it.** Confirm the output before touching any settings:
```bash
echo '{"model":{"display_name":"Opus"},"context_window":{"used_percentage":28},"rate_limits":{"five_hour":{"used_percentage":23.5}},"cost":{"total_cost_usd":0.55}}' \
| python3 ${CLAUDE_SKILL_DIR}/scripts/statusline.py
```
**2. Copy the script somewhere stable.**
```bash
cp ${CLAUDE_SKILL_DIR}/scripts/statusline.py ~/.claude/statusline-usage-limits.py
```
This copy is not tidiness. A marketplace-installed plugin lives in a cache
directory whose path carries its **version**, so pointing `settings.json` at the
script where it sits now gives the user a status line that silently disappears
the next time the plugin updates. `~/.claude/` is stable, and it also means the
status line survives disabling the plugin — which is the right behaviour, since
a status line is the user's choice, not the plugin's.
**3. Wire it into settings.** Read `~/.claude/settings.json` first and merge —
never overwrite it, since it holds permissions and environment the user cares
about far more than a status bar. Add:
```json
{
"statusLine": {
"type": "command",
"command": "python3 ~/.claude/statusline-usage-limits.py",
"padding": 0
}
}
```
On Windows, or anywhere `python3` is not the name on `PATH`, use `python`.
It takes effect immediately; no restart. To remove it later, delete the
`statusLine` key, or run `/statusline` and ask for it to be cleared.
## What to tell the user about the limits it shows
Be straight about the two conditions, because a user who sees no limit numbers
will otherwise assume the script is broken:
- **`rate_limits` appears only for Claude.ai subscribers** — Pro, Max, Team and
Enterprise seats. On an API key or a cloud provider there is no plan window to
report, and those two fields are simply absent.
- **It appears only after the session's first API response.** The very first
render of a new session shows the model and nothing else. That is expected.
Each window can also be absent independently of the other, so the script prints
whichever it was given and never infers one from the other.
The context bar has its own absence: `used_percentage` is null before the first
API call, and again after `/compact` until the next call repopulates it.
## Colour thresholds, and why they are early
Green below 60%, amber from 60%, red from 85%. That is earlier than feels
natural, and deliberately so: a warning at 90% of a window is information you can
no longer act on. 60% is roughly the last point where switching model or clearing
a stale session still changes how the rest of the window goes.
Colour is emitted only when stdout is a terminal, so a piped or captured status
line stays plain.
## If it renders nothing
The script exits 0 and prints nothing rather than raising, on any malformed or
missing input — a status line that crashes takes the status bar down on every
keystroke, which is a worse failure than a blank one. So a blank line means the
payload had nothing renderable in it, not that the script died. Check it
directly with the preview command above before debugging anything else.
## Doing more with the payload
The payload also carries `session_id`, `workspace`, `git_worktree`, `pr`,
`effort`, `exceeds_200k_tokens` and more. If the user wants git branch, PR state
or worktree name alongside the limits, that is a small edit to the script rather
than a different tool — and Claude Code's own `/statusline` command will help
them shape it interactively.
---
Part of the [Usage Limits Optimizer](https://claudeusagelimits.com/claude-usage-limits-skill/),
a free and open plugin. MIT licensed.
Files in this package (2)
- SKILL.md 5 KB
- scripts/statusline.py 5 KB
Versions
The database has no other skills named show-usage-limits.
Database snapshot: 13.11.2026 · package version f20f5b65e445 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95usage-statusline
Install a Claude Code status line that shows the model, context fill as a coloured bar with tokens used, and on Pro/Max plans the 5-hour and 7-day usage with time until each limit resets. One install script copies it to a stable path and sets statusLine in… - 87tare
Diagnose Claude Code usage limits — find out where tokens actually went and why a 5-hour or weekly limit was hit. Use this whenever the user mentions hitting a usage limit, being rate limited, burning through their quota, running out of Claude Code usage, unexpected or… - 100quota
Show current Claude quota status (5-hour session and weekly usage) from the local claude-code-quota cache. Use when the user asks about their quota, usage limits, remaining capacity, or when limits reset. - 95status
Claude Code のサブスクリプション usage limit (5 時間セッション枠・週次枠の使用率と reset 時刻) を取得する。「rate limit」「残量」「usage limit」「5時間・週次枠の残りや使用率」を確認したいときに使う - 90stretch-usage-limits
Diagnose why a Claude Code session is burning through usage limits and fix the causes, in order of what actually costs the most. Use this whenever the user says they hit their limit, ran out of usage, got rate limited, wants to know why Claude is "so expensive", asks how to make… - 100chelo-kebab
Chelo-Kebab paces AI coding usage like a plate of rice and kebab: the 5-hour window is the kebab (کباب), the 7-day weekly limit is the rice (برنج), and both should run out together. Use when the user asks about usage limits, rate limits, the 5-hour window, the weekly limit,…