跨平台 AI Agent 工具完全卸载工具,一键清理 CLI 及所有残留文件。支持 OpenClaw、MoltBot、ClawDBot、ClawDBot-CN。
- ✅ 多工具支持:OpenClaw、MoltBot、ClawDBot、ClawDBot-CN
- ✅ 跨平台支持:macOS、Linux、Windows (WSL/Cygwin)
- ✅ 自动检测:智能识别 CLI 安装方式
- ✅ 智能路径:自动查找所有安装路径
- ✅ 彻底清理:移除状态、配置、工作区、多配置文件数据
- ✅ 卸载 CLI:支持 npm、pnpm、bun
- ✅ macOS 清理:移除桌面应用和 LaunchAgent
- ✅ 自毁机制:执行完毕后自动删除脚本,不留痕迹
# 下载并执行
curl -fsSL https://raw.githubusercontent.com/billLiao/openclaw-uninstall/main/uninstall.sh | bash
# 或本地执行
chmod +x uninstall.sh
./uninstall.sh# 下载并执行
curl -fsSL https://raw.githubusercontent.com/billLiao/openclaw-uninstall/main/uninstall.bat -o uninstall.bat
uninstall.bat# 下载并执行(PowerShell 5.1+)
irm https://raw.githubusercontent.com/billLiao/openclaw-uninstall/main/uninstall.ps1 | iex- npm 全局:
npm uninstall -g openclaw - pnpm 全局:
pnpm remove -g openclaw - bun 全局:
bun pm rm -g openclaw
~/.openclaw~/.config/openclaw~/.local/share/openclaw~/openclaw-workspace
~/.openclawrc~/.openclaw-config~/.openclaw.json
/Applications/OpenClaw.app~/Library/LaunchAgents/com.openclaw.daemon.plist
你也可以将此脚本作为 OpenClaw Skill 来使用,从内部卸载 OpenClaw:
# 将脚本下载到工作区
curl -fsSL https://raw.githubusercontent.com/billLiao/openclaw-uninstall/main/uninstall.sh -o ~/.openclaw/uninstall.sh
chmod +x ~/.openclaw/uninstall.sh
# 执行卸载
~/.openclaw/uninstall.shMIT