#is there a way to set a rate limit to API calls?
1 messages · Page 1 of 1 (latest)
OpenClaw doesn’t currently have a “hard 1 request/sec” throttle for LLM API calls (esp. not inside a single agent run / tool loop). If the model does tool-use, one user message can easily cause 2+ back-to-back LLM calls (tool request → tool result → follow-up), which will trip a 1 RPS free-tier limit even if you only send one message.
What you can do today:
- Reduce burstiness between turns (helps if the errors are from you sending messages quickly)
- In the TUI/session:
/queue collect debounce:2s- (or
/queue followup debounce:2s)
- Or in config:
{ messages: { queue: { mode: "collect", debounceMs: 2000 } } }
Docs: https://docs.openclaw.ai/concepts/queue
- If you truly must stay on 1 RPS: you’ll need one of these workarounds