Rate Limit Pro for Openclaw

A robust rate-limiting utility for managing API quotas and request throttling through customizable user tiers.

raghulpasupathi
v1.0.0
Feb 21, 2026
0
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install rate-limit-pro

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install rate-limit-pro using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Rate Limit Pro?

Rate Limit Pro is a sophisticated utility within the Openclaw Skills ecosystem designed to manage traffic flow and prevent service exhaustion. It provides developers with a structured way to implement tiered access levels—such as free, basic, and pro—ensuring that AI agents and applications stay within predefined usage boundaries. By integrating this skill, you can effectively govern how often specific users or services interact with your backend resources while maintaining high availability and cost control.

Rate Limit Pro Use Cases

  • Preventing API abuse by limiting request frequency per user or identifier.
  • Implementing tiered subscription models with varied request quotas for different user levels.
  • Protecting downstream services from sudden traffic spikes or unintended loops.
  • Managing resource allocation for multiple autonomous agents powered by Openclaw Skills.

How Rate Limit Pro Works

  1. Initialize the RateLimiter with custom tier configurations defining specific request counts and time windows.
  2. Identify the incoming request by a unique identifier, such as a user ID, API key, or session string.
  3. Call the checkLimit method to evaluate the current request against the assigned tier's quota.
  4. The system automatically prunes expired timestamps from the sliding window history to ensure data accuracy.
  5. Receive a response object indicating if the request is allowed, including metadata like remaining quota and seconds until reset.

Rate Limit Pro Setup

To integrate this utility into your development environment, ensure you have the core framework initialized. You can then include this skill in your logic:

# Standard installation via the package manager
npm install @openclaw/skill-rate-limit-pro

Configure your tiers in your skill settings:

{
  "tiers": {
    "free": { "requests": 10, "window": 60000 },
    "pro": { "requests": 1000, "window": 60000 }
  }
}

Rate Limit Pro Data Schema & Taxonomy

The skill maintains an internal state map of request timestamps for each unique user. The check response follows this structured format:

Property Type Description
allowed boolean Indicates if the request is within quota
reason string Error code (e.g., 'rate_limit_exceeded') if denied
limit number The total capacity for the selected tier
remaining number Total requests left in the current window
resetIn number Seconds remaining until the limit resets

Rate Limit Pro Advanced Features

  • Sliding window algorithm for precise time-based request tracking.
  • Support for custom tier definitions to match any business logic or subscription plan.
  • Manual reset capabilities to clear limits for specific users or during testing.
  • Real-time usage statistics and request history tracking for monitoring performance within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0