Updated

How to Connect OpenClaw to WhatsApp

OpenClaw connects through its WhatsApp channel plugin. You link a WhatsApp account with a QR code, start the OpenClaw Gateway, and approve the people who may reach the agent. You do not need VoidFix, Twilio, or Meta's Cloud API for this setup.

The short answer

Use OpenClaw's own channel before adding another service.

OpenClaw connects through WhatsApp Web with Baileys. Its Gateway keeps that link running. You normally do not need another messaging service for this setup.

A linked-device connection does not remove WhatsApp's rules. Do not use it for unwanted bulk messages or contact people who did not expect your message.

Name the parts

The channel carries the chat into the OpenClaw Gateway.

WHATSAPPLinked accountReceives the chat
CHANNELOpenClaw WhatsApp pluginKeeps the Baileys connection
GATEWAYAgent and allowed toolsHandles an approved message

This is not the official WhatsApp Business Cloud API. It is also not VoidFix or another outside messaging gateway. Those ways to connect use different accounts and message paths. They also use different credentials.

Next step:Compare three ways to connect WhatsApp

Prepare four things

Decide who owns the number and who may use the agent.

01

A running OpenClaw install

Finish the normal OpenClaw setup first. The Gateway must be able to start before a chat channel can stay connected.

02

A WhatsApp number you control

OpenClaw recommends a separate number. Decide who owns it and who can use the linked phone.

03

A private place for the QR code

Scan the live code directly. Do not publish it in a screenshot, chat, guide, support post, or recording.

04

A sender access plan

Start with pairing or a small allowlist. Do not open a tool-enabled agent to every unknown sender.

Six setup steps

Link the account, then approve the person.

  1. 01

    Add the WhatsApp channel. Run openclaw onboard or openclaw channels add --channel whatsapp. OpenClaw offers to install its WhatsApp channel plugin when it is missing. Or install it by hand with openclaw plugins install @openclaw/whatsapp.

  2. 02

    Choose the sender policy. In the channel settings, keep direct messages (DMs) on pairing while you set up. Review the DM and group rules below before adding users.

  3. 03

    Show the login QR code. Login is QR-only. On a remote server without a screen, first arrange a reliable way to get the live QR to your phone. Screenshots or forwarded images can expire on the way. Then run openclaw channels login --channel whatsapp.

  4. 04

    Link the WhatsApp account. On the phone, open WhatsApp's Linked Devices screen and scan the QR code. Treat that QR code like a short-lived password.

  5. 05

    Start the OpenClaw Gateway. Run openclaw gateway. The Gateway keeps the live WhatsApp connection and listens for messages.

  6. 06

    Approve the first sender. Send a message to the linked number. Open Settings → Channels → DM access requests, find the WhatsApp account, and approve the sender. Or find the code with openclaw pairing list whatsapp and approve it with openclaw pairing approve whatsapp <CODE>.

The QR code links the WhatsApp account to OpenClaw. The later pairing code approves a person who wants to message the agent. One code does not replace the other.

Two separate doors

Account login and sender approval protect different things.

Door 1: WhatsApp login

The QR code links the WhatsApp account. Anyone who gets a live login code may be able to add a linked device, so keep it private.

Door 2: agent access

The direct-message policy decides which senders can reach the agent. With pairing, an unknown sender waits until the operator approves the request.

Pairing codes have 8 characters and expire after 1 hour. Up to 3 requests can wait per WhatsApp account. Extra requests are ignored until one expires or is approved. Approval gives DM access only, not group access.

Before real users

Keep the sender list small and the agent's power limited.

  1. 01

    Run OpenClaw's built-in safety check. Use openclaw security audit after changing access and before other people can reach the Gateway.

  2. 02

    Set the DM policy. dmPolicy has four values. pairing is the default: unknown senders request access, and you approve them. An allowlist is a list of approved phone numbers. Put those numbers in allowFrom. With allowlist, only those numbers can send DMs. With open, you must put "*" in allowFrom. disabled blocks all DMs.

  3. 03

    Limit groups. groupPolicy sets the group access rule. groupAllowFrom lists the allowed group senders. By default, group replies require a mention of the agent. Allow only groups and senders you have reviewed.

  4. 04

    Protect saved login files. Keep the OpenClaw data folder and WhatsApp login files out of public backups and shared code folders.

  5. 05

    Do not trust links, files, or instructions inside messages. They can try to trick the agent. Limit risky tools and keep sensitive work separate.

If different groups must not share data, read the security guide to learn how to keep them separate.

Small checks first

Find whether the problem is login, Gateway, or access.

What you seeCheckUseful command
Not linkedRun QR login again and scan the live codeopenclaw channels login --channel whatsapp
Linked but no repliesCheck Gateway and channel healthopenclaw channels status --probe
Unknown sender waitsReview the direct-message access requestopenclaw pairing list whatsapp
Repeated reconnectsCheck the host connection, run openclaw channels status --probe and openclaw gateway status, then read openclaw logs --follow.openclaw doctor

Back up the correct account data before logging out or linking the account again. openclaw channels logout --channel whatsapp clears the WhatsApp login for that account.

Guides used for this setup

Check OpenClaw's guides for updated steps.

Sources checked November 10, 2026. Commands, plugin behavior, and WhatsApp rules can change. We did not test message delivery, connection time, or account limits for this page.

Next step:Compare OpenClaw VPS setups

Straight answers

OpenClaw WhatsApp questions.

Does OpenClaw have a built-in way to connect WhatsApp?

Yes. OpenClaw documents a WhatsApp channel plugin that the normal channel setup can install. The OpenClaw Gateway owns the linked session after login.

Does OpenClaw WhatsApp use the official Cloud API?

No. OpenClaw uses WhatsApp Web through Baileys. This channel does not use the WhatsApp Business Cloud API.

Do I need VoidFix or Twilio for OpenClaw WhatsApp?

No. This channel uses WhatsApp Web through Baileys. OpenClaw has no separate Twilio WhatsApp channel.

Can I use my personal WhatsApp number?

Yes. Personal-number and self-chat setups are fully supported. OpenClaw recommends a separate number for clearer sender lists and routing.

Why does an unknown sender get a pairing code?

Pairing stops an unknown sender's message from reaching the agent until the operator approves that sender. It is different from the QR code that links the WhatsApp account.

How long does a WhatsApp pairing request stay open?

One hour. Up to three requests can wait per WhatsApp account. After expiry, message again to request a new code. The bot only sends a pairing message when it creates a new request, roughly once per hour per sender.

Will WhatsApp keep working when my computer is off?

Only if the OpenClaw Gateway runs on another always-on computer or server. The linked phone alone does not keep your OpenClaw process running.

Keep the Gateway online

Choose where OpenClaw will keep running.

Compare the hosting options, then decide who will handle updates and backups.

Compare OpenClaw VPS setups