Clawdbot Troubleshooting: Fixing Common Problems
Last updated: February 2026
Something broke. That’s why you’re here. Let’s fix it.
If you haven’t set up Clawdbot yet, start with our complete setup guide. For Telegram-specific setup help, see the Telegram guide.
I’m going to skip the preamble and get straight to solutions. Find your problem below, try the fix. If it doesn’t work, check the “Still stuck?” section at the bottom.
“Clawdbot won’t start”
Symptom: Gateway fails to launch
You run clawdbot gateway start and… nothing. Or an
error.
Check 1: Is Node.js installed and recent enough?
node --versionNeed v18 or higher. If it’s old or missing:
# macOS
brew install node@22
# Ubuntu
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejsCheck 2: Is Clawdbot actually installed?
which clawdbotShould return a path. If not:
npm install -g clawdbotCheck 3: Is there a config file?
cat ~/.clawdbot/clawdbot.jsonIf it doesn’t exist or is empty, run clawdbot init.
Check 4: Is the config valid JSON?
Broken JSON is the #1 cause of startup failures. Validate it:
cat ~/.clawdbot/clawdbot.json | python3 -m json.toolIf you see an error, you’ve got a syntax problem. Common culprits: - Missing comma after a line - Extra comma on the last item in a list - Unclosed brackets or braces - Wrong quote characters (use straight quotes, not curly)
Check 5: Is the port already in use?
lsof -i :3000If something’s already on port 3000, either kill it or change Clawdbot’s port in config.
“Bot doesn’t respond to messages”
Telegram specifically
Check 1: Is the gateway running?
clawdbot gateway statusIf it says stopped, start it: clawdbot gateway start
Check 2: Is your bot token correct?
Go to BotFather on Telegram, check your bot’s token. Copy it fresh,
paste it into your config. Tokens look like:
123456789:ABCdefGHIjklMNO-pqrsTUVwxyz
Watch for: - Extra whitespace - Wrong token entirely - Token that was regenerated (old one won’t work)
Check 3: Is your user ID in allowedUsers?
Find your Telegram user ID (message @userinfobot). Check it’s in the config:
"allowedUsers": [123456789]Note: It’s a number, not a string. No quotes around it.
Check 4: Did you start the bot?
Open your bot in Telegram and tap “Start” or send
/start. Bots can’t message you first.
Check 5: Check the logs
clawdbot gateway logsLook for errors mentioning Telegram, authentication, or your user ID.
WhatsApp specifically
Check 1: Is the session linked?
clawdbot whatsapp statusIf disconnected, re-link:
clawdbot whatsapp linkScan the QR code with your phone (WhatsApp → Settings → Linked Devices).
Check 2: Phone still connected?
WhatsApp Web sessions can drop if your phone loses connection. Make sure your phone has internet and WhatsApp is running.
“AI responses are wrong/weird/dumb”
Symptom: Bot responds but says strange things
Check 1: Is the workspace path correct?
In your config, check the workspace path:
"workspace": "~/clawd"Does that directory actually exist? Does it have an AGENTS.md file?
ls ~/clawd/AGENTS.mdCheck 2: Is AGENTS.md readable?
The AI reads this file for instructions. If it’s empty or missing, the AI has no guidance.
cat ~/clawd/AGENTS.mdShould contain clear instructions about how the AI should behave. Not sure what Clawdbot is or how it works? Read What is Clawdbot first.
Check 3: Is the model actually connected?
Sometimes API keys expire or get revoked.
clawdbot models listShould show your model as available. If not, re-add your API key:
clawdbot configure --section modelsCheck 4: Are you hitting context limits?
Very long conversations can confuse AI. Try starting fresh with “forget the previous conversation” or starting a new chat.
“Authentication errors”
“Unauthorized” or “Invalid API key”
Your AI model credentials are wrong or expired.
Anthropic: 1. Go to console.anthropic.com 2. Check
your API key is active 3. If using Max subscription, re-run OAuth:
bash clawdbot models auth setup-token --provider anthropic
OpenAI: 1. Check platform.openai.com 2. Verify billing is active 3. Regenerate API key if needed
“OAuth error” or “Refresh token expired”
Tokens expire. Re-authenticate:
Google (Gmail/Calendar):
gog auth loginFollow the browser prompts.
Anthropic Max:
clawdbot models auth setup-token --provider anthropic“Email/Calendar not working”
Gmail won’t connect
Check 1: Is gog installed?
gog --versionIf not: brew install gog (macOS) or see gog docs
Check 2: Are you authenticated?
gog auth statusIf not logged in:
gog auth loginCheck 3: Is the account correct?
If you have multiple Google accounts, specify which one:
gog gmail messages search "test" --account your@email.comCheck 4: API enabled in Google Cloud?
Gmail API might need enabling: 1. Go to Google Cloud Console 2. Find your project 3. APIs & Services → Enable APIs 4. Search for “Gmail API” and enable it
Same for Calendar API if calendar isn’t working.
Calendar says “API not enabled”
Follow check 4 above, but enable “Google Calendar API” instead.
“Gateway keeps crashing”
Symptom: Starts then stops
Check 1: Look at the crash reason
clawdbot gateway logs | tail -50The error message usually tells you what’s wrong.
Common crashes:
“Cannot find module…” — Dependency issue. Try reinstalling:
npm install -g clawdbot --force“EADDRINUSE” — Port already in use. Either kill the other process or change ports.
“JavaScript heap out of memory” — Rare, but increase Node memory limit:
export NODE_OPTIONS="--max-old-space-size=4096"
clawdbot gateway startCrashes after running for a while — Could be a memory leak or API issue. Check if it’s related to specific actions (sending email, browsing web, etc.)
If it crashes repeatedly
Set up auto-restart. If you’re using launchd (macOS) or systemd (Linux), enable KeepAlive/Restart. See the setup guide for service configuration.
“Can’t send emails”
AI drafts but won’t send
Check 1: Is send permission enabled?
In your gog config, ensure send capability is allowed:
gog auth statusShould show Gmail scopes including send.
Check 2: Does your AGENTS.md allow sending?
The AI might be following instructions that require approval. Check for lines like: - “Never send emails without approval” - “Draft only, don’t send”
Check 3: Try manually
gog gmail send --to "your@email.com" --subject "Test" --body "Testing" --account your@email.comIf this fails, it’s a gog/Gmail issue, not Clawdbot.
“Voice/TTS not working”
No audio output
Check 1: Is TTS configured?
In your config, you need:
"tts": {
"provider": "elevenlabs",
"apiKey": "your-key-here",
"voiceId": "voice-id-here"
}Check 2: Is the API key valid?
Go to elevenlabs.io, check your API key and remaining credits.
Check 3: Does the voice ID exist?
Voice IDs can be wrong or deleted. Find valid IDs in your ElevenLabs dashboard.
“Everything was working, now it’s not”
Sudden breakage after it was fine
What changed?
Something changed. Think about: - Did you update Clawdbot?
(npm update -g clawdbot) - Did you edit the config? - Did
your API subscription expire? - Did OAuth tokens expire?
Quick recovery attempts:
Restart the gateway:
clawdbot gateway restartRe-authenticate APIs:
gog auth login clawdbot models auth setup-token --provider anthropicCheck API billing (seriously, this is often it)
Restore previous config:
cp ~/.clawdbot/clawdbot.json.backup ~/.clawdbot/clawdbot.json clawdbot gateway restart(Assuming you have backups. You do have backups, right?)
Still Stuck?
If nothing above fixed it:
1. Get detailed logs
DEBUG=* clawdbot gateway start --foreground 2>&1 | tee debug.logThis creates verbose output. Look for obvious errors.
2. Ask the community
Clawdbot Discord has people who’ve seen most problems. Share: - What you’re trying to do - The exact error message - Relevant config (redact API keys!) - What you’ve already tried
3. Check GitHub Issues
github.com/clawdbot/clawdbot/issues — someone might have reported the same bug.
4. Fresh start (nuclear option)
If everything’s hopelessly broken:
# Backup first!
cp -r ~/.clawdbot ~/.clawdbot.old
cp -r ~/clawd ~/clawd.old
# Clean reinstall
npm uninstall -g clawdbot
rm -rf ~/.clawdbot
npm install -g clawdbot
clawdbot initThen reconfigure from scratch. Annoying but sometimes faster than debugging.
Prevention Tips
To avoid future headaches:
Back up your config before changing it
cp ~/.clawdbot/clawdbot.json ~/.clawdbot/clawdbot.json.backupKeep Clawdbot updated but not immediately — let others find bugs first
# Check current version
clawdbot --version
# Update when ready
npm update -g clawdbotMonitor your API accounts — set billing alerts, check usage
Version control your workspace — git commit your AGENTS.md, MEMORY.md, etc.
Something not covered here? Let us know and we’ll add it.
Need Help Setting This Up?
Swarm builds and manages AI assistants for businesses. Same tech, zero headache.
Book a Free Consultation →