api-rate-manager
Smart API rate limit manager with auto-retry, queue, and cost optimization. Prevents 429 errors and manages API quotas efficiently.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chenghaifeng08-creator/api-rate-managerWhat This Skill Does
The api-rate-manager is a critical tool for developers and power users of the OpenClaw ecosystem who frequently interact with external APIs. When executing automated workflows or high-frequency data tasks, hitting API rate limits (typically HTTP 429 'Too Many Requests' errors) can crash a script or result in data loss. This skill acts as a middleware layer that sits between your request logic and the target API. It intelligently tracks your quota usage against defined windows, automatically queues requests that would exceed those limits, and performs exponential backoff retries when necessary. By abstracting the complexity of state management and timing, it ensures that your workflows remain robust, reliable, and compliant with service provider terms of use.
Installation
Install the skill directly using the OpenClaw CLI:
clawhub install openclaw/skills/skills/chenghaifeng08-creator/api-rate-manager
Use Cases
- Bulk API Processing: Ideal for data scraping or bulk analysis jobs where you need to hit an endpoint hundreds of times without getting banned.
- Multi-Service Orchestration: Coordinating calls between different services (like OpenAI and Perplexity) where each has a different rate limit threshold.
- Production-Grade Automation: Ensuring that background agents do not experience downtime during high traffic periods.
- Cost Control: Preventing accidental over-spending by capping the number of requests sent to paid APIs in a given timeframe.
Example Prompts
- "OpenClaw, initialize a rate manager for my OpenAI integration with a limit of 50 requests per minute and handle retries automatically."
- "Queue these 20 batch requests for the Perplexity API using the api-rate-manager so I don't trigger a 429 error."
- "Check the status of my current rate limit management for the ClawHub API and adjust the queue size to 200."
Tips & Limitations
- Monitor Latency: While this skill prevents errors, queuing adds time to your total execution window. Ensure your application logic accounts for this potential delay.
- API-Specifics: Always check your provider's specific 'reset' header requirements. While this skill is flexible, some APIs require specific headers to be passed back to determine the exact reset time.
- Configuration: Always set a conservative
maxRetriesvalue (default is 5) to ensure your agent doesn't enter an infinite loop in the event of an extended service outage.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chenghaifeng08-creator-api-rate-manager": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: external-api, code-execution
Related Skills
mcp-builder
Bootstraps new Model Context Protocol (MCP) servers from a natural language description. Use when the user asks to build an MCP server, create an MCP tool, scaffold an MCP integration, or add MCP capabilities to an existing project. NOT for: general API design, non-MCP tool building, or frontend tasks.
mempalace-integration
MemPalace记忆系统集成 - AAAK压缩 + Hall分类 + L0-L3分层 30x无损压缩(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens)(1000→33 tokens),facts/events/preferences/advice分类,加载优先级
scrapebadger
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
clinicaltrials-gov-parser
Monitor and summarize competitor clinical trial status changes from ClinicalTrials.gov. Trigger: When user asks to track clinical trials, monitor trial status changes, get updates on specific trials, or analyze competitor trial activities. Use cases: Pharma competitive intelligence, trial monitoring, status tracking, recruitment updates, completion alerts.
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.