Skip to content

[Feature] Rate Limiting / Throttle Layer #47

Closed

Description

@Piboonsak

Rate Limiting / Throttle Layer

Mirror of: Piboonsak/Openclaw#3

Requirements

  1. Per-user rate limiting (e.g. 10 msg/min)
  2. Global rate limiting for API cost protection
  3. Configurable via openclaw config
  4. Graceful rejection with friendly message
  5. Channel-aware limits

Implementation

  • Add src/infra/rate-limiter.ts with token bucket or sliding window
  • Integrate at message routing layer
  • Config keys: rateLimit.perUser, rateLimit.global, rateLimit.windowMs
  • Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions