By SirHall
Transparent rate-limit retry proxy for Claude Code. Automatically waits and retries on 429/5xx errors so your sessions never stop.
Install claude-wait-rate — enables automatic retry on API rate limits
Check claude-wait-rate status — whether the interceptor is active and configured
Uninstall claude-wait-rate — removes the fetch interceptor from settings
A Claude Code plugin that automatically retries rate-limited API requests. When Claude hits a 429, 502, 503, or 504 error, it waits and retries — so your sessions and sub-agents never stop due to transient failures.
# 1. Register the plugin repository (one-time)
claude plugin marketplace add SirHall/claude-wait-rate
# 2. Install the plugin
claude plugin install claude-wait-rate
Then inside Claude Code:
/wait-rate-install
Restart Claude Code. Done — rate limits are now handled automatically.
The plugin installs a fetch interceptor via NODE_OPTIONS --import that wraps all outgoing API requests:
Retry-After header if present, otherwise exponential backoffWhen retrying, you'll see messages like:
⏳ Rate limited (429). Waiting 60.0s (attempt 1, elapsed 0.0s)
⏳ Rate limited (429). Waiting 120.0s (attempt 2, elapsed 60.0s)
| Command | Description |
|---|---|
/wait-rate-install | Configure the interceptor and update settings |
/wait-rate-uninstall | Remove the interceptor from settings |
/wait-rate-status | Check whether the interceptor is active and show config |
Config is stored at ~/.claude-wait-rate/config.json:
| Setting | Default | Description |
|---|---|---|
upstream | https://api.anthropic.com | Upstream API endpoint. Auto-detected from existing ANTHROPIC_BASE_URL during install. |
baseInterval | 60 | Base retry wait in seconds |
maxInterval | 480 | Maximum wait between retries in seconds |
maxTimeout | null | Maximum total retry time. null = retry indefinitely. |
retryableStatuses | [429, 502, 503, 504] | HTTP status codes that trigger a retry |
From inside Claude Code:
/wait-rate-uninstall
Then restart Claude Code.
If Claude Code won't start, run the repair script directly from your terminal:
bash ~/.claude/plugins/installed/claude-wait-rate/scripts/repair.sh
To also remove the plugin:
claude plugin uninstall claude-wait-rate
git clone [email protected]:SirHall/claude-wait-rate.git
cd claude-wait-rate
claude --plugin-dir .
MIT
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 sirhall/claude-wait-rate --plugin claude-wait-rateLive 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.
Prevents your computer from sleeping while Claude Code works hard
Manage API throttling with dynamic rate limits and quota management
Interactive wizard that fixes and optimizes Claude Code performance -- sourced from dozens of community posts and official docs.
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).