clade-rate-limits

Featured

Handle Anthropic rate limits — understand tiers, implement backoff, Use when working with rate-limits patterns. optimize throughput, and monitor usage. Trigger with "anthropic rate limit", "claude 429", "anthropic throttling", "anthropic usage limits", "claude tokens per minute".

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 Anthropic enforces three types of limits: requests per minute (RPM), input tokens per minute (TPM), and output tokens per minute. Limits depend on your spend tier. ## Rate Limit Tiers | Tier | Qualification | RPM | Input TPM | Output TPM | |------|--------------|-----|-----------|------------| | Tier 1 | Free | 50 | 40,000 | 8,000 | | Tier 2 | $40+ spend | 1,000 | 80,000 | 16,000 | | Tier 3 | $200+ spend | 2,000 | 160,000 | 32,000 | | Tier 4 | $400+ spend | 4,000 | 400,000 | 80,000 | | Scale | Custom | Custom | Custom | Custom | > **Check your tier:** console.anthropic.com → Settings → Limits ## Response Headers Every API response includes rate limit headers: ``` claude-ratelimit-requests-limit: 1000 claude-ratelimit-requests-remaining: 998 claude-ratelimit-requests-reset: 2025-01-01T00:01:00Z claude-ratelimit-tokens-limit: 80000 claude-ratelimit-tokens-remaining: 79500 claude-ratelimit-tokens-reset: 2025-01-01T00:01:00Z retry-after: 5 ``` ## Built-In SDK Retries The SDK automatically retries 429 and 529 errors with exponential backoff: ```typescript import Anthropic from '@claude-ai/sdk'; const client = new Anthropic({ maxRetries: 3, // default: 2. Set to 0 to disable. }); ``` ## Custom Backoff ```typescript async function callWithBackoff(params: Anthropic.MessageCreateParams, maxRetries = 5) { for (let attempt = 0; attempt < maxRetries; attempt++) { try { return await client.messages.create(params); } catch (err)...

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