anth-rate-limits

Featured

Implement Anthropic Claude API rate limiting, backoff, and quota management. Use when handling 429 errors, optimizing request throughput, or managing RPM/TPM limits across usage tiers. Trigger with phrases like "anthropic rate limit", "claude 429", "anthropic throttling", "claude retry", "anthropic backoff".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anthropic Rate Limits ## Overview The Claude API uses token-bucket rate limiting measured in three dimensions: requests per minute (RPM), input tokens per minute (ITPM), and output tokens per minute (OTPM). Limits increase automatically as you move through usage tiers. ## Rate Limit Dimensions | Dimension | Header | Description | |-----------|--------|-------------| | RPM | `anthropic-ratelimit-requests-limit` | Requests per minute | | ITPM | `anthropic-ratelimit-tokens-limit` | Input tokens per minute | | OTPM | `anthropic-ratelimit-tokens-limit` | Output tokens per minute | Limits are per-organization and per-model-class. Cached input tokens do NOT count toward ITPM limits. ## Usage Tiers (Auto-Upgrade) | Tier | Monthly Spend | Key Benefit | |------|---------------|-------------| | Tier 1 (Free) | $0 | Evaluation access | | Tier 2 | $40+ | Higher RPM | | Tier 3 | $200+ | Production-grade limits | | Tier 4 | $2,000+ | High-throughput access | | Scale | Custom | Custom limits via sales | Check your current tier and limits at [console.anthropic.com](https://console.anthropic.com/settings/limits). ## SDK Built-In Retry ```python import anthropic # The SDK retries 429 and 5xx errors automatically (2 retries by default) client = anthropic.Anthropic(max_retries=5) # Increase for high-traffic apps # Disable auto-retry for manual control client = anthropic.Anthropic(max_retries=0) ``` ```typescript const client = new Anthropic({ maxRetries: 5 }); ``` ## Custom Rate ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category