2026-03-13
把 OpenClaw 装进U盘,快速部署即插即用
你还在海鲜市场上买U盘版龙虾?快使用 dongsheng123132 的项目,一键制作龙虾U盘吧。
通过 GitHub的 U-Claw 达成把 OpenClaw 装进u盘里,做成 U 盘可插任意电脑,双击即用,便携虾!
两种 U 盘模式
| 便携版 U 盘 | Linux 启动盘 | |
|---|---|---|
| 原理 | 在已有系统(Mac/Win/Linux)上运行 U 盘里的脚本 | 从 U 盘启动整个 Linux 系统 + OpenClaw |
| U 盘要求 | 4GB+ | 64GB+ USB 3.0(USB 2.0 太慢不推荐) |
| 依赖 | 电脑已有操作系统 | 不依赖任何已装系统 |
| 适合 | 临时用、公共电脑、演示 | 专用 AI 工作站、无系统裸机 |
下面为该项目的部署教程:
快速开始:制作便携版 U 盘
# 1. 克隆代码
git clone https://github.com/dongsheng123132/u-claw.git
# 2. 补齐大依赖(Node.js + OpenClaw,国内镜像,约 1 分钟)
cd u-claw/portable && bash setup.sh
# 3. 拷贝到 U 盘
cp -R portable/ /Volumes/你的U盘/U-Claw/ # Mac
# 或 Windows 资源管理器直接拖过去完成! 插上 U 盘,双击启动脚本就能用。
制作 Linux 启动盘
把整个 Linux 系统 + OpenClaw 刻在 U 盘,开机从 USB 启动直接进入 AI 助手桌面。
准备:
步骤:
- Rufus 刻录 ISO → 开启 Persistent Storage(8-16GB)
- USB 启动 → 进入 Linux Mint 桌面 → 连网
运行安装脚本:
curl -O https://raw.githubusercontent.com/dongsheng123132/u-claw/main/portable/setup-linux-usb.sh bash setup-linux-usb.sh
详细图文教程见 guide.html → Linux 启动盘模式。
U 盘功能一览
| 功能 | Mac | Windows | Linux |
|---|---|---|---|
| 免安装运行 | Mac-Start.command | Windows-Start.bat | bash Linux-Start.sh |
| 功能菜单 | Mac-Menu.command | Windows-Menu.bat | bash Linux-Menu.sh |
| 安装到电脑 | Mac-Install.command | Windows-Install.bat | bash Linux-Install.sh |
| 首次配置 | Config.html | Config.html | Config.html |
U 盘文件结构
U-Claw/ ← 整个拷到 U 盘
├── Mac-Start.command Mac 免安装运行
├── Mac-Menu.command Mac 功能菜单
├── Mac-Install.command 安装到 Mac
├── Windows-Start.bat Windows 免安装运行
├── Windows-Menu.bat Windows 功能菜单
├── Windows-Install.bat 安装到 Windows
├── Linux-Start.sh Linux 免安装运行
├── Linux-Menu.sh Linux 功能菜单
├── Linux-Install.sh 安装到 Linux
├── setup-linux-usb.sh Linux 启动盘内安装 OpenClaw
├── Config.html 首次配置页面
├── setup.sh 补齐依赖(开发者用)
├── app/ ← 大依赖(setup.sh 下载,不进 git)
│ ├── core/ OpenClaw + QQ 插件
│ └── runtime/
│ ├── node-mac-arm64/ Mac Apple Silicon
│ ├── node-win-x64/ Windows 64-bit
│ └── node-linux-x64/ Linux x86_64
└── data/ ← 用户数据(不进 git)
├── .openclaw/ 配置文件
├── memory/ AI 记忆
└── backups/ 备份桌面安装版(Electron App)
除了 U 盘便携版,还有桌面 App 版本:
cd u-claw-app
bash setup.sh # 一键安装开发环境(国内镜像)
npm run dev # 开发模式运行
npm run build:mac-arm64 # 打包 → release/*.dmg
npm run build:win # 打包 → release/*.exe支持的 AI 模型
国产模型(无需翻墙):
| 模型 | 推荐场景 |
|---|---|
| DeepSeek | 编程首选,极便宜 |
| Kimi K2.5 | 长文档,256K 上下文 |
| 通义千问 Qwen | 免费额度大 |
| 智谱 GLM | 学术场景 |
| MiniMax | 语音多模态 |
| 豆包 Doubao | 火山引擎 |
国际模型: Claude · GPT · Gemini(需翻墙或中转)
支持的聊天平台
| 平台 | 状态 | 说明 |
|---|---|---|
| ✅ 已预装 | 输入 AppID + Secret 即可 | |
| 飞书 | ✅ 内置 | 企业首选 |
| Telegram | ✅ 内置 | 海外推荐 |
| ✅ 内置 | Baileys 协议 | |
| Discord | ✅ 内置 | — |
| 微信 | ✅ 社区插件 | iPad 协议 |
国内镜像
所有脚本默认走国内镜像,无需翻墙:
| 资源 | 镜像 |
|---|---|
| npm 包 | registry.npmmirror.com |
| Node.js | npmmirror.com/mirrors/node |
| Electron | npmmirror.com/mirrors/electron |
开发 & 贡献
git clone https://github.com/dongsheng123132/u-claw.git
cd u-claw/portable && bash setup.sh
bash Mac-Start.command # Mac 测试
bash Linux-Start.sh # Linux 测试平台支持:
| 平台 | 状态 |
|---|---|
| Mac Apple Silicon (M1-M4) | ✅ |
| Linux x86_64 | ✅ |
| Linux ARM64 | ✅ |
| Windows x64 | 🚧 开发中 |
| Mac Intel | ❌ 暂不支持 |
相关链接
https://www.u-claw.org/guide.html
https://github.com/dongsheng123132/u-claw
还没有评论,来抢沙发吧