# How do you set up OpenClaw on WhatsApp? Pairing and group policy

Run openclaw channels login --channel whatsapp, scan the QR code, then approve the first sender. Below: the policies for private chats and groups, and fixes.

Tool: OpenClaw. By Julien Lieben. Updated 2026-12-05. Source: https://coldiq.com/university/openclaw/openclaw-whatsapp

## In short

- OpenClaw connects through WhatsApp Web. You link the number by scanning a QR code.
- There are two separate steps: the QR code links your WhatsApp account, and pairing decides who may write to the assistant.
- Private chats use dmPolicy, with pairing as the default. A code has 8 characters and expires after 1 hour.
- Groups use groupPolicy, with allowlist as the default. It blocks everyone until you add senders.
- Pairing approval never opens group access, and in groups the assistant answers only when mentioned unless you change it.

## Steps

1. Run openclaw channels login --channel whatsapp and scan the QR code.
2. Start the Gateway, send a first message, and approve the pairing code.
3. For groups, list the allowed senders and keep the mention rule on.

## Which phone number should you use, and can you connect several?

The OpenClaw docs recommend a separate WhatsApp number for the assistant. The lists of allowed people are clearer, and you avoid confusion with your own chats. A second SIM, an eSIM or a prepaid number works.

A personal number is supported too. The setup then writes a safe base: only your own number is allowed, and selfChatMode is on, so you talk to the assistant in the chat with yourself.

You can connect several. Each number is an account with its own link and its own rules. For example, run openclaw channels login --channel whatsapp --account work to add one named work.

Named accounts inherit the shared settings, and each can set its own dmPolicy and allowFrom. Be careful with the groups list: an account that has its own list replaces the shared one as a whole, so copy what you need into it.

Tip: If you link your personal number and open access to others, messages from customers and friends can become input for the assistant. Use a dedicated number for anything beyond your own chat.


## How do you connect OpenClaw to WhatsApp?

You need OpenClaw installed. WhatsApp is a plugin (an add-on), and OpenClaw offers to install it the first time you choose the channel. To install it yourself, run openclaw plugins install @openclaw/whatsapp.

1. Run openclaw channels login --channel whatsapp. A QR code appears in the terminal.
2. On the phone that holds the number, scan the code with WhatsApp.
3. Start the Gateway with openclaw gateway, if it does not run already as a service.
4. Send the assistant a message from another number. It replies with a pairing code.
5. Run openclaw pairing list whatsapp, then openclaw pairing approve whatsapp <CODE>. You can also approve it in the dashboard under Settings, Channels, DM access requests.
6. Check the link with openclaw channels status --probe.

Tip: On a remote server, show the QR code live. A screenshot or a forwarded picture can expire before you scan it.


## What does dmPolicy control?

DM means a direct message, so a private chat. dmPolicy decides what happens when someone writes to the assistant.

- pairing (default): an unknown sender receives a code, and nothing is processed until you approve.
- allowlist: only the numbers in allowFrom get an answer.
- open: anyone, but only if allowFrom contains "*".
- disabled: no private chats at all.

Tip: Numbers go in international format with a plus sign and no spaces, such as +15551234567. At most 3 pairing requests wait at the same time for one account.


## How does group policy work?

Group access passes three gates in this order: groupPolicy, the list of groups, then the mention rule. Approving someone in private chat does not let that person use the assistant in a group.

- groupPolicy: allowlist (default), open or disabled. With allowlist, the sender must be in groupAllowFrom. If that list is not set, OpenClaw uses allowFrom.
- groups: an optional list of group IDs. When present, only those groups pass. "*" means all of them.
- requireMention: on by default, so the assistant answers only when someone calls it.
- What counts as a call: a real WhatsApp mention, a name pattern you set, a quoted reply to one of its messages, or a voice note from an allowed person whose transcript names it.

> Explain my current WhatsApp access settings in plain words: who can message you in private, which groups you read, who can trigger you there, and whether a mention is needed. Do not change anything.


## What is a safe config for a team group?

A config is the settings file of OpenClaw, openclaw.json. Under channels, then whatsapp, a careful start is dmPolicy set to "pairing", groupPolicy set to "allowlist", groupAllowFrom with the numbers of two or three colleagues, and groups with "*" set to requireMention true.

Every group has its own conversation, apart from your private one. Up to 50 messages that did not call the assistant are given to it as context the next time someone does, so assume it may read recent group messages.

An owner can change the mode of one group by sending /activation mention or /activation always as a message of its own. Other people’s commands of this kind are ignored.

Tip: Tell the group that an assistant is present and reads recent messages. Keep customer data out of groups that contain people from outside the company.


## Why does OpenClaw ignore group messages?

The docs give an order to check. Follow it and stop at the first cause you find.

1. groupPolicy: is it disabled, or allowlist with nobody listed?
2. groupAllowFrom or allowFrom: is this sender there, in international format?
3. groups: if the list exists, does it contain this group or "*"?
4. requireMention and patterns: did the message really call the assistant?
5. Duplicate keys in openclaw.json: a later entry replaces an earlier one.

Tip: Run openclaw logs --follow while someone sends a test message. A blocked message shows as “Inbound message blocked” with its reason.


## How do you fix connection problems?

For a connection that drops, run openclaw channels status --probe, then openclaw doctor. If you see “not linked”, log in again with the same login command.

As a last resort, copy the folder of the account inside ~/.openclaw/credentials/whatsapp/, run openclaw channels logout --channel whatsapp, and scan a new code. Keep that folder private, because it holds the link to your WhatsApp.

Photos, videos and documents up to 50 MB work in both directions by default. Audio from the assistant arrives as a voice note.


## Command

```
openclaw channels login --channel whatsapp
```

## Sources

- [OpenClaw docs: WhatsApp](https://docs.openclaw.ai/channels/whatsapp)
- [OpenClaw docs: WhatsApp group messages](https://docs.openclaw.ai/channels/group-messages)
- [OpenClaw docs: groups](https://docs.openclaw.ai/channels/groups)
- [OpenClaw docs: pairing](https://docs.openclaw.ai/channels/pairing)
- [OpenClaw docs: personal assistant setup](https://docs.openclaw.ai/start/openclaw)

## Questions

**Is the WhatsApp QR code the same as pairing?** No. The QR code links the WhatsApp account to OpenClaw. Pairing approves a person who writes to it.

**Can a paired person use OpenClaw in a group?** Not from pairing alone. Group senders need groupAllowFrom, or the fallback to allowFrom.

**Why did my pairing code stop working?** Codes expire after 1 hour. Ask the person to write again, then approve the new code.

**Can OpenClaw answer every message in a group?** Yes, with requireMention set to false for that group, or /activation always from an owner. The default is mention only.

**Does it use the WhatsApp Business API?** The channel in the docs works through WhatsApp Web, with a QR code and a library called Baileys.


## Related

- [Is OpenClaw safe? OpenClaw security explained](https://coldiq.com/university/openclaw/openclaw-security)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
