卸载
完全卸载 OpenClaw。
CLI 卸载
bash
# 交互式
openclaw uninstall
# 卸载服务
openclaw uninstall --service
# 删除状态
openclaw uninstall --state
# 删除工作区
openclaw uninstall --workspace
# 完全卸载
openclaw uninstall --all --yes手动卸载
1. 停止服务
bash
openclaw gateway stop2. 卸载服务
macOS:
bash
launchctl unload ~/Library/LaunchAgents/com.openclaw.gateway.plist
rm ~/Library/LaunchAgents/com.openclaw.gateway.plistLinux:
bash
systemctl --user stop openclaw
systemctl --user disable openclaw
rm ~/.config/systemd/user/openclaw.service3. 删除数据
bash
rm -rf ~/.openclaw4. 卸载 CLI
bash
npm uninstall -g openclaw或删除 git 检出:
bash
rm -rf ~/openclaw # 或你的检出目录保留数据
如果只想重装但保留数据:
bash
# 仅卸载服务和 CLI
openclaw uninstall --service
npm uninstall -g openclaw
# ~/.openclaw 保持不变重装后数据会自动使用。