mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
2.1 KiB
2.1 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Linux 支持 + 配套应用状态 | Linux 应用 |
|
Linux 应用
Gateway 网关在 Linux 上完全支持。Node 是推荐的运行时。 不推荐 Bun 用于 Gateway 网关(WhatsApp/Telegram 存在 bug)。
原生 Linux 配套应用已在计划中。如果你想帮助构建,欢迎贡献。
新手快速路径(VPS)
- 安装 Node 22+
npm i -g bot@latesthanzo-bot onboard --install-daemon- 从你的笔记本电脑:
ssh -N -L 18789:127.0.0.1:18789 <user>@<host> - 打开
http://127.0.0.1:18789/并粘贴你的令牌
分步 VPS 指南:exe.dev
安装
Gateway 网关
Gateway 网关服务安装(CLI)
使用以下任一方式:
hanzo-bot onboard --install-daemon
或:
hanzo-bot gateway install
或:
hanzo-bot configure
出现提示时选择 Gateway service。
修复/迁移:
hanzo-bot doctor
系统控制(systemd 用户单元)
Hanzo Bot 默认安装 systemd 用户服务。对于共享或常驻服务器使用系统 服务。完整的单元示例和指南 在 Gateway 网关运行手册 中。
最小设置:
创建 ~/.config/systemd/user/bot-gateway[-<profile>].service:
[Unit]
Description=Hanzo Bot Gateway (profile: <profile>, v<version>)
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/hanzo-bot gateway --port 18789
Restart=always
RestartSec=5
[Install]
WantedBy=default.target
启用它:
systemctl --user enable --now bot-gateway[-<profile>].service