rate-limit-manager
Intelligent API rate limiting and quota management for AI agents. Control request rates, enforce quotas, and prevent API abuse.
Overview
A comprehensive rate limiting assistant that helps agents implement and manage rate limits across multiple APIs and services.
Features
- Rate Limiting: Token bucket, sliding window, fixed window algorithms
- Quota Management: Daily, weekly, monthly usage quotas
- Multi-Service: Manage limits across multiple APIs simultaneously
- Adaptive Throttling: Automatically adjust based on 429 responses
- Visualization: Dashboard showing usage and limits
- Alerts: Notify when approaching limits
- Retry Logic: Smart retry with exponential backoff
Commands
Set Rate Limit
limit requests to 100 per minute for api-key-123
Check Quota
check remaining quota for openai-api
Enable Adaptive Throttling
enable auto-throttling for external-api
Use Cases
- API quota management
- Prevent service abuse
- Cost control
- Rate limit implementation
- Multi-service rate coordination
Requirements
- Node.js 18+
- Redis (optional, for distributed rate limiting)