Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By FlineDevv2.1.0MIT
Shows your context fill, 5-hour and 7-day limit usage with reset times, model and repo in the status line. Claims no network calls, reading only Claude Code's own data; needs jq and Claude Code 2.1 or newer.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
statusline, rate-limits, context-window, token-usage, usage-monitoring, reset-time, usage, limits
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A custom statusline for Claude Code that shows how much room you have left — in the conversation, in the 5-hour window, and in the week.
▰▰▱▱▱ 22% ◑ 38% (2.5h) ◔ 31% (4.4d) ✱ Ops (xhi) · #TeaPot
| Part | Shows |
|---|---|
▰▰▱▱▱ 22% | Context: five segments filling towards your token limit, plus the percentage of the model's window |
◑ 38% (2.5h) | 5-hour session limit, with the time until it resets |
◔ 31% (4.4d) | 7-day weekly limit, with the time until it resets |
✱ Ops (xhi) | Model and reasoning effort |
#TeaPot | Current repository, shortened |
Both usage windows share the same filling circle. The reset time tells them apart: hours for the session window, days for the weekly one.
Start Claude Code (claude), then run these three commands inside it:
/plugin marketplace add FlineDev/Marketplace
/plugin install custom-statusline
/custom-statusline:setup
If you're in an active session, run /reload-plugins to activate immediately. CustomStatusline is part of the FlineDev Marketplace — see the full list of available plugins there.
[!TIP] Automatic Updates: By default, third-party plugins don't auto-update. To receive new features and fixes:
- Type
/pluginand press Enter- Switch to the Marketplaces tab
- Navigate to FlineDev and press Enter
- Press Enter on Enable auto-update
scripts/custom-statusline.sh to ~/.claude/custom-statusline.shchmod +x ~/.claude/custom-statusline.sh~/.claude/settings.json:{
"statusLine": {
"type": "command",
"command": "bash ~/.claude/custom-statusline.sh",
"padding": 0
}
}
Options go straight into the command:
{
"statusLine": {
"type": "command",
"command": "bash ~/.claude/custom-statusline.sh --context-max 500k --name-max 12,8,6",
"padding": 0
}
}
| Option | Default | Accepts |
|---|---|---|
--context-max | 500k | 500000, 500k, 1M — what a full context bar means |
--name-max | 12,8,6 | Characters per path level: one value per depth, a single value for all depths, or off |
--model-max | 3 | A single value, or off |
Anything that is not a number falls back to the default instead of breaking the line, and values below 3 are raised to 3 — at two characters names start colliding, and at one there is nothing left to recognize.
A one-million-token context window does not become uncomfortable at 900,000 tokens. It becomes slow and expensive long before that — and a bar that fills against the window size stays half empty while the conversation is already too heavy to work with.
So the bar fills against your threshold instead, and the warning colors derive from the same number:
| Color | From | With the 500k default |
|---|---|---|
| ⚪ Gray | — | below 300k |
| 🟡 Yellow | 60% of --context-max | 300k |
| 🟠 Orange | 80% | 400k |
| 🔴 Red | 100% | 500k |
One number moves both the bar and the colors, so they always agree: a full bar and a red bar are the same moment.
Pick a value that matches how you work. If you mostly use 200k-window models, --context-max 200k makes the bar span the whole window. If you happily run to 800k, set that.
The percentage next to the bar is unaffected — it always reports the model's own context window, the same number /context shows.
Everything that is not a warning is drawn in a single dim gray — bar, percentages, model, folder. Color means exactly one thing: look here.
| Usage | Color | Meaning |
|---|---|---|
| 0 – 69% | ⚪ Gray | Plenty of room |
| 70 – 79% | 🟡 Yellow | Getting warm |
| 80 – 89% | 🟠 Orange | Approaching the limit |
| 90 – 100% | 🔴 Red | Near or at the limit |
The context bar additionally applies the token thresholds above and takes whichever level is higher.
The 5h and 7d circles compare usage against elapsed time. If you have used less of the window than the time that has passed, your pace is sustainable and the color stays gray no matter the absolute number.
Three hours into a five-hour window means 60% of it is gone; using 50% at that point stays gray, because you will not reach the limit at this rate.
Above 70% the absolute value takes over. Being "on pace" at 94% used with 94% of the window gone is still one turn away from the wall.
Everything comes from the JSON Claude Code pipes into the script on every message: context usage, both rate limits with their reset timestamps, the model, the effort level, and the working directory.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (flinedev/customstatusline) — no native marketplace selected
npx claudepluginhub p/flinedev-custom-statuslinePlugins from other owners that cover similar ground