Wacli

From composio-community/awesome-agent-clis · View interactive version

Wacli is an AI agent skill from the GitHub repository composio-community/awesome-agent-clis. CLI for WhatsApp messaging — sync history, search messages, send texts and files, manage contacts and groups. Use when an agent needs to send WhatsApp messages, search chat history, or manage WhatsApp groups.

How to use this skill

Skill file

wacli — WhatsApp CLI

Sync, search, and send WhatsApp messages from the terminal. Built on whatsmeow (WhatsApp Web protocol).

Installation

brew install steipete/tap/wacli

Or build from source:

go build -tags sqlite_fts5 -o ./dist/wacli ./cmd/wacli

Authentication

# Shows QR code — scan with WhatsApp on your phone
wacli auth

# Start continuous sync (must be authenticated first)
wacli sync --follow

Default store directory: ~/.wacli (override with --store DIR).

Key Commands

Send Messages

# Send a text message
wacli send text --to 1234567890 --message "hello"

# Send a file with caption
wacli send file --to 1234567890 --file ./photo.jpg --caption "Check this out"

# Send a file with custom display name
wacli send file --to 1234567890 --file /tmp/abc123 --filename report.pdf

Search Messages

wacli messages search "meeting"
wacli messages search "project update" --json

Groups

wacli groups list
wacli groups rename --jid 123456789@g.us --name "New Group Name"

History Backfill

# Backfill older messages for a chat (requires primary device online)
wacli history backfill --chat 1234567890@s.whatsapp.net --requests 10 --count 50

Media

wacli media download --chat 1234567890@s.whatsapp.net --id <message-id>

Diagnostics

wacli doctor

Output Modes

Environment Variables

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.