據 AlphaMoat 統計,截至 2026-09,OpenClaw WhatsApp 累計下載 4,858 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 1,932 位,在「AI 智慧體」分類(969 個)中排名第 365 位。
| 平台 | 累計安裝 | 累計下載 | 星標 | 評論 |
|---|---|---|---|---|
| ClawHub ↗ | 149 | 4761 | 1 | - |
| SkillHub ↗ | 148 | 4858 | 1 | — |
各平台的計數口徑不同,統計時間不一致。
此技能以單個 Go 程式提供橋接,並說明配對、狀態檢查和日誌檢視。訊息、聯絡人及會話歷史都可能包含敏感資訊;傳送訊息、啟用自動回覆或同步聯絡人前,應確認賬號、接收物件和授權範圍。 設定會下載遠端程式碼並可能持續執行代理;應驗證安裝程式、限制自動回覆,並保護佇列和日誌。
資料釋出於 2026-10-29
以下是根據技能文件生成的示例,不代表實際執行結果。
2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。
| 月份 | 累計下載 | 環比 | 星標 |
|---|---|---|---|
| 2026-09 | 4858 | — | 1 |
| 2026-08 | 4634 | +4.9% | 1 |
| 2026-07 | 4416 | — | 1 |
| 2026-05 | 3906 | — | - |
| 2026-03 | 2444 | — | - |
以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。
--- name: openclaw-whatsapp description: WhatsApp bridge for OpenClaw — send/receive messages, auto-reply agents, QR pairing, message search, contact sync --- # openclaw-whatsapp WhatsApp bridge that connects OpenClaw agents to WhatsApp. Send messages, auto-reply to DMs with AI, search message history, and sync contacts — all from a single Go binary. ## Quick Reference
```bash # Check status openclaw-whatsapp status # Send a message openclaw-whatsapp send "[email protected]" "Your message" # View logs (if running as service) journalctl --user -u openclaw-whatsapp.service -f # View worker logs tail -f /tmp/openclaw-wa-agent/worker.log ``` ## Full Setup (Self-Service) Follow these steps to set up WhatsApp auto-reply from scratch. ### Step 1: Install the binary ```bash curl -fsSL https://raw.githubusercontent.com/0xs4m1337/openclaw-whatsapp/main/install.sh | bash ``` Verify installation: ```bash openclaw-whatsapp version ``` ### Step 2: Find your openclaw binary path ```bash which openclaw # Example output: /home/USER/.nvm/versions/node/v22.22.0/bin/openclaw ``` Save this path — you'll need it in Step 4. ### Step 3: Install relay scripts Copy scripts from this skill directory: ```bash SKILL_DIR="$(dirname "$(realpath "$0")")" # or use absolute path to skill # Copy scripts sudo cp "$SKILL_DIR/scripts/wa-notify.sh" /usr/local/bin/wa-notify.sh sudo cp "$SKILL_DIR/scripts/wa-notify-worker.sh" /usr/local/bin/wa-notify-worker.sh sudo chmod +x /usr/local/bin/wa-notify.sh /usr/local/bin/wa-notify-worker.sh ``` Or if running as agent, use the skill directory path directly: ```bash cp ~/clawd/skills/openclaw-whatsapp/scripts/wa-notify.sh /usr/local/bin/ cp ~/clawd/skills/openclaw-whatsapp/scripts/wa-notify-worker.sh /usr/local/bin/ chmod +x /usr/local/bin/wa-notify.sh /usr/local/bin/wa-notify-worker.sh ``` ### Step 4: Configure the worker script Edit `/usr/local/bin/wa-notify-worker.sh` and update the PATH line with your openclaw binary path from Step 2: ```bash # Find this line near the top: export PATH="/home/oussama/.nvm/versions/node/v22.22.0/bin:$PATH" # Change it to your actual path: export PATH="/home/YOUR_USER/.nvm/versions/node/vXX.XX.X/bin:$PATH" ``` Also update the worker script path in `/usr/local/bin/wa-notify.sh`: ```bash # Find this line near the bottom: nohup /home/oussama/dev/openclaw-whatsapp/scripts/wa-notify-worker.sh # Change to: nohup /usr/local/bin/wa-notify-worker.sh ``` ### Step 5: Create config file ```bash mkdir -p ~/.openclaw-whatsapp cat > ~/.openclaw-whatsapp/config.yaml << 'EOF' port: 8555 data_dir: ~/.openclaw-whatsapp auto_reconnect: true reconnect_interval: 30s log_level: info agent: enabled: true mode: "command" command: "/usr/local/bin/wa-notify.sh '{name}' '{message}' '{chat_jid}' '{message_id}'" ignore_from_me: true dm_only: true timeout: 30s system_prompt: | You are a helpful WhatsApp assistant. Be concise and natural. EOF ``` ### Step 6: Create systemd service (recommended) ```bash mkdir -p ~/.config/systemd/user cat > ~/.config/systemd/user/openclaw-whatsapp.service << 'EOF' [Unit] Description=OpenClaw WhatsApp Bridge After=network.target [Service] Type=simple ExecStart=/usr/local/bin/openclaw-whatsapp start -c %h/.openclaw-whatsapp/config.yaml Restart=always RestartSec=5 [Install] WantedBy=default.target EOF systemctl --user daemon-reload systemctl --user enable openclaw-whatsapp.service systemctl --user start openclaw-whatsapp.service ``` ### Step 7: Link WhatsApp 1. Check bridge is running: `openclaw-whatsapp status` 2. Open QR page: `http://localhost:8555/qr` 3. On your phone: WhatsApp → Settings → Linked Devices → Link a Device 4. Scan the QR code ### Step 8: Test Send a WhatsApp message to the linked number from another phone. Check: ```bash # Bridge logs journalctl --user -u openclaw-whatsapp.service -n 20 # Worker logs cat /tmp/openclaw-wa-agent/worker.log ``` ## Architecture ``` WhatsApp DM → Bridge → wa-notify.sh (enqueue) → wa-notify-worker.sh (background, file-locked) → Fetches last 10 messages for context → openclaw agent (processes message) → openclaw-whatsapp send <JID> <reply> → WhatsApp reply sent ``` Key features: - **Fast enqueue** — bridge doesn't wait for agent processing - **Deduplication** — message IDs tracked to prevent double-replies - **Single worker** — file-locked, sequential processing, no race conditions - **Crash resilience** — queue persists across restarts ## Customizing System Prompt Edit `~/.openclaw-whatsapp/config.yaml` and update the `system_prompt` field: ```yaml agent: system_prompt: | You are a sales assistant for Acme Corp. Be friendly and professional. When someone wants to book a demo: - Book via: mcporter call composio.GOOGLECALENDAR_CREATE_EVENT ... - Notify team via: message action=send channel=telegram target=CHAT_ID ... ``` Restart after changes: ```bash systemctl --user restart openclaw-whatsapp.service ``` ## Allowlist / Blocklist Restrict which numbers the agent responds to: ```yaml agent: allowlist: ["971586971337"] # only these (empty = all) blocklist: ["spammer123"] # never these ``` ## CLI Reference ```bash openclaw-whatsapp start [-c config.yaml] # Start the bridge openclaw-whatsapp status [--addr URL] # Check connection status openclaw-whatsapp send NUMBER MESSAGE # Send a message openclaw-whatsapp stop # Stop the bridge openclaw-whatsapp version # Print version ``` ## Troubleshooting | Problem | Solution | |---------|----------| | QR expired | Refresh http://localhost:8555/qr — auto-refreshes every 3s | | Bridge disconnected | `openclaw-whatsapp status`; auto-reconnects by default | | Agent not replying | Check `/tmp/openclaw-wa-agent/worker.log` for errors | | "stream replaced" errors | Multiple bridge instances — ensure only one runs (`systemctl --user status openclaw-whatsapp` + `pgrep openclaw-whatsapp`) | | "openclaw: not found" | Edit wa-notify-worker.sh PATH to include openclaw binary | | "not logged in" | Scan QR again — session expired | ## Files | Path | Description | |------|-------------| | `~/.openclaw-whatsapp/config.yaml` | Bridge configuration | | `~/.openclaw-whatsapp/messages.db` | SQLite message store | | `~/.openclaw-whatsapp/sessions/` | WhatsApp session data | | `/tmp/openclaw-wa-agent/queue.jsonl` | Message queue | | `/tmp/openclaw-wa-agent/worker.log` | Worker logs | | `/tmp/openclaw-wa-agent/seen_message_ids.txt` | Deduplication list | ## API Endpoints | Method | Path | Description | |--------|------|-------------| | `GET` | `/status` | Connection status | | `GET` | `/qr` | QR code page | | `POST` | `/send/text` | Send message `{"to": "...", "message": "..."}` | | `GET` | `/chats` | List all chats | | `GET` | `/chats/{jid}/messages?limit=10` | Messages for a chat | | `GET` | `/messages/search?q=keyword` | Full-text search | See [references/api-reference.md](references/api-reference.md) for full API docs.
將開發過程中的經驗、錯誤與修正記錄為 Markdown 檔案,供日後重用並提升為工作區記憶。
用自然語言描述需求,在本機與遠端技能市場尋找技能並取得推薦。
給 AI agent 用的瀏覽器自動化命令列技能。
將使用者明確糾正與自我檢視整理成分層記憶,並依使用情況升級或封存。
在安裝第三方技能之前,按清單審查來源、許可權與危險模式的技能。
將代理記憶與跨技能狀態整理成具型別與約束的知識圖譜。
規劃 AI 代理主動跟進、工作記憶與回顧流程的工作區設定指南。
指導如何建立與更新有效 Claude 技能的寫作指南。
資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。