wa
A Claude Code plugin that reads WhatsApp Desktop data on a Mac.
- It is read-only.
- It reads, searches and watches the chats you allow.
- It saves the attachments of a chat.
What you need.
- A Mac (Apple silicon or Intel) with WhatsApp Desktop, linked to your phone.
- Claude Code.
- No GitHub account. The repo and its releases are public.
Install.
- In Claude Code, add the marketplace:
/plugin marketplace add scastillo/wa.
- Install the plugin:
/plugin install wa@wa.
- Restart Claude Code.
- Ask Claude to check WhatsApp health, or run
/wa:whatsapp doctor.
- The first
wa call downloads the binary for the plugin version.
- It checks the binary against the release
SHA256SUMS before it runs it.
- macOS can ask for access to other apps' data. Allow it, or
wa cannot read the chats.
Allow chats.
Claude reads no chat until you allow it. Pick one way:
-
Ask Claude: "allow the book club chat in WhatsApp". It runs wa allow --match "book club" for you.
-
Your own terminal: ~/.local/share/wa/bin/wa allow --match "part of the chat name". That link exists after the first wa call in Claude Code.
-
Allow everything: wa allow --all. Every chat becomes readable, now and in the future. wa doctor then says so on every check. Undo with wa disallow --all, which puts the per-chat list back in charge.
-
The allowlist is ~/.config/wa/policy.json. Remove one chat with wa disallow <chat>.
-
With allow-all on, wa watch wakes on any chat. Give it --chat <JID> to wait for one chat.
-
macOS can ask your terminal for access to other apps' data. Allow it.
Use.
Ask Claude in plain words. Examples:
- "What did the book club group say since Monday?"
- "Find the WhatsApp message about the contract."
- "Save all photos from the book club group."
- "Tell me when a new message arrives in the book club group."
The skill runs these commands:
| Command | What it does |
|---|
wa doctor | Checks the app, the data, the schema and the allowlist. |
wa chats --match T | Lists allowed chats. Other chats appear only as a count. |
wa read <chat> [--since D] | Prints the messages of an allowed chat. |
wa search <text> [--chat C] | Searches allowed chats. |
wa media <chat> [--dry-run] [--dest DIR] | Saves attachments. The default folder is ~/Downloads/whatsapp. |
wa watch --state F [--seed] [--wait S] | Waits for the first new message in an allowed chat. |
Exit codes: 0 ok, 1 error, 2 more than one chat matches, 3 the chat is not on the allowlist.
Keep a group's files on disk.
Ask Claude: "save the photos from the book club group, and tell me when new ones arrive". It then:
- Saves what is already there with
wa media <JID>.
- Seeds a watcher once, and waits with
wa watch --state <file> --chat <JID> --wait 540 --poll 15.
- Runs
wa media <JID> again on each new file, which saves only what is new.
Send messages (optional).
Reading needs nothing but your Mac. Sending needs a linked device, and that is a different decision.
- It breaks WhatsApp's terms. A ban hits your phone number, not the app. Reports exist of bans on low-volume, reply-only accounts, so the risk is small but real.
- Ask Claude to set it up, or run
wa link yourself. It installs wacli (MIT, from its own release, checksum-checked) and shows a QR code.
- Scan the QR: WhatsApp on your phone → Settings → Linked devices → Link a device.
wa link --status confirms it, and wa unlink undoes it.
- Then:
wa send <chat> "text" or wa send <chat> --file photo.jpg --caption "look".
wa refuses what gets numbers banned:
| Guard | The ban code behind it |
|---|
| Never the first message in a chat | 101, messages to people who do not have you in their contacts |
| The same text to at most 2 chats a day | 104, the same message too many times |
| 50 messages a day, 3 to 8 seconds apart | bulk messaging |
| Stops on a temporary ban until it expires; stops on a logout until you pair again | 402 and 401 |
Nothing is sent without --yes. Without it, wa send prints the message and stops.
Privacy.
wa opens WhatsApp's databases read-only. It never writes to WhatsApp's folder.
- The allowlist fails closed. A missing file allows no chat. A file that
wa cannot parse stops wa.
- For chats not on the allowlist,
wa prints counts only. wa media names their files <date>_<number>.<ext>.
- Text that
wa prints goes into the Claude session, so it goes to Anthropic. The allowlist is the control.
wa does not link a device and does not log in. wa media fetches only from CDN links that the app already stored, and checks the MAC of each file.
Limits.