From c0dbe3bc414627c260c005854e52a5751d575c6d Mon Sep 17 00:00:00 2001 From: dongsheng123132 <90887123+dongsheng123132@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:33:03 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20add=20=E7=BB=B4=E6=8A=A4=E4=B8=8E?= =?UTF-8?q?=E5=8D=B8=E8=BD=BD=20section=20to=20guide.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add comprehensive maintenance & uninstall guide covering menu options 9-15: kill processes, view logs, factory reset, full uninstall (USB/Electron/npm), check updates, clean space, plugin management. Update FAQ with uninstall and improved update answers. --- website/guide.html | 503 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 499 insertions(+), 4 deletions(-) diff --git a/website/guide.html b/website/guide.html index f4c97cb..3354d84 100644 --- a/website/guide.html +++ b/website/guide.html @@ -41,6 +41,7 @@ pre code{background:none;padding:0} .card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:20px;margin:16px 0} .tip{border-left:4px solid var(--green);padding:12px 16px;margin:16px 0;background:rgba(74,222,128,.06);border-radius:0 8px 8px 0} .warn{border-left:4px solid var(--yellow);padding:12px 16px;margin:16px 0;background:rgba(250,204,21,.06);border-radius:0 8px 8px 0} +.danger{border-left:4px solid var(--red);padding:12px 16px;margin:16px 0;background:rgba(248,113,113,.06);border-radius:0 8px 8px 0} table{width:100%;border-collapse:collapse;margin:16px 0} th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border)} th{color:var(--cyan);font-weight:600} @@ -102,6 +103,8 @@ ul{padding-left:20px} 国内镜像源 首次配置向导 网页控制台 + Linux 启动盘模式 + 中国区原生安装教程 @@ -143,6 +146,7 @@ ul{padding-left:20px} 命令速查 环境变量 诊断修复 + 维护与卸载 @@ -191,7 +195,8 @@ ul{padding-left:20px}
| 系统 | 双击打开 |
|---|---|
| macOS | Mac-Start.command |
| Windows | Windows-Start.bat |
Windows-Start.batbash Linux-Start.sh浏览器自动打开 Config.html → 选择 AI 模型 → 填写 API Key
控制台自动打开 http://127.0.0.1:18789
# 便携版
bash Mac-Start.command # Mac
Windows-Start.bat # Windows
+bash Linux-Start.sh # Linux
# 桌面版
npm run dev
@@ -236,6 +242,9 @@ npm run dev
Mac-Menu.commandWindows-Start.batWindows-Menu.batLinux-Start.shbash Linux-Start.sh)Linux-Menu.shLinux-Install.shConfig.htmlU-Claw.htmlsetup.shcd /media/$USER/你的U盘/U-Claw
+bash Linux-Install.sh
+安装到 ~/.uclaw/,优先使用 U 盘离线资源,缺失时从国内镜像下载
bash ~/.uclaw/start.sh 或在应用菜单搜索 U-ClawU-Claw 的菜单脚本(Mac-Menu / Linux-Menu / Windows-Menu)内置了完整的维护功能,选择对应编号即可操作。
+ +Mac-Menu.command(macOS)、Linux-Menu.sh(Linux)或 Windows-Menu.bat(Windows),在菜单中选择 9-15 进入维护功能。在菜单中选择 9,脚本会自动查找并终止所有 OpenClaw 相关进程(node、gateway 等),然后释放端口。
+data/logs/gateway.log
+每次启动(通过 Start 脚本)都会自动将网关输出捕获到此文件,方便排查问题。
+data/backups/openclaw.json)data/ 目录到安全位置。确保浏览器中没有打开的 U-Claw 页面
运行菜单选项 9,或关闭终端窗口
右键 U 盘 → 弹出(不要直接拔!)
所有数据都在 U 盘上,电脑无任何残留
Mac-Install.command 安装到电脑,还需要手动删除 ~/.uclaw/ 目录。macOS:
+U-Claw.app 从「应用程序」拖到废纸篓rm -rf ~/Library/Application\ Support/U-Claw/
+
+Windows:
+rd /s /q "%APPDATA%\U-Claw"
+
+Linux:
+.desktop 文件和应用目录rm -rf ~/.config/U-Claw/
+# 卸载 OpenClaw
+npm uninstall -g openclaw
+
+# 删除配置和数据
+rm -rf ~/.openclaw/
+卸载后如果想确认电脑上完全没有 U-Claw 的痕迹,检查以下目录是否还存在:
+| 路径 | 说明 | 系统 |
|---|---|---|
~/.uclaw/ | 从 U 盘安装到电脑的版本 | macOS / Linux |
~/.openclaw/ | npm 全局安装的配置 | 所有系统 |
~/Library/Application Support/U-Claw/ | Electron 桌面版数据 | macOS |
%APPDATA%\U-Claw\ | Electron 桌面版数据 | Windows |
~/.config/U-Claw/ | Electron 桌面版数据 | Linux |
在菜单中选择 13,脚本会自动检查当前 OpenClaw 版本并与最新版对比。如果有新版本可用,会提示你是否立即更新。
+# U 盘便携版
+cd app/core && npm update openclaw
+
+# npm 全局安装版
+npm update -g openclaw
+
+# 查看当前版本
+openclaw --version
+在菜单中选择 14,脚本会扫描并清理以下内容:
+# npm 缓存
+npm cache clean --force
+
+# 日志
+rm -f data/logs/gateway.log
+
+# 备份
+rm -rf data/backups/
+在菜单中选择 15,可以查看已安装的插件、安装新插件或卸载不需要的插件。
+# 查看已安装插件
+openclaw plugin list
+
+# 安装插件
+openclaw plugin install <插件名>
+
+# 卸载插件
+openclaw plugin uninstall <插件名>
+@nicepkg/openclaw-plugin-qq)是国内用户最常用的插件。不需要。自带 Windows 版 Node.js。
U 盘模式:替换 openclaw/ 目录。安装模式:openclaw update
最简单的方式:运行菜单脚本(Mac-Menu / Linux-Menu / Windows-Menu)选择 [13] 检查更新,自动完成。手动方式:U 盘模式运行 cd app/core && npm update openclaw,安装模式运行 npm update -g openclaw。详见 维护与卸载 页面。
根据你的安装方式不同,卸载步骤也不同。U 盘便携版只需弹出 U 盘即可;桌面版和 npm 版需要额外删除配置目录。详见 维护与卸载 页面的完整卸载指南。
U 盘:portable-home/.openclaw/openclaw.json
安装:~/.openclaw/openclaw.json
把整个 Linux 系统 + OpenClaw 刻到 U 盘,开机从 USB 启动直接进入 Linux 桌面 + AI 助手。
+ +| 普通便携模式 | Linux 启动盘模式 | |
|---|---|---|
| 原理 | 在已有系统上运行 U 盘里的脚本 | 直接从 U 盘启动整个 Linux 系统 |
| 依赖 | 需要电脑已有 macOS / Windows / Linux | 不依赖任何已安装系统 |
| 适用 | 有系统的电脑,临时用 | 无系统 / 不想碰原系统 / 专用 AI 工作站 |
| U 盘大小 | 4GB+ | 64GB+ 推荐(系统 + 持久化 + OpenClaw) |
| 速度 | 取决于 U 盘读写 | 必须 USB 3.0+(USB 2.0 会很卡) |
| 材料 | 要求 | 说明 |
|---|---|---|
| U 盘 | 64GB+ USB 3.0 | 最低 32GB,推荐 64GB USB 3.0+(USB 2.0 太慢不推荐) |
| Linux Mint ISO | Cinnamon 版 | 下载: 清华镜像 或 中科大镜像 |
| Rufus | v4.0+ | 下载: rufus.ie(仅 Windows 制作启动盘用) |
插入 U 盘,打开 Rufus,选择你的 U 盘设备
+点击"选择",找到下载的 Linux Mint ISO 文件
+| 选项 | 设置 |
|---|---|
| 分区类型 | GPT(新电脑)或 MBR(老电脑) |
| 目标系统 | UEFI(新电脑)或 BIOS(老电脑) |
| Persistent Partition Size | 8-16 GB(重要!这是持久化存储空间) |
点击"开始",等待完成(约 5-10 分钟)
+开机时连续按启动键(不同品牌不同):
+| 品牌 | 启动菜单键 | BIOS 设置键 |
|---|---|---|
| 联想 Lenovo | F12 | F2 |
| 戴尔 Dell | F12 | F2 |
| 惠普 HP | F9 | F10 |
| 华硕 ASUS | F8 | F2 / Del |
| 宏碁 Acer | F12 | F2 |
| 小米 | F12 | F2 |
| 华为 | F12 | F2 |
| 自组装 | F11 / F12 | Del |
在启动菜单中选择你的 U 盘(通常显示为 USB 或 U 盘品牌名)
+启动菜单中选择第一项,等待进入桌面(约 1-2 分钟)
+点击右下角网络图标,连接 WiFi 或插入网线
+# 打开终端 (Ctrl+Alt+T)
+sudo apt update
+sudo apt install -y language-pack-zh-hans fonts-wqy-microhei
+# 打开终端 (Ctrl+Alt+T)
+curl -O https://raw.githubusercontent.com/dongsheng123132/u-claw/main/portable/setup-linux-usb.sh
+bash setup-linux-usb.sh
+脚本自动下载 Node.js + OpenClaw + QQ 插件,全部使用国内镜像
+# 1. 安装 Node.js
+curl -# -L https://npmmirror.com/mirrors/node/v22.14.0/node-v22.14.0-linux-x64.tar.gz -o /tmp/node.tar.gz
+mkdir -p ~/node && tar -xzf /tmp/node.tar.gz -C ~/node --strip-components=1
+export PATH="$HOME/node/bin:$PATH"
+
+# 2. 安装 OpenClaw
+mkdir -p ~/openclaw && cd ~/openclaw
+npm init -y
+npm install openclaw@latest --registry=https://registry.npmmirror.com
+
+# 3. 启动
+node node_modules/openclaw/openclaw.mjs gateway run --port 18789
+不用 U 盘,直接在中国网络环境下从零安装 OpenClaw。全程使用国内镜像,无需翻墙。
+ +适用场景:你已经有一台能联网的电脑(Mac / Windows / Linux),想直接安装 OpenClaw,不需要 U 盘。
+OpenClaw 需要 Node.js v22 或以上版本。
+ +.pkg(Mac)或 .msi(Windows)安装包,双击安装# 1. 安装 nvm
+curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
+
+# 2. 设置 Node.js 国内镜像(关键!否则下载很慢)
+export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
+echo 'export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node' >> ~/.zshrc
+
+# 3. 安装 Node.js 22
+nvm install 22
+nvm use 22
+
+# 4. 验证
+node -v # 应显示 v22.x.x
+
+# Mac/Linux:
+curl -fsSL https://fnm.vercel.app/install | bash
+
+# Windows (PowerShell):
+winget install Schniz.fnm
+
+# 设置国内镜像
+export FNM_NODE_DIST_MIRROR=https://npmmirror.com/mirrors/node
+echo 'export FNM_NODE_DIST_MIRROR=https://npmmirror.com/mirrors/node' >> ~/.zshrc
+
+# 安装 Node.js 22
+fnm install 22 && fnm use 22
+
+安装完 Node.js 后,必须先换镜像源,否则安装 OpenClaw 会超时。
+ +# 推荐:淘宝 npmmirror(最稳定,速度最快)
+npm config set registry https://registry.npmmirror.com
+
+# 验证
+npm config get registry
+# 应返回: https://registry.npmmirror.com/
+
+| 镜像源 | 地址 | 说明 |
|---|---|---|
| 淘宝 npmmirror | https://registry.npmmirror.com | 首选,最快最稳 |
| 腾讯云 | https://mirrors.cloud.tencent.com/npm/ | 腾讯云加速 |
| 华为云 | https://mirrors.huaweicloud.com/repository/npm/ | 华为云加速 |
| 阿里云 | https://npm.aliyun.com | 阿里云加速 |
| 中科大 | https://mirrors.ustc.edu.cn/ | 高校镜像 |
| 清华大学 | https://mirrors.tuna.tsinghua.edu.cn/ | 高校镜像 |
registry.npm.taobao.org 已于 2024 年 1 月停止服务,请使用新域名 registry.npmmirror.com。# 安装 nrm 镜像源管理工具
+npm install -g nrm
+
+nrm ls # 查看所有可用镜像源
+nrm use taobao # 一键切换淘宝源
+nrm test # 测速,看哪个最快
+
+# 全局安装
+npm install -g openclaw@latest
+
+# 如果超时,手动指定镜像:
+npm install -g openclaw@latest --registry=https://registry.npmmirror.com
+
+# 验证
+openclaw --version
+
+启动配置向导:
+# 启动引导向导 + 安装后台守护进程
+openclaw onboard --install-daemon
+
+# 或只启动引导向导
+openclaw onboard
+
+| 模型 | 注册地址 | API Base URL | 推荐场景 |
|---|---|---|---|
| DeepSeek | platform.deepseek.com | https://api.deepseek.com/v1 | 编程首选,极便宜 |
| Kimi | platform.moonshot.cn | https://api.moonshot.cn/v1 | 长文档,256K 上下文 |
| 通义千问 | dashscope.console.aliyun.com | 配置向导选 Qwen | 免费额度大 |
| 智谱 GLM | open.bigmodel.cn | 配置向导选 Zhipu | 学术场景 |
| 豆包 | console.volcengine.com/ark | 配置向导选 Volcano | 火山引擎生态 |
| MiniMax | platform.minimaxi.com | 配置向导选 MiniMax | 语音多模态 |
# 在配置向导中:
+# 1. 选择 Custom Provider
+# 2. 填写:
+# API Base URL: https://api.deepseek.com/v1
+# API Key: sk-xxxxxxxx(在 platform.deepseek.com 获取)
+# Model: deepseek-chat
+
+# 启动网关
+openclaw gateway run
+
+# 查看状态
+openclaw gateway status
+
+# 浏览器打开控制台
+# http://127.0.0.1:18789
+
+# 1. 确认镜像源已切换
+npm config get registry
+# 应该是 https://registry.npmmirror.com/
+
+# 2. 如果还超时,试其他镜像
+npm config set registry https://mirrors.cloud.tencent.com/npm/
+
+# 3. 清除缓存重试
+npm cache clean --force
+npm install -g openclaw@latest
+
+# 重新打开终端,或手动加载配置
+source ~/.zshrc # macOS
+source ~/.bashrc # Linux
+
+# 确认 Node.js 版本
+node -v # 需要 v22+
+
+# 如果版本太低
+nvm install 22 && nvm use 22
+# 或
+fnm install 22 && fnm use 22
+
+deepseek-chat)openclaw doctor --repair 可以自动检测和修复常见问题。