Automatically pauses Claude Code when usage exceeds 90% to avoid hitting rate limits
A Claude Code plugin that monitors your usage and automatically pauses when approaching rate limits.
| Limit | Threshold | Reset Period |
|---|---|---|
| Session | 90% | Every 5 hours |
| Weekly | 95% | Every 7 days |
In Claude Code, run:
/plugin marketplace add willyt3hwhale/cc-limit-guard
/plugin add rate-limit-guard@cc-limit-guard
git clone https://github.com/willyt3hwhale/cc-limit-guard ~/.claude/plugins/local/cc-limit-guard
Then add an alias to your shell config:
alias claude='claude --plugin-dir ~/.claude/plugins/local/cc-limit-guard'
No manual configuration needed. The plugin automatically finds your credentials in this order:
ANTHROPIC_API_KEY environment variable~/.claude/.credentials.json (written by Claude Code on login)Claude Code-credentials)Just install the plugin and it works.
The plugin runs automatically. You'll see usage info as a system message:
Session: 29% | Weekly: 12%
When either threshold is exceeded, the plugin will:
To temporarily bypass the rate limit guard:
CLAUDE_NO_LIMIT=1 claude
jq installed (brew install jq / apt install jq)The plugin uses a PreToolUse hook that runs before each tool call. It:
api.anthropic.com and reads rate limit headers backMIT
Matches all tools
Hooks run on every tool call, not just specific ones
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub willyt3hwhale/cc-limit-guard --plugin rate-limit-guardUnified status line for Claude Code with multi-CLI (Claude, Codex, Gemini, z.ai) usage monitoring, context, rate limits, and cost tracking
Live API usage in Claude Code statusline - colored progress bars, Git info, tokens, session metrics, device tracking, and more
Claude Code statusline and quota tracker. Single Bash + jq file, no Node.js, no npm, with pace-aware rate limit tracking.
Warns you before a rate limit or auto-compact, not after. A pure-bash Claude Code status bar (no jq, Node optional) for macOS, Linux, and Windows: usage pacing + burn-rate forecast, context warnings, live activity, cost, git, and 8 themes.
Modular statusline for Claude Code — peak hours, rate limits, rolling-window burn rate, cache reuse, plus a hook-injected narrator (rules + optional Haiku) that surfaces context-management advice above your prompt. Bilingual (English/Hebrew, locale auto-detect).
A rich statusline for Claude Code — context, rate limits, tool activity, token costs. Pure bash, no dependencies beyond jq.