#Agent failed before reply. No credentials found?

1 messages Β· Page 1 of 1 (latest)

olive echo
#

Hi! Clawd works great. But I keep getting expiring tokens after 8 hours. Is there any way for Clawd to pull new ones automatically? Currently I need to go in and reauth.

fervent baneBOT
#

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.

  1. Get an API key from console.anthropic.com β†’ API Keys
  2. 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.

olive echo
#

Thanks @fervent bane - that was incorrect, but Peter is already fixing it, mentioned here I believe #general message