curl -fsSL https://openclaw.ai/install.sh | bash# 1. 克隆源码仓库
git clone --depth 1 https://github.com/openclaw/openclaw.git /tmp/openclaw-src
# 2. 安装依赖并构建 UI
cd /tmp/openclaw-src
pnpm install && pnpm ui:build
# 3. 复制到 npm 安装目录
cp -r /tmp/openclaw-src/dist/control-ui ~/.npm-global/lib/node_modules/openclaw/dist/
# 4. 重启 gateway
openclaw gateway restartcurl -fsSL https://openclaw.ai/install.sh |bash