GEO

OpenClaw自托管网关如何集成WhatsApp等应用?2026年连接AI编程智能体

2026/5/7
OpenClaw自托管网关如何集成WhatsApp等应用?2026年连接AI编程智能体

AIAI Summary (BLUF)

OpenClaw is a self-hosted gateway that connects your favorite chat apps (Discord, WhatsApp, Slack, etc.) to AI coding agents like Pi. It runs on your hardware, supports multiple channels, and is open-

OpenClaw 以开源之力,重新定义了个人 AI 助手的接入方式。 它不再依赖厂商绑定的聊天机器人平台,而是让你在自己的硬件上运行一个网关,将 WhatsApp、Telegram、Slack 等十余种应用统一连接到编程智能体。对于重视数据主权与工具自由度的开发者而言,这是一次从“租用 AI”到“拥有 AI”的范式转变。


引言

Introduction

在大模型快速迭代的今天,如何让 AI 智能体从代码终端走进日常聊天界面,是许多开发者面临的实际问题。OpenClaw 提供了一个优雅的解决方案:自托管 + 多渠道 + AI 原生。它将您的即时通讯应用与强大的编程智能体连接起来,让你在微信、Discord、Signal 等任意渠道上,随时向 AI 发送任务并获取回复。

As large language models iterate rapidly, a practical challenge for many developers is how to bring AI agents from the terminal into everyday chat interfaces. OpenClaw offers an elegant solution: self-hosted + multi-channel + AI-native. It connects your instant messaging apps to powerful coding agents, allowing you to send tasks and receive responses from any channel — WeChat, Discord, Signal, and more.


什么是 OpenClaw?

What is OpenClaw?

OpenClaw 是一个 自托管网关,可将您喜爱的聊天应用和渠道界面(包括内置渠道以及诸如 Discord、Google Chat、iMessage、Matrix、Microsoft Teams、Signal、Slack、Telegram、WhatsApp、Zalo 等捆绑或外部插件)连接到 Pi 等 AI 编程智能体。

OpenClaw is a self-hosted gateway that connects your favorite chat applications and channel interfaces — including built-in channels and bundled/external plugins like Discord, Google Chat, iMessage, Matrix, Microsoft Teams, Signal, Slack, Telegram, WhatsApp, and Zalo — to AI coding agents such as Pi.

您可以在自己的机器(或服务器)上运行单个网关进程,它将成为您的即时通讯应用与全天候 AI 助手之间的桥梁。它适合谁? 想要拥有个人 AI 助手且能随时随地从任何地方发送消息,同时又不愿放弃数据控制权或依赖托管服务的开发者和高级用户。

You run a single gateway process on your own machine (or server), which acts as the bridge between your messaging apps and a 24/7 AI assistant. Who is it for? Developers and advanced users who want a personal AI assistant accessible from anywhere, while retaining full data control and avoiding hosted services.


工作原理

How It Works

网关是会话、路由和渠道连接的唯一事实来源。

The gateway serves as the single source of truth for sessions, routing, and channel connectivity.


核心功能

Key Capabilities

以下表格总结了 OpenClaw 的核心特性及其价值:

特性 描述 原文引用
自托管 在您自己的硬件上运行,遵循您的规则,不依赖第三方云服务 原文: "在您的硬件上运行,遵循您的规则"
多渠道 一个网关同时支持内置渠道和捆绑/外部渠道插件(超过10种聊天应用) 原文: "一个网关同时支持内置渠道和捆绑/外部渠道插件"
智能体原生 专为具备工具使用、会话、记忆和多智能体路由功能的编程智能体而构建 原文: "专为具备工具使用、会话、记忆和多智能体路由功能的编程智能体而构建"
开源 MIT 许可,由社区驱动,可自由修改和分发 原文: "MIT 许可,由社区驱动"

额外需求:Node 24(推荐)或 Node 22 LTS (22.14+),所选服务商的 API 密钥,以及 5 分钟配置时间。为了获得最佳质量和安全性,请使用功能最强大的最新一代模型。

Additional requirements: Node 24 (recommended) or Node 22 LTS (22.14+), API keys from your chosen service providers, and 5 minutes of setup time. For best quality and security, use the most capable, latest-generation models.


快速入门

Quick Start

  1. 安装 Node.js(推荐 Node 24,兼容 Node 22 LTS 22.14+
    Install Node.js (Node 24 recommended, compatible with Node 22 LTS 22.14+).

  2. 获取所需渠道的 API 密钥(如 Telegram Bot Token、WhatsApp Business API 等)
    Obtain API keys for your desired channels (e.g., Telegram Bot Token, WhatsApp Business API).

  3. 启动网关:npx openclaw
    Start the gateway: npx openclaw

需要完整的安装和开发环境设置?请参阅 入门指南

For complete installation and development environment setup, refer to the Getting Started Guide.


仪表盘

Dashboard

网关启动后,在浏览器中打开控制 UI。

Once the gateway is running, open the control UI in your browser.

OpenClaw WhatsApp 截图


配置(可选)

Configuration (Optional)

配置文件位于 ~/.openclaw/openclaw.json

The configuration file is located at ~/.openclaw/openclaw.json.

  • 如果您 不进行任何操作,OpenClaw 将默认使用处于 RPC 模式的内置 Pi 二进制文件,并为每个发送者分配会话。
    If you do nothing, OpenClaw will use the built-in Pi binary in RPC mode by default, assigning a session per sender.
  • 如果您想锁定配置,请从 channels.whatsapp.allowFrom 开始,并(针对群组)配置提及规则。
    If you want to lock down the configuration, start with channels.whatsapp.allowFrom and (for groups) configure mention rules.

示例配置 (JSON5 格式):

{
  channels: {
    whatsapp: {
      allowFrom: ["+15555550123"],
      groups: { "*": { requireMention: true } },
    },
  },
  messages: {
    groupChat: { mentionPatterns: ["@openclaw"] },
  },
}

了解更多

Learn More


“去角质!去角质!” —— 一只太空龙虾(大概)

“Exfoliate! Exfoliate!” — A space lobster (probably)

常见问题(FAQ)

OpenClaw 是什么?能做什么?

OpenClaw 是一个自托管网关,可将 Discord、WhatsApp、Slack 等聊天应用连接到 AI 编程智能体(如 Pi),在你的硬件上运行,支持多渠道,开源 MIT 许可。

如何快速开始使用 OpenClaw?

安装 Node.js(推荐 Node 24,兼容 Node 22 LTS 22.14+),获取所需渠道的 API 密钥,然后运行 npx openclaw 启动网关,即可在浏览器打开仪表盘进行管理。

OpenClaw 支持哪些聊天应用?需要什么环境?

支持内置渠道及 Discord、Google Chat、iMessage、Telegram、WhatsApp 等十余种应用。运行需 Node 24 或 Node 22 LTS,以及各渠道的 API 密钥。

← 返回文章列表
分享到:微博

版权与免责声明:本文仅用于信息分享与交流,不构成任何形式的法律、投资、医疗或其他专业建议,也不构成对任何结果的承诺或保证。

文中提及的商标、品牌、Logo、产品名称及相关图片/素材,其权利归各自合法权利人所有。本站内容可能基于公开资料整理,亦可能使用 AI 辅助生成或润色;我们尽力确保准确与合规,但不保证完整性、时效性与适用性,请读者自行甄别并以官方信息为准。

若本文内容或素材涉嫌侵权、隐私不当或存在错误,请相关权利人/当事人联系本站,我们将及时核实并采取删除、修正或下架等处理措施。 也请勿在评论或联系信息中提交身份证号、手机号、住址等个人敏感信息。