mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
5.4 KiB
5.4 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Hanzo Bot 是一个多渠道 AI 智能体 Gateway 网关,可在任何操作系统上运行。 | Hanzo Bot |
|
Hanzo Bot 🤖
"去壳!去壳!" — 大概是一只太空龙虾说的
适用于任何操作系统的 AI 智能体 Gateway 网关,支持 WhatsApp、Telegram、Discord、iMessage 等。
发送消息,随时随地获取智能体响应。通过插件可添加 Mattermost 等更多渠道。
Hanzo Bot 通过单个 Gateway 网关进程将聊天应用连接到 Pi 等编程智能体。它为 Hanzo Bot 助手提供支持,并支持本地或远程部署。
工作原理
flowchart LR
A["Chat apps + plugins"] --> B["Gateway"]
B --> C["Pi agent"]
B --> D["CLI"]
B --> E["Web Control UI"]
B --> F["macOS app"]
B --> G["iOS and Android nodes"]
Gateway 网关是会话、路由和渠道连接的唯一事实来源。
核心功能
通过单个 Gateway 网关进程连接 WhatsApp、Telegram、Discord 和 iMessage。 通过扩展包添加 Mattermost 等更多渠道。 按智能体、工作区或发送者隔离会话。 发送和接收图片、音频和文档。 浏览器仪表板,用于聊天、配置、会话和节点管理。 配对 iOS 和 Android 节点,支持 Canvas。快速开始
```bash npm install -g bot@latest ``` ```bash hanzo-bot onboard --install-daemon ``` ```bash hanzo-bot channels login hanzo-bot gateway --port 18789 ```需要完整的安装和开发环境设置?请参阅快速开始。
仪表板
Gateway 网关启动后,打开浏览器控制界面。
- 本地默认地址:http://127.0.0.1:18789/
- 远程访问:Web 界面和 Tailscale
配置(可选)
配置文件位于 ~/.hanzo/bot/bot.json。
- 如果你不做任何修改,Hanzo Bot 将使用内置的 Pi 二进制文件以 RPC 模式运行,并按发送者创建独立会话。
- 如果你想要限制访问,可以从
channels.whatsapp.allowFrom和(针对群组的)提及规则开始配置。
示例:
{
channels: {
whatsapp: {
allowFrom: ["+15555550123"],
groups: { "*": { requireMention: true } },
},
},
messages: { groupChat: { mentionPatterns: ["@bot"] } },
}


