Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

wacli — Claude Code skill: what it does, how to install

Enables your coding agent to send WhatsApp messages to third parties, search conversation history, and backfill chat archives using the wacli tool.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openclaw/openclaw --skill wacli -a claude-code
Open on GitHub

What wacli does

This skill integrates the wacli command-line utility into your agent workflow. It handles targeted operational tasks: messaging external contacts, sending PDF attachments, querying message logs across date ranges, and syncing archives. The tool is reserved for third parties. OpenClaw handles regular user conversations automatically.

The workflow enforces strict safety boundaries. Your agent must confirm the recipient and exact message text before sending anything. Direct chats use <number>@s.whatsapp.net identifiers, while group chats use <id>@g.us. For multiline text formatting, the tool applies --message-escapes.

Running these commands requires the wacli binary installed via Homebrew or Go. Session files reside in ~/.wacli by default. Initial login requires a QR scan via wacli auth. Backfilling chat history requires your phone to stay online.

What it helps with

  • Send WhatsApp text messages and attachments to direct contacts or group chats
  • Search message history using search queries and date filters
  • Backfill message archives for specific chat JIDs
  • Inspect stored messages and JSON output for formatting verification

Example prompts for the agent

  • Search WhatsApp messages for "invoice" between 2025-01-01 and 2025-12-31
  • Send /path/agenda.pdf to +14155551212 with the caption "Agenda" via wacli
  • Run wacli doctor and list the last 20 chats matching query "team"

How to install wacli

1Skills CLI (Vercel)

npx skills add openclaw/openclaw --skill wacli -a claude-code

2Manually: put the files in place

~/.claude/skills/wacli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wacli/

From the same set45

The whole set →
summarize openclaw Runs a CLI tool to summarize or transcribe web articles, YouTube videos, podcasts, and local PDF documents directly within your AI assistant. Claude Code CX Codex Cursor +1 26,900installs weather openclaw This skill fetches current conditions and forecasts for a city, region, airport code, or coordinates. Use it to check rain and temperature or plan a trip. Claude Code CX Codex Cursor +1 9,300installs gog openclaw Guides an agent using the gog CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs. Use it when Google Workspace tasks need to run from a terminal. Claude Code CX Codex Cursor +1 8,500installs tmux openclaw Lets an agent work with live tmux sessions: read pane output, send keys and text, wait for a prompt line to show up. Claude Code CX Codex Cursor +1 8,400installs openai-whisper openclaw This skill lets your agent call the Whisper CLI to transcribe audio on your own machine. No API key needed. Claude Code CX Codex Cursor +1 7,100installs nano-pdf openclaw Edit PDF pages with plain text instructions through the nano-pdf CLI. Useful when you need to fix a typo or swap a heading without leaving your terminal. Claude Code CX Codex Cursor +1 7,100installs skill-creator openclaw A skill for writing, repairing and reviewing other skills. It splits behaviour into branches, sets the frontmatter and sorts resources into folders. Useful once your skill folder gets crowded. Claude Code CX Codex Cursor +1 6,700installs coding-agent openclaw This skill sends large coding tasks to Codex, Claude Code, or OpenCode as background workers. Use it for refactors, PR reviews, and issue-to-PR work. Claude Code CX Codex Cursor +1 6,500installs

Similar

composio ComposioHQ This skill routes Composio tasks for a personal agent or a product with user-connected accounts, from setup and integration to tool runs and troubleshooting. Claude Code CX Codex Cursor +1 8,000installs nature-literature-pipeline Jiahao8595 Automates academic literature discovery, six-dimension paper scoring, and digest delivery to chat apps. Useful for running daily research scans via cron. Claude Code CX Codex Cursor +1 11,800installs baoyu-post-to-weibo JimLiu Prepares regular Weibo posts and articles through Chrome. Use it when text, media, or a Markdown article needs to be placed in the editor for manual publishing. Claude Code CX Codex Cursor +1 21,600installs video-use browser-use This skill edits video through conversation: it transcribes speech, cuts footage, adds subtitles, color grading, and animated overlays. Useful for interviews, tutorials, and montages. Claude Code CX Codex Cursor +1 5,000installs cloud browser-use This skill covers Browser Use Cloud, its API, and SDKs for browser automation. Use it when building a hosted integration or maintaining v2 or v3. Claude Code CX Codex Cursor +1 3,200installs voicestudio debpalash Connects an agent to VoiceStudio for speech generation, audio transcription, and dubbing workflows through its REST API or MCP server. Claude Code CX Codex Cursor +1 1,700installs remotion-render official Remotion Exports videos and static stills from Remotion projects using CLI commands. CX Codex GP ChatGPT 3installs ego-browser citrolabs Connects the ego-lite Chromium browser to AI agents for web automation, form filling, screenshots, and QA testing using existing logged-in sessions. Claude Code CX Codex Cursor +1 11,900installs

Questions about wacli

How to install wacli for Claude Code?

Run npx skills add openclaw/openclaw --skill wacli -a claude-code. You must also install the wacli binary on your system via Homebrew formula steipete/tap/wacli or Go module github.com/openclaw/wacli/cmd/wacli@latest.

What does the wacli skill do?

It gives your agent commands to search WhatsApp logs, backfill history, and dispatch messages or files to third parties. Routine conversation with the assistant does not use this skill.

What prerequisites are needed for wacli?

You need the CLI binary installed and authenticated via QR code using wacli auth. History backfill also requires your mobile device to stay online.

Source text

SKILL.md · MIT
---
name: wacli
description: "Send third-party WhatsApp messages or sync/search WhatsApp history via wacli, not normal active chats."
homepage: https://wacli.sh
metadata:
  {
    "openclaw":
      {
        "emoji": "📱",
        "requires": { "bins": ["wacli"] },
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "steipete/tap/wacli",
              "bins": ["wacli"],
              "label": "Install wacli (brew)",
            },
            {
              "id": "go",
              "kind": "go",
              "module": "github.com/openclaw/wacli/cmd/wacli@latest",
              "bins": ["wacli"],
              "label": "Install wacli (go)",
            },
          ],
      },
  }
---

# wacli

Use `wacli` only when the user explicitly asks you to message someone else on WhatsApp or when they ask to sync/search WhatsApp history.
Do NOT use `wacli` for normal user chats; OpenClaw routes WhatsApp conversations automatically.
If the user is chatting with you on WhatsApp, you should not reach for this tool unless they ask you to contact a third party.

Safety

- Require explicit recipient + message text.
- Confirm recipient + message before sending.
- If anything is ambiguous, ask a clarifying question.

Auth + sync

- `wacli auth` (QR login + initial sync)
- `wacli sync --follow` (continuous sync)
- `wacli doctor`

Find chats + messages

- `wacli chats list --limit 20 --query "name or number"`
- `wacli messages search "query" --limit 20 --chat <jid>`
- `wacli messages search "invoice" --after 2025-01-01 --before 2025-12-31`

Inspect / verify messages

- `wacli messages show --chat <jid> --id <message_id> --json --full`
- `messages show` requires both `--chat` and `--id`; do not pass the message ID as a positional argument.
- After sending, verify the stored message when exact formatting matters, especially multiline text.

History backfill

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

Send

- Text: `wacli send text --to "+14155551212" --message "Hello! Are you free at 3pm?"`
- Group: `wacli send text --to "[email protected]" --message "Running 5 min late."`
- File: `wacli send file --to "+14155551212" --file /path/agenda.pdf --caption "Agenda"`
- Multiline: `--message` is literal by default; pass `--message-escapes` to interpret `\n`, `\r`, `\t`.

Notes

- Store dir: `~/.wacli` (override with `--store`).
- Use `--json` for machine-readable output when parsing.
- Backfill requires your phone online; results are best-effort.
- WhatsApp CLI is not needed for routine user chats; it's for messaging other people.
- JIDs: direct chats look like `<number>@s.whatsapp.net`; groups look like `<id>@g.us` (use `wacli chats list` to find).

© openclaw · MIT · openclaw/openclaw

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor