You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add WhatsApp pairing code support as alternative to QR scanning
Adds --phone flag to `openclaw channels login` that uses Baileys'
requestPairingCode() to generate an 8-digit code instead of a QR.
Users enter the code in WhatsApp > Linked Devices > Link with phone number.
This enables WhatsApp linking without a second device for QR scanning,
which is critical for automated/headless deployment flows.
Usage:
openclaw channels login --channel whatsapp --phone +353830836798
Changes:
- session.ts: Accept phoneNumber option, call requestPairingCode() when
QR is generated and phone number is provided, fall back to QR on error
- login.ts: Add phoneNumber parameter to loginWeb(), normalize phone format
- channel.ts: Pass phoneNumber from auth login callback to loginWeb()
- channels-cli.ts: Add --phone option to `channels login` command
- channel-auth.ts: Add phoneNumber to ChannelAuthOptions, pass through
- types.adapters.ts: Add phoneNumber to ChannelAuthAdapter login params
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
0 commit comments