Community编程与开发github.com

wacli

通过 wacli 发送第三方 WhatsApp 消息,或同步/搜索 WhatsApp 历史记录(不处理常规用户聊天)。

wacli 是什么?

wacli 是一个专门的 WhatsApp 命令行工具,专为 AI 代理(如 Claude Code、Cursor、Codex)设计,用于执行两类特定任务:向第三方联系人发送 WhatsApp 消息,以及同步或搜索 WhatsApp 聊天历史。它**不**用于代理与用户之间的常规 WhatsApp 聊天——那些由 OpenClaw 等平台自动路由。该工具明确以安全为核心:需要显式指定接收者和消息内容,发送前需确认,任何歧义都会提示澄清。wacli 支持 WhatsApp Web 的 QR 码登录、连续同步、聊天和消息搜索、历史回填,以及发送文本、群组消息和文件(带说明)。输出支持 JSON 格式以便机器解析。回填需要手机在线,并尽最大努力完成。JID 格式:直接聊天为 `<号码>@s.whatsapp.net`,群组为 `<ID>@g.us`,可通过 `wacli chats list` 查询。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/wacli

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

wacli 是做什么的?

仅在用户明确要求向其他人发送 WhatsApp 消息,或要求同步/搜索 WhatsApp 历史时,才使用 wacli。 不要在常规用户聊天中使用 wacli;OpenClaw 会自动路由 WhatsApp 对话。 如果用户正在 WhatsApp 上与您聊天,除非他们要求您联系第三方,否则不应使用此工具。

安全

  • 需要显式的接收者 + 消息文本。
  • 发送前确认接收者 + 消息。
  • 如有任何歧义,请提出澄清问题。

认证与同步

  • wacli auth(QR 码登录 + 初始同步)
  • wacli sync --follow(持续同步)
  • wacli doctor

查找聊天与消息

  • wacli chats list --limit 20 --query "名称或号码"
  • wacli messages search "查询" --limit 20 --chat <jid>
  • wacli messages search "发票" --after 2025-01-01 --before 2025-12-31

历史回填

  • wacli history backfill --chat <jid> --requests 2 --count 50

发送

  • 文本:wacli send text --to "+14155551212" --message "你好!下午3点有空吗?"
  • 群组:wacli send text --to "[email protected]" --message "晚到5分钟。"
  • 文件:wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "议程"

备注

  • 存储目录:~/.wacli(通过 --store 覆盖)。
  • 解析时使用 --json 以获得机器可读的输出。
  • 回填需要您的手机在线;结果将尽最大努力提供。
  • 常规用户聊天不需要 WhatsApp CLI;它用于给其他人发消息。
  • JID:直接聊天格式为 <号码>@s.whatsapp.net;群组格式为 <ID>@g.us(使用 wacli chats list 查找)。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能