solution model high macos linux windows
OAuth token refresh failed (Anthropic Claude subscription)
Fix expired Anthropic subscription auth by switching to a Claude Code setup-token and pasting it on the gateway host.
By CoClaw Team •
Error signatures: OAuth token refresh failed | refresh failed
Symptoms
- Logs or
openclaw models statusindicate an Anthropic OAuth token expired and refresh failed. - Model calls to Anthropic stop working even though they worked previously.
Cause
If you’re using an Anthropic subscription flow (no API key), the stored OAuth token can expire or be invalidated. Refresh may fail due to provider-side token rotation or local auth state drift.
Fix (recommended)
Use a Claude Code setup-token and paste it on the gateway host:
openclaw models auth setup-token --provider anthropic
openclaw models status
If you generated a token elsewhere:
openclaw models auth paste-token --provider anthropic
openclaw models status
Verify
openclaw models status --probe
Then send a test message.