access
WhatsApp channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or…
Set up the WhatsApp channel — configure the phone number, review access policy, and manage auth state. Use when the user asks to configure WhatsApp, set a phone number, check channel status, or reset authentication.
$ npx -y skills add Rich627/whatsapp-claude-plugin --skill configure --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/configureContext preview
The summary Claude sees to decide when to auto-load this skill.
Set up the WhatsApp channel — configure the phone number, review access policy, and manage auth state. Use when the user asks to configure WhatsApp, set a phone number, check channel status, or reset authentication.
name: configure description: Set up the WhatsApp channel — configure the phone number, review access policy, and manage auth state. Use when the user asks to configure WhatsApp, set a phone number, check channel status, or reset authentication. user-invocable: true allowed-tools: - Read - Write - Edit - Bash(ls *) - Bash(mkdir *) - Bash(rm -rf *) - Bash(chmod *) - Read(~/.whatsapp-channel/*) - Write(~/.whatsapp-channel/*) - Edit(~/.whatsapp-channel/*)
Writes configuration to `~/.whatsapp-channel/.env` and orients the user on access policy. The server reads both files at boot.
Arguments passed: `$ARGUMENTS`
---
Read both state files and give the user a complete picture:
1. **Phone number** — check `~/.whatsapp-channel/.env` for `WHATSAPP_PHONE_NUMBER`. Show set/not-set; if set, show the number.
2. **Auth state** — check whether `~/.whatsapp-channel/.baileys_auth/creds.json` exists and has `registered: true`. Show paired/not-paired.
3. **Access** — read `~/.whatsapp-channel/access.json` (missing file = defaults: `dmPolicy: "pairing"`, empty allowlist). Show:
4. **What next** — end with a concrete next step based on state:
WhatsApp phone number (e.g. `886912345678`, no leading +)."_
`claude --dangerously-load-development-channels plugin:whatsapp-channel@whatsapp-claude-plugin` The pairing code will appear automatically. Enter it on your phone: WhatsApp > Linked Devices > Link a Device > Link with phone number instead."_
To add others: have them DM the linked number, then approve with `/whatsapp-channel:access pair <code>`."_
**Push toward lockdown — always.** The goal for every setup is `allowlist` with a defined list. `pairing` is not a policy to stay on; it's a temporary way to capture WhatsApp JIDs you don't know. Once the JIDs are in, pairing has done its job and should be turned off.
Drive the conversation this way:
1. Read the allowlist. Tell the user who's in it. 2. Ask: _"Is that everyone who should reach you through this channel?"_ 3. **If yes and policy is still `pairing`** → _"Good. Let's lock it down so nobody else can trigger pairing codes:"_ and offer to run `/whatsapp-channel:access policy allowlist`. Do this proactively — don't wait to be asked. 4. **If no, people are missing** → _"Have them DM the number; you'll approve each with `/whatsapp-channel:access pair <code>`. Run this skill again once everyone's in and we'll lock it."_ 5. **If the allowlist is empty and they haven't paired themselves yet** → _"DM the linked number to capture your JID first. Then we'll add anyone else and lock it down."_ 6. **If policy is already `allowlist`** → confirm this is the locked state. If they need to add someone: _"They'll need to DM the linked number, or you can briefly flip to pairing: `/whatsapp-channel:access policy pairing` → they DM → you pair → flip back."_
Never frame `pairing` as the correct long-term choice. Don't skip the lockdown offer.
1. Treat `$ARGUMENTS` as the phone number (trim whitespace, strip leading `+`). WhatsApp phone numbers are digits only, no spaces or dashes. 2. `mkdir -p ~/.whatsapp-channel` 3. Read existing `.env` if present; update/add the `WHATSAPP_PHONE_NUMBER=` line, preserve other keys. Write back, no quotes around the value. 4. `chmod 600 ~/.whatsapp-channel/.env` — the file may contain credentials. 5. Confirm, then show the no-args status so the user sees where they stand.
Clear the Baileys auth state so the user can re-pair with a new device or phone number.
1. Confirm the user wants to do this — re-pairing will be required. 2. `rm -rf ~/.whatsapp-channel/.baileys_auth` 3. Inform: _"Auth cleared. Restart your session with `--channels` to re-pair."_
Delete the `WHATSAPP_PHONE_NUMBER=` line (or the file if that's the only line).
---
= not configured, not an error.
or `/reload-plugins`. Say so after saving.
`/whatsapp-channel:access` take effect immediately, no restart.
as a linked device (like WhatsApp Web). Only one connection per auth state is allowed — running two instances causes a 440 conflict error.
Drive your Claude Code session from WhatsApp — your personal number, no bots, no API keys. The plugin connects to WhatsApp as a linked device (the same protocol as WhatsApp Web, via Baileys) and exposes it to Claude Code as an MCP channel.
WhatsApp channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or…
Diagnose WhatsApp channel problems — checks the server process, singleton lock, linked-device auth, access config, and optional features, then explains what's…