✅ Quick Fix
1. Get a fresh API key:
- Anthropic (Claude) - Click "Create Key"
- OpenAI (GPT) - Click "Create new secret key"
2. Add it to ClawdBot:
# For Claude (recommended)
clawdbot config set anthropic_api_key "sk-ant-your-key-here"
# For OpenAI
clawdbot config set openai_api_key "sk-your-key-here"
Common Mistakes
Extra spaces in the key
Make sure there are no spaces before or after the key when you paste it.
Using the wrong key type
You need an API key, not a project ID or organization ID.
- Anthropic keys start with
sk-ant- - OpenAI keys start with
sk-
Key was deleted or expired
API keys can be deleted from the dashboard. Create a new one if yours is missing.
Check Your Current Config
clawdbot config show
This shows your current settings. Look for the API key field.
New to API keys? See our AI provider comparison to choose between Claude and GPT.
Related Problems
Was this helpful?
Let us know if this fixed your problem
Thanks for the feedback! We use this to improve our guides.