自托管

三块可以分开部署:App 是客户端;Hub 建议跑在有 Agent CLI 的裸机 / VM;Channel 用 Docker,前面加 TLS。

Agent Hub

编码引擎依赖本机登录态,容器里复刻全家桶成本高。生产默认:裸机 + systemd。

systemd
npm install -g shepaw-agent-hub
sudo cp deploy/systemd/*.service /etc/systemd/system/
sudo systemctl enable --now shepaw-hub-web

备份 ~/.config/shepaw-hub/(identity、peers、sessions)。Dashboard 不要裸奔公网。

Channel

compose
cp .env.example .env
# PORT, BASE_URL, DATABASE_URL=postgres://..., REDIS_ADDR
# 不要设置 DEV_SKIP_AUTH=1
docker compose up -d
curl -fsS https://channel.example.com/health

本站(官网)

纯静态文件,丢到任何静态托管即可:

website/
python3 -m http.server 4173
# 或 npx serve -p 4173