agent-channeltalk
Interact with Channel Talk using extracted desktop app or browser credentials - read chats,…
Interact with WhatsApp - send messages, read chats, manage conversations
$ npx -y skills add agent-messenger/agent-messenger --skill agent-whatsapp --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agent-whatsappContext preview
The summary Claude sees to decide when to auto-load this skill.
Interact with WhatsApp - send messages, read chats, manage conversations
name: agent-whatsapp
description: Interact with WhatsApp - send messages, read chats, manage conversations
version: 2.38.0
allowed-tools: Bash(agent-whatsapp:*)
metadata:
openclaw:
requires:
bins:
- agent-whatsapp
install:
- kind: node
package: agent-messenger
bins: [agent-whatsapp]A Baileys-backed WhatsApp CLI for AI agents. Links as a companion device via QR code or pairing code, so your phone stays connected. Each command connects on demand and disconnects when done.
Use one of these entrypoints:
Before diving in, a few things about WhatsApp's architecture:
# Link as companion device via QR code (scan with your phone) agent-whatsapp auth login --qr # Or link via pairing code (enter the code on your phone) agent-whatsapp auth login --phone +1234567890 # List chats agent-whatsapp chat list # Send a message agent-whatsapp message send +1234567890 "Hello from agent-whatsapp"
WhatsApp supports two authentication methods. Both register the CLI as a companion (linked) device, so your phone session is never affected.
When a command fails because no account is configured, the agent MUST drive the auth flow itself. Never tell the user to run commands. The agent runs everything.
**Step 1: Check for existing accounts**
agent-whatsapp auth list
If accounts exist, use `agent-whatsapp auth use <account-id>` and retry the original command.
**Step 2: If no accounts, start QR login (preferred)**
agent-whatsapp auth login --qr
# -> QR code displayed in terminal + opened in browser
# -> {"next_action":"scan_qr","qr_url":"...","message":"Scan with WhatsApp on your phone"}Tell the user to scan the QR code with WhatsApp: Settings > Linked Devices > Link a Device > scan the QR code.
**Alternative: Pairing code login**
If QR scanning is not possible (e.g. headless environment), ask for the phone number and use pairing code:
agent-whatsapp auth login --phone +1234567890
# -> {"pairing_code":"A1B2-C3D4","message":"Enter this code in WhatsApp > Linked Devices > Link with phone number"}Tell the user the pairing code and ask them to enter it on their phone.
**Step 3: Wait for confirmation**
The CLI waits until the user confirms on their phone. Once confirmed:
# -> {"authenticated":true,...}**Step 4: Retry the original command**
After successful auth, immediately execute whatever the user originally asked for.
agent-whatsapp auth status # Check current auth state agent-whatsapp auth status --account <id> # Check specific account agent-whatsapp auth list # List all linked accounts agent-whatsapp auth use <id> # Switch active account agent-whatsapp auth logout # Unlink current account agent-whatsapp auth logout --account <id> # Unlink specific account
The agent maintains a `~/.config/agent-messenger/MEMORY.md` file as persistent memory across sessions. This is agent-managed. The CLI does not read or write this file. Use the `Read` and `Write` tools to manage your memory file.
At the **start of every task**, read `~/.config/agent-messenger/MEMORY.md` using the `Read` tool to load any previously discovered chat IDs, contact names, and preferences.
After discovering useful information, update `~/.config/agent-messenger/MEMORY.md` using the `Write` tool. Write triggers include:
When writing, include the **complete file content**. The `Write` tool overwrites the entire file.
Never store auth credentials, session keys, or any sensitive data. Never store full message content (just IDs and chat context).
If a memorized JID returns an error, remove it from `MEMORY.md`. Don't blindly trust memorized data. Prefer re-listing over using a memorized JID that might be stale.
# Agent Messenger Memory ## Wh
Your agent messages as you — not as a bot One CLI for Slack, Discord, Teams, Webex, Telegram, WhatsApp, LINE, WeChat, iMessage, Instagram, KakaoTalk, and Channel Talk.
Repo: agent-messenger/agent-messenger
Interact with Channel Talk using extracted desktop app or browser credentials - read chats,…
Interact with Channel Talk workspaces using API credentials - send messages, read chats,…
Interact with Discord servers - send messages, read channels, manage reactions
Interact with Discord servers using bot tokens - send messages, read channels, manage…
Interact with iMessage on a Mac via the imsg tool - send messages, read chats, watch for new…
Interact with Instagram DMs - send messages, read conversations, manage accounts