/install gh-ratelimiter
RateLimiter
Track and enforce rate limits so your agent doesn't get throttled.
Start the server
uvicorn ratelimiter.app:app --port 8012
Create a rate limit
curl -s -X POST http://localhost:8012/v1/limits \
-H "Content-Type: application/json" \
-d '{"key": "openai-api", "max_requests": 60, "window_seconds": 60}' | jq
Check before calling
curl -s http://localhost:8012/v1/check/openai-api | jq '.allowed'
Consume after calling
curl -s -X POST http://localhost:8012/v1/consume/openai-api | jq
Returns allowed (true/false), remaining, and retry_after_seconds (how long to wait if exhausted).
List all limits
curl -s http://localhost:8012/v1/limits | jq
Reset quota
curl -s -X POST http://localhost:8012/v1/reset/openai-api | jq
Delete a limit
curl -s -X DELETE http://localhost:8012/v1/limits/openai-api | jq
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/limits | Create/update a rate limit |
| GET | /v1/limits | List all rate limits |
| GET | /v1/check/{key} | Check if next request is allowed |
| POST | /v1/consume/{key} | Use one request from quota |
| POST | /v1/reset/{key} | Reset quota to full |
| DELETE | /v1/limits/{key} | Delete a rate limit |
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gh-ratelimiter - After installation, invoke the skill by name or use
/gh-ratelimiter - Provide required inputs per the skill's parameter spec and get structured output
What is Ratelimiter?
In-memory sliding window rate limiter for AI agents. Create rate limits per API key, check quota before calling, consume requests, reset, and list all limits... It is an AI Agent Skill for Claude Code / OpenClaw, with 89 downloads so far.
How do I install Ratelimiter?
Run "/install gh-ratelimiter" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Ratelimiter free?
Yes, Ratelimiter is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ratelimiter support?
Ratelimiter is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ratelimiter?
It is built and maintained by mirni (@mirni); the current version is v1.0.0.