← 返回
AI智能 中文

Wa Relay

WhatsApp message relay for OpenClaw v0.2.0. Routes third-party DMs to a relay agent that forwards them to the main agent via sessions_send. The main agent no...
WhatsApp 消息转发(OpenClaw v0.2.0)。将第三方私信路由至中转代理,再通过 sessions_send 转发给主代理。主代理不再...
zarruk
AI智能 clawhub v0.2.1 1 版本 99773.6 Key: 无需
★ 0
Stars
📥 1,322
下载
💾 32
安装
1
版本
#latest

概述

wa-relay v0.2.0

Routes third-party WhatsApp DMs through a relay agent that forwards messages to the main agent via sessions_send. The main agent notifies the owner and proposes a response.

How It Works

  1. Third-party sends a WhatsApp message
  2. Relay agent receives it, forwards via sessions_send to the main agent session, and responds NO_REPLY (nothing sent back to the sender)
  3. Main agent receives the inter-session message, notifies the owner on WhatsApp with the message and a suggested response
  4. Owner decides: use the suggestion, modify it, or write something else
  5. Main agent sends the response to the third party

Direct number allowlist

Numbers in the allowlist bypass the relay entirely and go straight to the main agent (same as the owner).

Setup

  1. Run scripts/setup.sh — creates relay workspace, patches main agent SOUL.md
  2. Run scripts/configure.sh [direct-numbers] — generates routing config
  3. Apply the generated config (see references/SETUP.md)

Requirements

  • OpenClaw v2026.2.14+ with WhatsApp channel configured
  • Owner's phone number in international format (e.g. +573001234567)

Security Notes

This skill performs two actions that require elevated access. Both are necessary for multi-agent WhatsApp routing to work and are explained here for transparency:

1. Auth credential sharing

The setup script copies auth-profiles.json from the main agent to the relay agent. This is required because OpenClaw agents have isolated auth — without shared credentials, the relay agent cannot authenticate with any model provider and will silently fail. The script asks for confirmation before copying.

2. Session ID regex patch (temporary)

OpenClaw's session ID validator rejects : and + characters that WhatsApp phone-number routing generates (e.g. agent:wa-relay:whatsapp:+15551234567). The setup script patches the SAFE_SESSION_ID_RE regex in OpenClaw's dist files to allow these characters. This is a known bug (openclaw/openclaw#16211) with an open fix (PR #16531). Once merged, this patch becomes unnecessary and can be reverted. The script creates .bak backups and asks for confirmation before patching.

3. Main agent SOUL.md modification

The setup script appends a "Relay de WhatsApp" section to the main agent's SOUL.md so it knows how to handle forwarded messages. Review the added section after setup.

版本历史

共 1 个版本

  • v0.2.1 当前
    2026-03-29 04:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,655
security-compliance

WA Relay

zarruk
OpenClaw代理的WhatsApp消息中继与防火墙。拦截第三方消息,通知所有者并自动回复。
★ 0 📥 532
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,926