/whatsapp:configurefrom whatsapp
Set up the WhatsApp channel — save API credentials and review access policy. Use when the user pastes WhatsApp API credentials, asks to configure WhatsApp, asks "how do I set this up" or "who can reach me," or wants to check channel status.
Ships in whatsapp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Writes the API credentials to ~/.claude/channels/whatsapp/.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:
Credentials — check ~/.claude/channels/whatsapp/.env for the four
required variables. Show set/not-set for each:
WHATSAPP_ACCESS_TOKEN — show first 10 chars masked (EAABwz...)WHATSAPP_PHONE_NUMBER_ID — show full (not a secret)WHATSAPP_VERIFY_TOKEN — show first 6 chars maskedWHATSAPP_WEBHOOK_PORT — show full, or "default (3000)" if absentAccess — read ~/.claude/channels/whatsapp/access.json (missing file
= defaults: dmPolicy: "pairing", empty allowlist). Show:
What next — end with a concrete next step based on state:
/whatsapp:configure token <access_token> phone <phone_number_id> verify <verify_token>."/whatsapp: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 phone numbers you don't know. Once the numbers are in, pairing
has done its job and should be turned off.
Drive the conversation this way:
pairing → "Good. Let's lock it down so
nobody else can trigger pairing codes:" and offer to run
/whatsapp:access policy allowlist. Do this proactively — don't wait to
be asked./whatsapp:access pair <code>. Run this skill
again once everyone's in and we'll lock it."allowlist → confirm this is the locked state.
If they need to add someone: "You can add them directly with
/whatsapp:access allow <phoneNumber>, or briefly flip to pairing:
/whatsapp:access policy pairing → they message → you pair → flip back."Never frame pairing as the correct long-term choice. Don't skip the lockdown
offer.
token <access_token> phone <phone_number_id> verify <verify_token> — save credentialstoken, phone, and verify are keyword-value pairs.
All three are required.mkdir -p ~/.claude/channels/whatsapp.env if present; update/add these lines, preserve other
keys:
WHATSAPP_ACCESS_TOKEN=<access_token>WHATSAPP_PHONE_NUMBER_ID=<phone_number_id>WHATSAPP_VERIFY_TOKEN=<verify_token>chmod 600 ~/.claude/channels/whatsapp/.env — the token is a credential.port <number> — set webhook portmkdir -p ~/.claude/channels/whatsapp.env, update/add WHATSAPP_WEBHOOK_PORT=<number>,
preserve other keys. Write back.clear — remove credentialsDelete the credential lines (or the file if those are the only lines).
.env once at boot. Credential changes need a session
restart or /reload-plugins. Say so after saving.access.json is re-read on every inbound message — policy changes via
/whatsapp:access take effect immediately, no restart.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (was85/claude-channel-whatsapp) — no native marketplace selected
npx claudepluginhub p/was85-whatsapp