Vibe Coding Academy Logo Vibe Coding Academy

WhatsApp Stopped Working in OpenClaw?

Diagnose the issue, check your logs, and re-establish the connection in minutes. Here's exactly how to fix it.

Published February 21, 2026 · 4 min read

#OpenClaw #WhatsApp #Troubleshooting

Your OpenClaw has been running great. Messages come through WhatsApp, your agent responds, everything works. Then suddenly: nothing. Messages aren't coming through anymore. What happened?

The most likely cause: your WhatsApp session got disconnected. Here's how to diagnose and fix it.

Why Does This Happen?

The most common causes are:

Step 1: Check the Logs

First, let's confirm what's happening. If you're running OpenClaw on a VPS, you'll need to SSH into your server and check the system logs.

1Connect to your VPS

Open your terminal and connect via SSH:

ssh root@your-vps-ip

Replace your-vps-ip with your actual VPS IP address.

2Check the WhatsApp logs

Once connected, run this command to see recent WhatsApp-related log entries:

grep -i whatsapp /var/log/syslog | tail -50

Or use OpenClaw's built-in log viewer:

openclaw logs --follow

What to look for

If WhatsApp is disconnected, you'll see errors like this:

[whatsapp] [default] channel exited: {"statusCode":428,"error":"Precondition Required","message":"Connection Terminated"}
[whatsapp] [default] auto-restart attempt 1/10 in 5s
[whatsapp] [default] auto-restart attempt 2/10 in 10s

The 428 Connection Terminated error confirms that WhatsApp has rejected the stored credentials — the session no longer exists.

Step 2: Re-establish the Connection

A simple restart won't work because the old credentials are stale. You need to delete them and re-link WhatsApp from scratch.

⚠️ Proceed with Caution

The commands below delete OpenClaw session folders. If you make a typo or run the wrong command, you could corrupt your configuration.

3Back up your config (optional but recommended)

cp -r ~/.openclaw ~/.openclaw-backup

4Stop the gateway

openclaw gateway stop

5Delete stale session data

# Remove all WhatsApp session files rm -rf ~/.openclaw/credentials/whatsapp rm -rf ~/.openclaw/devices rm -rf ~/.openclaw/delivery-queue

6Start gateway and re-link

openclaw gateway start openclaw channels login --channel whatsapp

7Scan the QR code

A QR code will appear in your terminal. On your phone:

  1. Open WhatsApp
  2. Go to SettingsLinked Devices
  3. Tap Link a Device
  4. Scan the QR code on your terminal

8Verify the connection

openclaw status

✅ Success

You should see whatsapp: connected in the output. Your messages should start flowing again.

Quick Reference

Here's the complete fix in one block — copy and run each line:

# Full WhatsApp re-link procedure openclaw gateway stop rm -rf ~/.openclaw/credentials/whatsapp rm -rf ~/.openclaw/devices rm -rf ~/.openclaw/delivery-queue openclaw gateway start openclaw channels login --channel whatsapp

Prevention Tips

💡 Avoid Future Disconnections

🛠️ Still Stuck?

If you've tried everything and your OpenClaw setup still isn't working, I offer 1-on-1 troubleshooting sessions to help you get unstuck.

Book a Session

Want More OpenClaw Tips?

Join Vibe Coding Academy for troubleshooting guides, performance tips, and a community of builders running AI agents.

Join the Academy

Key Takeaways

Abdul Khan
Written by
Abdul Khan