WhatsApp CLI (wacli)

GitHub

WhatsApp CLI工具,支持消息同步、搜索、发送及群组管理。用于Agent通过终端执行WhatsApp通信任务,如发送文本/文件、检索历史记录和管理群聊,提供结构化JSON输出以便自动化集成。

Trigger Scenarios

用户需要通过WhatsApp发送消息或文件 用户需要搜索或检索WhatsApp聊天记录 用户需要管理WhatsApp群组(如列表、重命名)

Install

npx skills add composio-community/awesome-agent-clis --skill WhatsApp CLI (wacli) -g -y
More Options

Non-standard path

npx skills add https://github.com/composio-community/awesome-agent-clis/tree/master/wacli -g -y

Use without installing

npx skills use composio-community/awesome-agent-clis@WhatsApp CLI (wacli)

指定 Agent (Claude Code)

npx skills add composio-community/awesome-agent-clis --skill WhatsApp CLI (wacli) -a claude-code -g -y

安装 repo 全部 skill

npx skills add composio-community/awesome-agent-clis --all -g -y

预览 repo 内 skill

npx skills add composio-community/awesome-agent-clis --list

SKILL.md

Frontmatter
{
    "name": "WhatsApp CLI (wacli)",
    "description": "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."
}

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

  • Default: human-readable
  • --json: structured JSON output for agents

Environment Variables

  • WACLI_DEVICE_LABEL: set linked device label shown in WhatsApp
  • WACLI_DEVICE_PLATFORM: override linked device platform (defaults to CHROME)

Version History

  • 9f765d2 Current 2026-07-24 16:04

Same Skill Collection

aws-cli/SKILL.md
coderabbit-cli/SKILL.md
composio-cli/SKILL.md
elevenlabs-cli/SKILL.md
gcloud-cli/SKILL.md
github-cli/SKILL.md
gitlab-cli/SKILL.md
google-workspace-cli/SKILL.md
mailcoach-cli/SKILL.md
neon-cli/SKILL.md
ntn/SKILL.md
planetscale-cli/SKILL.md
posthog-cli/SKILL.md
railway-cli/SKILL.md
ramp-cli/SKILL.md
remotion-cli/SKILL.md
resend-cli/SKILL.md
sendblue-cli/SKILL.md
sentry-cli/SKILL.md
sonoscli/SKILL.md
stripe-cli/SKILL.md
stripe-projects-cli/SKILL.md
supabase-cli/SKILL.md
tavily-cli/SKILL.md
turso-cli/SKILL.md
vercel-cli/SKILL.md
visa-cli/SKILL.md
kapso-cli/SKILL.md

Metadata

Files
0
Version
9f765d2
Hash
b38079fa
Indexed
2026-07-24 16:04

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 05:41
浙ICP备14020137号-1 $mapa de visitantes$