跳转到内容
OpenBee

服务端与命令行

把 OpenBee 作为后台服务跑在服务器或任何常开的机器上。你可以通过 Web 控制台、作为客户端的桌面版,或经由插件接入的聊天软件使用它。

📦 npm(推荐)
终端窗口
npm install -g @theopenbee/cli

安装时会自动下载对应平台的二进制文件,支持 Linux、macOS 和 Windows(amd64 与 arm64)。

🔧 安装脚本
终端窗口
curl -fsSL https://raw.githubusercontent.com/theopenbee/openbee/main/install.sh | bash
🍺 Homebrew(macOS)/ Scoop(Windows)
终端窗口
brew install theopenbee/tap/openbee
终端窗口
scoop bucket add theopenbee https://github.com/theopenbee/scoop-bucket
scoop install theopenbee/openbee
📥 下载二进制

从 GitHub Releases 下载对应平台的压缩包,解压后把 openbee 可执行文件放进 PATH。

终端窗口
openbee server -d

这会在后台启动 OpenBee。如果还想开机登录后自动启动,改用 openbee service install:它会注册服务并立即启动。

打开 http://localhost:19876 并创建管理员账号,然后安装引擎,见插件。

首次启动时,OpenBee 会生成 ~/.openbee/config.yaml(默认配置加随机密钥),数据库放在 ~/.openbee/data/openbee.db。要改端口等设置,编辑这个文件后运行 openbee restart。要使用其他配置文件,加上 -c /path/to/config.yaml。

命令 作用
openbee status / stop / restart 查看、停止或重启后台服务
openbee service install / uninstall 开启或关闭登录后自动启动
openbee backup / restore <file> 备份或恢复数据库、配置和状态
openbee upgrade 升级到最新版本
openbee reset-password 重置管理员密码
openbee plugin … 管理引擎和渠道,见插件