hfshfg b1468d455c feat(portable): 虾盘云插上即用 — 自动开户送试用额度 + Config 首选卡片
解决「插上 U 盘选虾盘云模型却 Invalid token」:之前客户端只生成
sk-uc-指纹 key 写进配置,但后台从没注册该 token。

- xiapan-client.mjs 加 provisionApiKey():把设备指纹送到虾盘云后台
  (POST api.u-claw.org/internal/token/provision) 自动开一个带试用额度
  的 token,返回真正可用的 key。
- bootstrap-xiapan.mjs 改:首启(配置无 cloud key 时)调 provision 拿真
  key 写配置;已有 key 则幂等跳过;provision 失败回退指纹 key 不阻塞启动。
  后端按 deviceId 幂等,刷不出额度。
- Config.html:模型网格加「虾盘云」首选卡片(一个 key 用全部模型,无需
  申请,选中直接启动跳过填 Key);更新过时型号(MiniMax-M2/kimi-k2/
  qwen-plus/doubao-seed-1.6/gpt-5.4/claude-opus-4-6/deepseek-v4);
  banner 文案改为「已含试用额度」。

注:开户/送额度的商业逻辑在闭源服务端(token-key-service),开源仓只放
调用机制。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 16:01:35 +08:00
2026-04-13 11:33:06 +08:00

🦞 U-Claw虾盘

虾盘 — 全球首个 U 盘里运行的 AI 助手 | The world's first AI assistant that runs from a USB drive 制作「插上就能用」的 AI 助手 U 盘 — 教程与源代码 Build a plug-and-play AI assistant USB drive — Tutorial & Source Code

License: MIT

中文 | English | 📖 完整教程


中文

这是什么

U-Claw虾盘是一个制作教程 + 全套源代码,教你把 OpenClaw(开源 AI 助手框架)做成 U 盘——插上任意电脑,双击就能用 AI。为什么叫虾盘U-Claw = USB + Claw虾钳U 盘 + AI = 虾盘。

代码库本身就是 U 盘的文件骨架,运行 setup.sh 补齐大依赖后,整个 portable/ 目录直接拷贝到 U 盘即可。

📖 完整教程 — 从零开始的手工安装指南、模型配置、聊天平台接入,小白也能看懂。

🔗 内置虾盘云:开箱即用

每个 U-Claw 实例首次启动会自动根据当前 U 盘 / 硬盘的指纹生成一个 sk-... 形式的虾盘云 apiKey并写入 data/.openclaw/openclaw.json。打开 Config.html 就能看到这张「已绑定虾盘云」横幅指纹来源、Key、余额

  • 不送 token:余额初始为 0需自行充值u-claw.org/cloud.html
  • 指纹规则
    • 从 U 盘根目录启动 → 绑定该 U 盘的硬件指纹USB Serial + PNPDeviceID
    • 从硬盘启动(电脑安装版 / Electron App→ 绑定主板 + 系统盘指纹
    • Mac/Linux 走 Hardware UUID / /etc/machine-id + 启动盘 UUID
  • 换机 / 换盘:换 U 盘或换电脑后,新的指纹会生成新的 Key旧 Key 的余额仍归属原指纹(在 Config.html 点「解绑」可触发重新绑定)
  • 隐私:指纹只用于本地生成 Key不上传无登录

一键安装(推荐)

不需要 U 盘,一行命令直接装到电脑:

# Mac / Linux
curl -fsSL https://u-claw.org/install.sh | bash

# Windows (PowerShell 管理员)
irm https://u-claw.org/install.ps1 | iex

自动完成: Node.js 下载 → OpenClaw 安装 → 10 个中国技能 → 模型配置 → 启动脚本生成。全程国内镜像,无需翻墙。

详见 install/README.md

快速开始:制作便携版 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 盘,双击启动脚本就能用。

U 盘功能一览

功能 Mac Windows
免安装运行 Mac-Start.command Windows-Start.bat
功能菜单 Mac-Menu.command Windows-Menu.bat
安装到电脑 Mac-Install.command Windows-Install.bat
首次配置 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
├── Config.html                   首次配置页面
├── setup.sh                      补齐依赖(开发者用)
├── app/                          ← 大依赖setup.sh 下载,不进 git
│   ├── core/                        OpenClaw + QQ 插件
│   └── runtime/
│       ├── node-mac-arm64/          Mac Apple Silicon
│       ├── node-mac-x64/           Mac Intel
│       └── node-win-x64/           Windows 64-bit
└── data/                         ← 用户数据(不进 git
    ├── .openclaw/                   配置文件
    ├── memory/                      AI 记忆
    └── backups/                     备份

Linux 可启动版

连操作系统都没有?没关系。可启动版可以让任意电脑从 U 盘直接启动 Ubuntu + AI

  • 本仓库内:bootable/ 目录(与其他模块完全独立,互不影响)
  • 独立仓库:u-claw-linux(内容一致,方便单独克隆)

基于 Ventoy + Ubuntu 24.04 LTS + 持久化存储,在 Windows 上运行 4 步 PowerShell 脚本即可制作。详见 bootable/README.md

桌面安装版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

直接下载发行版

GitHub Releases 提供四种打包好的产物:

  • u-claw-portable-windows-vX.Y.Z.zip — Windows 便携版(解压即用)
  • u-claw-portable-mac-vX.Y.Z.zip — Mac 便携版
  • U-Claw Setup vX.Y.Z.exe — Windows 桌面安装包
  • U-Claw-vX.Y.Z-arm64.dmg — Mac 桌面安装包

⚠️ 安装包未签名:

  • Windows:双击 .exe 时 SmartScreen 会拦,点「更多信息」→「仍要运行」
  • Mac:首次启动如被 Gatekeeper 拦,执行 xattr -rd com.apple.quarantine /Applications/U-Claw.app 或在 Finder 里右键→打开

支持的 AI 模型

国产模型(无需翻墙):

模型 推荐场景
DeepSeek 编程首选,极便宜
Kimi K2.5 长文档256K 上下文
通义千问 Qwen 免费额度大
智谱 GLM 学术场景
MiniMax 语音多模态
豆包 Doubao 火山引擎

国际模型: Claude · GPT · Gemini需翻墙或中转

支持的聊天平台

平台 状态 说明
QQ 已预装 输入 AppID + Secret 即可
飞书 内置 企业首选
Telegram 内置 海外推荐
WhatsApp 内置 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 测试

平台支持:

平台 状态 说明
Mac Apple Silicon (M1-M4) 便携版 + 桌面版
Mac Intel (x64) 便携版 + 桌面版
Windows x64 🚧 开发中 便携版 + 桌面版
Linux x64可启动 U 盘) bootable/ 目录

欢迎 PR特别需要Windows 脚本完善、教程翻译。

🦞 寻找技术伙伴

U-Claw 是一个快速成长的开源项目,目前已有不少商业合作机会。

我们正在寻找:

  • 技术伙伴 — 全栈 / Node.js / Electron / 脚本自动化
  • 资源合作 — 渠道、内容、社区运营

如果你对 AI 工具的落地和商业化感兴趣,欢迎联系:

FAQ

Q: 需要翻墙吗? 不需要。安装和运行全程使用国内镜像,国产模型 API 直连。

Q: U 盘需要多大? 4GB+(完整约 2.3GB)。

Q: 能分发吗? MIT 协议,随便复制分发。

Q: Mac 提示"未验证的开发者" 右键脚本 → 打开。

Q: setup.bat / setup.sh 执行失败,提示模块找不到? 通常是 npm install 过程中网络中断导致 node_modules 不完整。解决步骤:

  1. 删除不完整的依赖:rmdir /s /q portable\app\core\node_modulesWindowsrm -rf portable/app/core/node_modulesMac
  2. 切换淘宝镜像重新安装:cd portable/app/core && npm install --registry=https://registry.npmmirror.com

Q: 系统已有 Node.js v24安装失败 Node.js v24 是最新开发版,部分依赖尚不兼容。需要 v20 或 v22 LTS。删除已下载的 runtime 目录后重新运行 setup它会自动下载内置的 Node v22

# Windows
rmdir /s /q portable\app\runtime\node-win-x64
setup.bat

# Mac
rm -rf portable/app/runtime/node-mac-arm64
bash setup.sh

Q: Mac 上提示 .toSorted is not a function 系统旧版 Node.js 被检测到并跳过了内置版本下载,但旧版 Node 不支持 .toSorted()(需要 v20+)。删除 runtime 目录让脚本重新下载内置 Node v22

rm -rf portable/app/runtime/node-mac-arm64
bash setup.sh

Q: 如何同时配置多个 AI 模型并切换? 支持同时配置多个 provider打开 Config.html → 在 Providers 区域点击「添加」,逐个填入各模型的 API Key 和地址(如 DeepSeek、Kimi、通义等→ 保存后,在聊天界面左上角下拉菜单随时切换。配置持久保存在 U 盘上。

Q: U 盘安装后无法创建文件 / 写入失败? 两种可能:① U 盘侧面有物理写保护开关,拨到解锁位置;② U 盘格式不兼容,建议格式化为 exFATMac/Windows/Linux 三端均支持读写)。

Q: 从 Ubuntu 向 U 盘复制时符号链接丢失? node_modules/.bin/ 下有大量符号链接FAT32/exFAT 在直接 cp -R 时会跳过。用 rsync -aL 可将符号链接展开为真实文件:

rsync -aL --progress portable/ /media/YOUR_USB/U-Claw/

Q: QQbot 报错 Unknown channel: qqbot Bundle 里的 @sliverp/qqbot 是未编译的 TypeScript 源码,需要先编译:

cd portable/app/core/node_modules/@sliverp/qqbot
npm install && npm run build

正式 Release 包已修复此问题,建议从 Releases 下载最新版。

联系 & 合作

微信二维码 — 贺去病 ai 工作室

🤝 招募代理 / 带货合作

虾盘 3.0 体验极佳,退货率极低,售后由我们负责——你只管卖货:

  • 抖店 / 直播带货:提供最高佣金比例,产品已在多个直播间验证转化
  • 代理分销:买断或按单分润均可谈,支持定制版本
  • 技术合作:有开发能力者欢迎深度合作

有意向请微信联系(备注「代理合作」优先处理)。


English

What is this

U-Claw (aka "虾盘" / "Xia Pan" in Chinese, meaning "Claw Drive") is a tutorial + complete source code for building an OpenClaw (open-source AI assistant framework) USB drive — plug it into any computer, double-click, and start using AI.

The codebase itself is the USB file skeleton. Run setup.sh to download large dependencies, then copy the entire portable/ directory to a USB drive.

📖 Full Tutorial — Step-by-step manual installation, model setup, chat platform integration.

No USB needed — install directly to your computer:

# Mac / Linux
curl -fsSL https://u-claw.org/install.sh | bash

# Windows (PowerShell as Admin)
irm https://u-claw.org/install.ps1 | iex

Automatically downloads Node.js, installs OpenClaw, configures 10 Chinese-optimized skills, and sets up your AI model. All downloads use China mirrors.

See install/README.md for details.

Quick Start: Build a Portable USB

# 1. Clone
git clone https://github.com/dongsheng123132/u-claw.git

# 2. Download dependencies (Node.js + OpenClaw, ~1 min)
cd u-claw/portable && bash setup.sh

# 3. Copy to USB drive
cp -R portable/ /Volumes/YOUR_USB/U-Claw/   # Mac
# Or drag & drop on Windows

Done! Plug in the USB, double-click the start script, and you're running AI.

USB Features

Feature Mac Windows
Run (no install) Mac-Start.command Windows-Start.bat
Menu Mac-Menu.command Windows-Menu.bat
Install to PC Mac-Install.command Windows-Install.bat
First-time config Config.html Config.html

File Structure

U-Claw/                          ← Copy entire folder to USB
├── Mac-Start.command             Mac launcher
├── Mac-Menu.command              Mac menu
├── Mac-Install.command           Install to Mac
├── Windows-Start.bat             Windows launcher
├── Windows-Menu.bat              Windows menu
├── Windows-Install.bat           Install to Windows
├── Config.html                   First-time config page
├── setup.sh                      Download dependencies (dev use)
├── app/                          ← Large deps (downloaded by setup.sh, not in git)
│   ├── core/                        OpenClaw + QQ plugin
│   └── runtime/
│       ├── node-mac-arm64/          Mac Apple Silicon
│       ├── node-mac-x64/           Mac Intel
│       └── node-win-x64/           Windows 64-bit
└── data/                         ← User data (not in git)
    ├── .openclaw/                   Config file
    ├── memory/                      AI memory
    └── backups/                     Backups

Linux Bootable USB

No operating system? No problem. Boot any computer from USB into Ubuntu + AI:

  • In this repo: bootable/ directory (fully independent from other modules)
  • Standalone repo: u-claw-linux (same content, easier to clone separately)

Based on Ventoy + Ubuntu 24.04 LTS + persistence. 4-step PowerShell scripts on Windows. See bootable/README.md for details.

Desktop App (Electron)

cd u-claw-app
bash setup.sh            # One-click dev setup (China mirrors)
npm run dev              # Dev mode
npm run build:mac-arm64  # Build → release/*.dmg
npm run build:win        # Build → release/*.exe

Supported AI Models

Chinese models (no VPN needed):

Model Best for
DeepSeek Coding, extremely cheap
Kimi K2.5 Long documents, 256K context
Qwen Large free tier
GLM (Zhipu) Academic use
MiniMax Voice & multimodal
Doubao Volcengine ecosystem

International models: Claude · GPT · Gemini (VPN or relay required in China)

Supported Chat Platforms

Platform Status Notes
QQ Pre-installed Enter AppID + Secret
Feishu (Lark) Built-in Enterprise favorite
Telegram Built-in International
WhatsApp Built-in Baileys protocol
Discord Built-in
WeChat Community plugin iPad protocol

China Mirrors

All scripts use China mirrors by default — no VPN needed:

Resource Mirror
npm packages registry.npmmirror.com
Node.js npmmirror.com/mirrors/node
Electron npmmirror.com/mirrors/electron

Development & Contributing

git clone https://github.com/dongsheng123132/u-claw.git
cd u-claw/portable && bash setup.sh
bash Mac-Start.command   # Test on Mac

Platform Support:

Platform Status Notes
Mac Apple Silicon (M1-M4) Portable + Desktop
Mac Intel (x64) Portable + Desktop
Windows x64 🚧 In progress Portable + Desktop
Linux x64 (Bootable USB) bootable/ directory

PRs welcome! Especially: Windows scripts, documentation.

🔧 Professional Services / 专业服务

Need help? We offer remote support and custom development:

Service Description Price
Remote Installation We remotely install OpenClaw + skills + model config for you Free
Troubleshooting Startup failures, port conflicts, network issues From ¥50
Model Tuning API key setup, model switching, prompt optimization From ¥50
Custom Development Custom skills, enterprise private deployment, QQ/WeChat/Feishu bot integration From ¥200
USB Green Edition Pre-built portable USB with your custom skills & models From ¥100

One-click remote support — run one command, we connect and fix it:

# Mac / Linux
curl -fsSL https://u-claw.org/remote.sh | bash

# Windows (Admin PowerShell)
irm https://u-claw.org/remote.ps1 | iex

WeChat: hecare888 (备注「U-Claw 远程」优先处理)

👉 View full service details / 查看完整服务详情

🦞 Looking for Partners

U-Claw is a fast-growing open-source project with real commercial opportunities.

We're looking for:

  • Technical partners — Full-stack / Node.js / Electron / scripting
  • Resource partners — Distribution, content, community

If you're interested in AI tooling and commercialization, let's talk:

FAQ

Q: Do I need a VPN? No. All downloads use China mirrors. Chinese AI model APIs work directly.

Q: How big should the USB drive be? 4GB+ (~2.3GB full).

Q: Can I redistribute? MIT license — copy and share freely.

Q: Mac says "unverified developer"? Right-click the script → Open.

Q: setup.bat / setup.sh fails with "module not found"? Usually caused by a network interruption during npm install, leaving node_modules incomplete. Fix:

  1. Delete incomplete dependencies: rmdir /s /q portable\app\core\node_modules (Windows) or rm -rf portable/app/core/node_modules (Mac)
  2. Reinstall using China mirror: cd portable/app/core && npm install --registry=https://registry.npmmirror.com

Q: Already have Node.js v24 and installation fails? Node.js v24 is a dev release — some dependencies aren't compatible yet. You need v20 or v22 LTS. Delete the runtime folder to force a fresh download of the bundled Node v22:

# Windows
rmdir /s /q portable\app\runtime\node-win-x64
setup.bat

# Mac
rm -rf portable/app/runtime/node-mac-arm64
bash setup.sh

Q: Mac shows .toSorted is not a function? Your system Node.js was detected and the bundled version was skipped, but the system version is too old (needs v20+). Delete the runtime folder to re-download the bundled Node v22:

rm -rf portable/app/runtime/node-mac-arm64
bash setup.sh

Q: How do I use multiple AI models / providers? Multiple providers are supported! Open Config.html → click "Add" in the Providers section → enter API Key and endpoint for each model (DeepSeek, Kimi, Qwen, etc.) → save. Switch between models via the dropdown in the chat interface. Config is saved persistently on the USB drive.

Q: USB drive shows "cannot create file" / write errors? Two possibilities: ① The USB drive has a physical write-protect switch on the side — slide it to unlock; ② Format incompatibility — format the drive as exFAT (supported on Mac/Windows/Linux).

Q: Symlinks missing when copying from Ubuntu to USB? node_modules/.bin/ contains many symlinks that get skipped during direct cp -R. Use rsync -aL to expand symlinks into real files:

rsync -aL --progress portable/ /media/YOUR_USB/U-Claw/

Q: QQbot error: Unknown channel: qqbot? The bundled @sliverp/qqbot is uncompiled TypeScript source. Compile it manually:

cd portable/app/core/node_modules/@sliverp/qqbot
npm install && npm run build

This is fixed in the latest Release — downloading the pre-built release is recommended.

Contact & Partnership

WeChat QR — He Qubing AI Studio

🤝 Reseller / Affiliate Program

U-Claw 3.0 delivers excellent user experience with very low return rates. We handle all after-sales support — you focus on selling:

  • Live commerce / TikTok shop: Top commission rates, proven conversion in live streams
  • Reseller / distribution: Revenue share or wholesale, custom branded versions available
  • Technical partnership: Deep collaboration welcome for developers

Interested? WeChat hecare888 (mention "partnership" for priority response).


Made with 🦞 by 贺去病 ai 工作室

Description
No description provided
Readme 42 MiB
Languages
HTML 33.7%
Shell 23.9%
JavaScript 19.2%
PowerShell 12%
Batchfile 11.2%