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 PeterCha90v1.1.1MITIn 1 marketplace
Shows your 5-hour and weekly Claude usage, context window and session cost in the statusline. A SessionStart hook reapplies the statusline setting each time a session starts.
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.
1 marketplace, most starred first
statusline, claude-usage, rate-limit, context-window, cost-tracking, hud, usage-monitoring, usage ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A lightweight Claude Code statusline plugin that displays
usage limits, context window, cost, and update alerts in real time.
Zero bloat. Zero dependencies. Just the statusline.
🐙 Opus 4.6 │ 🧺 73%(4h32m) │ 📅 Week: 45%(3d21h)
🌳 main │ 🗃️ 42% ctx │ 💰 $0.47 │ Update 👾
| Segment | Description |
|---|---|
🐙 Opus 4.6 | Current model (Opus=🐙, Sonnet=☄️, Haiku=💨) |
🧺 73%(4h32m) | 5-hour window utilization + time until reset |
📅 Week: 45%(3d21h) | 7-day window utilization + time until reset |
🌳 main | Current git branch (shown only inside a git repo) |
🗃️ 42% ctx | Context window usage |
💰 $0.47 | Session cost so far |
Update 👾 | Shown only when a new version is available |
Line 1 displays model, 5-hour session usage (with reset countdown), and weekly usage.
Line 2 displays the current git branch (only inside a git repo), context window percentage, accumulated session cost, and update alerts.
Usage percentages change color as they increase:
| Utilization | Color |
|---|---|
| < 50% | 🟢 Green |
| 50–69% | 🟡 Yellow |
| 70–84% | 🟡 Yellow (Bold) |
| >= 85% | 🔴 Red (Bold) |
Inside Claude Code:
/plugin marketplace add PeterCha90/CAP
/plugin install cap
Then apply the statusline with one of these methods:
/cap:setup inside Claude Code (recommended — works on all platforms)/reload-plugins to reload pluginsThe HUD will appear at the bottom of your terminal.
When the HUD shows Update 👾, a new version is available. Run the
following inside Claude Code, in order:
/plugin marketplace update cap
/plugin update cap
Then fully quit and restart Claude Code (/reload-plugins is not
enough — the SessionStart hook that repins the statusline only runs on
a fresh session start).
If Update 👾 is still showing after a restart, fall back to a clean
reinstall:
/cap:uninstall
Restart Claude Code, then:
/plugin install cap
/cap:setup
Restart Claude Code one more time and the indicator will clear.
Edit scripts/usage-hud.mjs:
| Setting | Default | Description |
|---|---|---|
USAGE_TTL | 60000 (60s) | How long to cache Usage API responses. Increase to 120000 if you hit 429 rate limits. |
UPDATE_TTL | 21600000 (6h) | How often to check for new versions |
| Color thresholds | 50/70/85% | Breakpoints for green/yellow/red color transitions |
Inside Claude Code:
/cap:uninstall
Or manually:
bash ~/.claude/plugins/cap/scripts/uninstall.sh
This will:
statusLine setting (if a backup exists)Restart Claude Code after running the script.
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.
Plugins from other owners that cover similar ground