关注我们

出海网公众号

出海网小程序

出海网视频号

出海网社群

两种方式:
openclaw仍已安装,使用简单方式。推荐:使用内置卸载程序:
非交互式(自动化 / npx):
openclaw uninstall --all --yes --non-interactive npx -y openclaw uninstall --all --yes --non-interactive
手动步骤(效果相同):
停止 Gateway 网关服务:
卸载 Gateway 网关服务(launchd/systemd/schtasks):
openclaw gateway uninstall
rm -rf "${OPENCLAWSTATEDIR:-$HOME/.openclaw}"如果你将OPENCLAWCONFIGPATH设置为状态目录外的自定义位置,也请删除该文件。
rm -rf ~/.openclaw/workspace
npm rm -g openclaw pnpm remove -g openclaw bun remove -g openclaw
rm -rf /Applications/OpenClaw.app
注意事项:
--profile/OPENCLAW_PROFILE),对每个状态目录重复步骤 3(默认为~/.openclaw-<profile)。如果 Gateway 网关服务持续运行但openclaw缺失,请使用此方法。
默认标签是bot.molt.gateway(或bot.molt.<profile;旧版com.openclaw.*可能仍然存在):
launchctl bootout gui/$UID/bot.molt.gateway rm -f ~/Library/LaunchAgents/bot.molt.gateway.plist
如果你使用了配置文件,请将标签和 plist 名称替换为bot.molt.<profile。如果存在任何旧版com.openclaw.*plist,请将其移除。
默认单元名称是openclaw-gateway.service(或openclaw-gateway-<profile.service):
systemctl --user disable --now openclaw-gateway.service rm -f ~/.config/systemd/user/openclaw-gateway.service systemctl --user daemon-reload
默认任务名称是OpenClaw Gateway(或OpenClaw Gateway (<profile))。 任务脚本位于你的状态目录下。
schtasks /Delete /F /TN "OpenClaw Gateway" Remove-Item -Force "$env:USERPROFILE.openclaw\gateway.cmd"
如果你使用了配置文件,请删除匹配的任务名称和~.openclaw-<profile\gateway.cmd。
如果你使用了https://openclaw.ai/install.sh或install.ps1,CLI 是通过npm install -g openclaw@latest安装的。 使用npm rm -g openclaw移除(或pnpm remove -g/bun remove -g,如果你是用那种方式安装的)。
如果你从仓库检出运行(git clone+openclaw .../bun run openclaw ...):
