#Agent failed before reply. No credentials found?
1 messages Β· Page 1 of 1 (latest)
Ah, I see the issue! You're using anthropic:claude-cli which relies on Claude Code's OAuth tokens β and those do expire (typically every ~10 hours).
The fix: Use an API key instead of OAuth.
- Get an API key from console.anthropic.com β API Keys
- In your Clawdbot config, set the key directly in your provider config:
providers:
anthropic:
apiKey: "sk-ant-..."
Or via environment variable:
ANTHROPIC_API_KEY=sk-ant-...
The claude-cli profile is handy for quick testing (borrows auth from Claude Code), but API keys are the way to go for anything running 24/7. No expiration, no reauth needed.
Thanks @fervent bane - that was incorrect, but Peter is already fixing it, mentioned here I believe #general message