WhatsApp Setup
Complete guide to connecting WhatsApp with OpenClaw
Complete guide to connecting WhatsApp with OpenClaw
WhatsApp is one of the most popular messaging platforms, and OpenClaw connects to it using WhatsApp Web via the Baileys library. New here? Start with the WhatsApp quickstart (QR login in five steps), then return for groups, media, and Business Platform choices. If you are choosing between this Web-style channel and Meta's official business platform, jump to WhatsApp Business Platform vs this channel below.
Setting up WhatsApp is straightforward:
openclaw gatewayopenclaw channels loginWhatsApp uses QR code pairing (like WhatsApp Web):
openclaw channels loginThe QR code appears as:
{
"channels": {
"whatsapp": {
"enabled": true
}
}
}
Control who can message you:
{
"channels": {
"whatsapp": {
"allowFrom": ["+1234567890", "+0987654321"]
}
}
}
{
"channels": {
"whatsapp": {
"groups": {
"*": {
"requireMention": true
}
}
}
}
}
By default, unknown senders require pairing:
openclaw pairing approve whatsapp <code>To allow public DMs (not recommended):
dmPolicy: "open""*" in allowlistIf QR code doesn't show:
http://localhost:18789openclaw statusIf WhatsApp disconnects:
openclaw gatewayopenclaw channels loginIf messages aren't coming through:
Not legal advice. WhatsApp and Meta policies vary by country and product. Use the following as engineering questions alongside counsel and Meta's own docs.
The steps above use WhatsApp Web-style pairing (QR login, Baileys-class libraries)—similar to WhatsApp Web in a browser. That path suits personal or small-team setups where you accept the operational and ToS risks of unofficial clients.
Organizations that need Meta-supported customer messaging usually adopt the official Business Platform: verified business, approved numbers, template messages, conversation-category pricing, and contact-center tooling. Work shifts to webhooks and Meta dashboards—not QR login on a personal account. If compliance asks for vendor-supported channels or B2C opt-in records, evaluate WABA early; it is a different project than self-hosting this channel.
| Topic | Web-style channel (this page) | WhatsApp Business Platform |
|---|---|---|
| Setup | QR pairing; gateway holds session | Business verification, tokens, webhooks |
| Best fit | You and a few trusted chats | Customer messaging at scale |
| Risk posture | Higher; account actions are on you | Lower inside supported APIs |
Both paths get prompt-injection and social engineering from inbound messages. Read Security and tips regardless. WABA adds billing accounts and webhook secrets to rotate. Official product limits: Meta's documentation. OpenClaw behavior: docs.openclaw.ai. Disclosure for how this site is run.