-
-
Notifications
You must be signed in to change notification settings - Fork 53k
Closed
Description
Summary
When the Anthropic API returns a billing/credit error, OpenClaw sets a disabledUntil timestamp in ~/.openclaw/agents/main/agent/auth-profiles.json with a 10-hour cooldown. The problem is that even after credits are topped up and the API key works fine (verified via direct curl), OpenClaw refuses to attempt any API calls until the cooldown expires.
Restarting the gateway does not clear this state — it's persisted to disk and survives restarts.
Steps to Reproduce
- Anthropic API returns a billing/credit error (e.g. insufficient credits)
- OpenClaw sets
disabledUntil+disabledReasoninauth-profiles.json - User tops up credits — API key now works
- Gateway restart does not help — cooldown persists from disk
- OpenClaw shows generic "provider in cooldown" error with no guidance
- Only fix: manually edit
auth-profiles.jsonto removedisabledUntilanddisabledReasonfromusageStats
Expected Behavior
OpenClaw should recover gracefully when the underlying issue is resolved, without requiring manual JSON editing.
Suggested Improvements
- Retry on gateway restart — If a cooldown is active but the API key is valid (test with a lightweight probe request), clear the cooldown automatically
- Shorter default cooldown — 10 hours is far too long for a billing issue. 5 minutes would be more appropriate and let users self-serve
- CLI reset command — Add something like
openclaw provider resetoropenclaw auth resetto clear cooldown state without manual file editing - Helpful error message — Instead of a generic "provider in cooldown" error, tell the user what file to edit and what fields to remove, or point them to the reset command
Environment
- OpenClaw version: 2026.2.19-2 (45d9b20)
- OS: macOS (Darwin 25.3.0 arm64)
- Provider: Anthropic / claude-sonnet-4-6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels