docs/concepts/retry.md
408, 409, 429, and 5xx) can include retry-after-ms or
retry-after. When that wait is longer than 60 seconds, OpenClaw injects
x-should-retry: false so the SDK surfaces the error immediately and model
failover can rotate to another auth profile or fallback model.OPENCLAW_SDK_RETRY_MAX_WAIT_SECONDS=<seconds>.
Set it to 0, false, off, none, or disabled to let SDKs honor long
Retry-After sleeps internally.retry_after when available, otherwise exponential backoff.retry_after when available, otherwise exponential backoff.Set retry policy per provider in ~/.openclaw/openclaw.json:
{
channels: {
telegram: {
retry: {
attempts: 3,
minDelayMs: 400,
maxDelayMs: 30000,
jitter: 0.1,
},
},
discord: {
retry: {
attempts: 3,
minDelayMs: 500,
maxDelayMs: 30000,
jitter: 0.1,
},
},
},
}