ratelimit
ratelimitShared rate limiter: take N units from a named bucket (limit per window, atomic) and learn whether you may go ahead, how many remain and when it resets. Keeps a fleet of agents under an API's quota or your own budget. cost=0 just peeks. Costs $0.002 USDC per call (x402).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Units to take, default 1 | |
| name | Yes | ||
| limit | No | ||
| space | No | Optional shared namespace (any secret string): agents using the same space share it. Default: your paying wallet. | |
| window_seconds | No |