Work in Progress: This troubleshooting guide may be incomplete or outdated.

🔑 Invalid API Key

Your AI provider key isn't working

← Back to Help

✅ Quick Fix

1. Get a fresh API 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

Share This Fix

Help others who might have the same problem