1 1 · 交互式安装(推荐)
一个只问三个问题的 bash 脚本——界面语言、ACP 端口和 Web 端口。它会从 npm 装好 `agim-cli`(命令是 `agim`),写入最小的 `~/.agim/config.json`(升级用户继续用 `~/.im-hub/`),root 身份运行时还会自动生成 systemd 单元,最后把你交给 `agim config` 去选 IM 渠道、agent、SMTP、百度地图 AK 等。可重复跑,任何提问处都能 Ctrl-C 中止。
bash -c "$(curl -fsSL https://imhub.iclaw.host/install.sh)"
以 root 运行时会自动写一个 systemd 单元;否则用 `agim start` 前台跑。
bash -c "$(curl -fsSL https://imhub.iclaw.host/install.sh)"
同一份脚本——`uname -s` 自动识别 Darwin。没装 Node.js 的话先 `brew install node`(Node 22+)。
wsl --install -d Ubuntu
wsl bash -c "$(curl -fsSL https://imhub.iclaw.host/install.sh)"
不支持原生 Windows,请走 WSL2 + Ubuntu。第一行装 WSL(只跑一次,可能要重启);第二行在 Ubuntu 里跑安装器。
需要 curl、bash、npm 和 Node.js ≥ 22。用最终拥有 ~/.agim 的用户执行(如果机器上已经有 0.x 装的 ~/.im-hub,会自动沿用)。