#How do I reset Anthropic OAuth
1 messages · Page 1 of 1 (latest)
To reset just Anthropic OAuth without re-running full onboarding:
-
Edit your config file:
~/.clawdbot/clawdbot.json— remove or clear theanthropicprovider section (look forproviders.anthropicor similar key with your API key/token) -
Reconfigure just Anthropic: Try
clawdbot configure anthropic— this should prompt only for Anthropic settings without touching others
If configure doesn't support provider-specific flags, you'll need to manually edit the config, delete the Anthropic section, restart the gateway, then run configure again.
Docs reference: https://docs.clawd.bot/gateway/configuration
I got "> tsx src/entry.ts configure anthropic
error: too many arguments for 'configure'. Expected 0 arguments but got 1.
ELIFECYCLE Command failed with exit code 1."
The configure command is interactive-only (no args). You'll need to manually edit the config:
-
Open config:
nano ~/.clawdbot/clawdbot.json -
Find and remove/edit the Anthropic section — look for:
"anthropic": { "apiKey": "your-key-here" } -
Save and restart gateway:
clawdbot gateway restart -
Re-run onboarding just for Anthropic:
pnpm clawdbot onboard(select Anthropic when prompted)
If you want to be surgical, you can just delete the apiKey value inside the anthropic object instead of removing the whole section.