Limited time offer: Get .COM at ₦10000 Use NGNEWCOM
India English
Kenya English
United Kingdom English
South Africa English
Nigeria English
United States English
United States Español
Indonesia English
Bangladesh English
Egypt العربية
Tanzania English
Ethiopia English
Uganda English
Congo - Kinshasa English
Ghana English
Côte d’Ivoire English
Zambia English
Cameroon English
Rwanda English
Germany Deutsch
France Français
Spain Català
Spain Español
Italy Italiano
Russia Русский
Japan English
Brazil Português
Brazil Português
Mexico Español
Philippines English
Pakistan English
Türkiye Türkçe
Vietnam English
Thailand English
South Korea English
Australia English
China 中文
Canada English
Canada Français
Somalia English
Netherlands Nederlands

How to Connect OpenClaw to WhatsApp

Buy domains, business emails, hosting, VPS and more: Get Started

Cheapest Domains in Nigeria

Get your .com.ng domain now for just ₦5,500

.COM.NG for ₦5,500 | .COM for ₦10,000

There are 3.3 billion monthly WhatsApp users globally, and connecting OpenClaw to it lets you interact with your AI assistant right where you already chat. 

You can send messages, get responses, and even have the bot participate in group conversations.

And the best part?

You don’t need a WhatsApp Business API account to make this work. OpenClaw connects using the Baileys library, which essentially acts as a WhatsApp Web client. This means you can use a regular WhatsApp account.

However, a few important rules before you start. Use a dedicated OpenClaw phone number. If you use your personal number, every message you send becomes input for the agent, which can get messy fast. 

Also, always set channels.whatsapp.allowFrom to restrict who can talk to your bot to minimize spam and unwanted interactions.

Do this Before You Connect

Before you jump in, make sure you have these things sorted:

  • OpenClaw is installed and running on your system. The WhatsApp plugin won’t work without the setup.
  • A dedicated WhatsApp account just for OpenClaw to keep your personal chats separate from bot interactions.
  • A phone with WhatsApp installed so you can scan the QR code. This is mandatory, the QR code appears in your terminal, and you scan it from your phone.
  • An available linked device slot. WhatsApp only allows four linked devices per account. You’re about to use one of them.

Six Simple Steps to Connect OpenClaw to WhatsApp

openclaw to whatsapp

Step 1: Install the WhatsApp Plugin (if not already installed)

If WhatsApp isn’t showing up as an option, you need to add the plugin first. Run this command in your terminal:

bash
openclaw channels add --channel whatsapp

This ensures the WhatsApp channel is available in your OpenClaw setup.

Step 2: Configure Security Settings (BEFORE Pairing)

Do this before you even think about scanning a QR code.

Open your OpenClaw configuration file at ~/.openclaw/openclaw.json. Add your phone number to the allowFrom list to restrict who can send messages to your bot.

json
{
  "channels": {
    "whatsapp": {
      "dmPolicy": "allowlist",
      "allowFrom": ["+15555550123"]
    }
  }
}

Replace +15555550123 with your actual number in E.164 format (country code + number without any leading zeros or symbols).

If you plan to use the bot in groups, you can also add group settings to control how it behaves:

json
{
  "channels": {
    "whatsapp": {
      "groups": {
        "*": { "requireMention": true }
      }
    }
  }
}

This prevents the bot from responding to every group message.

Step 3: Run the Channel Login Command

With security configured, it’s time to get the QR code. Run:

bash
openclaw channels login --channel whatsapp

Your terminal will display a QR code and this is what you’ll scan from your phone.

Step 4: Scan the QR Code

openclaw to whatsapp - linked devices

It’s easy:

  • Open WhatsApp on your phone.
  • Go to Settings → Linked Devices.
  • Tap Link a Device.
  • Scan the QR code displayed in your terminal.

Important: The QR code expires after about one hour, and WhatsApp allows a maximum of three pending QR requests at a time. If the QR disappears or times out, just run the login command again.

Step 5: Start the Gateway

After scanning, start the OpenClaw gateway to establish the connection:

bash
openclaw gateway --port 18789

The gateway runs the service that handles message routing between WhatsApp and your AI agent.

Step 6: Verify the Connection

Now you need to confirm everything is working.

Check the connection status:

bash
openclaw health

You should see WhatsApp listed as “connected”.

Then, send a test message from your allowlisted number to the WhatsApp account you linked. The bot should reply.

Troubleshooting Common Issues

Even with a perfect setup, things can sometimes go wrong. Examples of common problems and how to fix them:

IssueFix
QR code won’t appear or times outRun openclaw channels login --channel whatsapp again to generate a fresh QR code
“Not linked” errorScan a new QR code from WhatsApp → Settings → Linked Devices
Bot connected but not replying to DMsAdd your number to allowFrom in ~/.openclaw/openclaw.json using E.164 format (e.g., +15555550123)
Group messages ignoredMention the bot in the group, or use the /activation always command to make it respond to all messages.
Constant reconnect loopRun openclaw doctor to diagnose issues, or relink with openclaw channels logout --channel whatsapp then openclaw channels login --channel whatsapp
Port 18789 already in useUse openclaw gateway --port 18789 --force to force the gateway to bind to the port
Session credentials corruptedDelete the session and re-login with openclaw channels logout --channel whatsapp then openclaw channels login --channel whatsapp

OpenClaw to WhatsApp FAQs

Do I need WhatsApp Business API?

Can I use my personal WhatsApp number?

How many devices can be linked to one WhatsApp account?

Can the bot respond in group chats?

How do I confirm the connection is working?

Get Started with OpenClaw On Truehost

Need a reliable place to run OpenClaw? We offer fast OpenClaw hosting for AI workloads and automation.

Our VPS instances are preconfigured with Ubuntu environments, Playwright browser frameworks, and Python runtimes, all tuned for headless web interaction.

You get isolated vCPU resources and guaranteed physical memory which is so essential for OpenClaw.

Also, our hypervisors automatically install prebuilt Node packages and script extensions, so you’re ready to go almost instantly.

Once deployed, you access your console via root SSH, paste your deployment keys securely, and start your automation tasks.

Choose from flexible plans that scale with your needs, and upgrade your vCPU, RAM, or storage anytime without downtime.

Carolyne Ndumia
Author

Carolyne Ndumia

SEO Content Writer Kenya

Carolyne Ndumia has always believed that the best content feels like a conversation. For the past four years, she has built a career around that idea as an SEO Content Writer and Marketer, helping blogs and brands communicate with warmth, clarity, and purpose. Her approach blends creative storytelling with practical strategy. Writing a blog post, editing a newsletter, or optimizing a web page for SEO, Carolyne's goal remains the same: to create content that connects with people and makes sense for search engines. She relies on trusted tools like SEMrush for keyword research and draws on years of editorial experience to craft copy that resonates. Carolyne is here to support your team with structured, creative content operations so you can relax knowing the details are taken care of.

View All Posts