Tutorial
Provider failover is a recovery policy, not a second model name in a config file. OpenClaw needs a provider account, endpoint, model reference, credential scope, and retry rule for each candidate. Keep those decisions visible before a live workflow depends on them.
Define the failure boundary
Decide whether a fallback should handle a timeout, a rate limit, an authentication failure, or a model capability mismatch. A retry can duplicate an external action, so do not retry a write or payment request until the first attempt's outcome is known.
openclaw models
openclaw gateway status
openclaw doctor
Keep credentials and data explicit
- Use separate credentials for each provider and keep them outside the repository.
- Check the fallback model's context, tool, and data handling before sending private input.
- Record which provider answered a request so an incident can be reconstructed.
- Test the fallback with synthetic prompts and a disposable channel.
Test the switch
- Make the primary provider fail in a controlled environment.
- Send a read-only prompt and confirm the fallback response.
- Restore the primary and verify that a retry does not duplicate an action.
- Rotate or revoke a test credential when the exercise ends.
Use the model provider reference, the failover documentation, and the security guide for the current configuration boundary.
Reference Trail
Sources and further reading
- model provider referencedocs.openclaw.ai
- failover documentationdocs.openclaw.ai
- security guidedocs.openclaw.ai