适用于 macOS,包含 CLI、Gateway 常驻、Browser Extension。
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash重新打开终端,确认:
nvm --versionnvm install 22
nvm use 22
nvm alias default 22验证:
node -v
# v22.x.xcurl -fsSL https://clawd.bot/install.sh | bash验证:
clawdbot --versionclawdbot gateway --verbose另开一个终端:
clawdbot status应看到:
Gateway │ local · ws://127.0.0.1:18789 · reachable
成功后,回到原终端按 Ctrl + C 停止。
clawdbot onboard --install-daemon按提示选择:
- Local gateway → Yes
- Install daemon → Yes
验证:
clawdbot statusClawdbot 的浏览器能力通过官方扩展提供。
clawdbot browser extension install该命令会:
- 打开 Chrome / Chromium 扩展安装页面
- 引导你完成扩展安装与授权
安装完成后,重启浏览器即可生效。
clawdbot status
clawdbot gateway --verbose
clawdbot gateway stop
clawdbot onboard --install-daemon
clawdbot browser extension installclawdbot gateway --verbose- 能启动 → 重新执行
clawdbot onboard --install-daemon - 不能启动 → 检查 Node 版本是否为 22+
# 卸载 daemon
ls ~/Library/LaunchAgents | grep -i claw
launchctl unload -w ~/Library/LaunchAgents/<clawdbot-plist>
rm ~/Library/LaunchAgents/<clawdbot-plist>
# 卸载 CLI
npm uninstall -g clawdbot
# 删除配置
rm -rf ~/.clawdbotClawdbot 已在 macOS 上完成安装并后台运行。