CAP is a small statusline plugin for Claude Code. It shows the usage limits, context window usage, session cost and update alerts, with no dependencies. Usage data needs the Claude Code OAuth token; responses are cached for 60 seconds by default, which the README suggests raising to 120 seconds if you hit 429 rate limits.
What it does
Where CAP (Claude Allowance Pulse) runs and what it adds, from its documentation
Usage limits with green, yellow and red thresholds at 50, 70 and 85 percent
Context window usage and session cost
Update alerts for the plugin itself
When to use it
Good fit
You want a minimal status line and do not need Claude HUD's extra panels
Not for
Sessions without a Claude Code OAuth token
How to install CAP (Claude Allowance Pulse)
You need: Claude Code with an OAuth login
Install in one click/plugin marketplace add PeterCha90/CAP
/plugin install cap
Paste the copied command into the Claude Code terminal and confirm the prompt.
In Claude Code: /plugin marketplace add PeterCha90/CAP
/plugin install cap
Run /cap:setup, or /reload-plugins, or restart Claude Code
Permissions and security
What it can access
Reads the Claude Code OAuth token to query the usage API
Review the source before granting an agent access to credentials or production systems. We document what the maintainers state; we do not audit code.
Limitations
Settings are edited in scripts/usage-hud.mjs (USAGE_TTL, UPDATE_TTL, colour thresholds)