Skip to content

安装 OpenClaw

宿主机开启反向代理

bash
ssh -R 1080:127.0.0.1:7897 root@118.89.53.75 -N

配置代理开关 alias 命令

bash
# 代理开关函数
vpn() {
    export http_proxy=http://127.0.0.1:1080
    export https_proxy=http://127.0.0.1:1080
    export ALL_PROXY=socks5://127.0.0.1:1080
    echo "✅ 代理已开启"
}
vpn-unset() {
    unset http_proxy https_proxy ALL_PROXY
    echo "❌ 代理已关闭"
}

安装 nvm

bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

安装 node 22

bash
source ~/.bashrc

nvm install 22

安装 pnpm

bash
corepack enable
pnpm

pnpm -v

pnpm setup
source ~/.bashrc

pnpm 安装 OpenClaw

bash
# Install OpenClaw
pnpm add -g openclaw

# Meet your lobster
openclaw onboard

安装 QQ Channel 插件 sliverp/qqbot

bash
openclaw plugins install @sliverp/qqbot@latest

# 命令格式:openclaw channels add --channel qqbot --token "AppID:AppSecret"
openclaw channels add --channel qqbot \
    --token "102848735:sIjAb2TuLnFh9b3VyRuNqJmFjDhBf9d8"

# OpenClaw-02
openclaw channels add --channel qqbot \
    --token "1903659705:Uk0HYq8Rk4Oi3Ok6TqEc1QqGg7Y0TwQu"

本地启动 OpenClaw Dashboard

bash
# 查看 token
openclaw dashboard --no-open

# 反向代理
ssh -N -L 18789:127.0.0.1:18789 root@118.89.53.75

修复 OpenClaw Dashboard "Not Found",参考:https://github.com/openclaw/openclaw/issues/39621


https://github.com/nvm-sh/nvm

# 安装 nvm

nvm install 22


corepack enable
pnpm
pnpm -v
pnpm setup
source ~/.bashrc

# pnpm 安装 OpenClaw

https://docs.openclaw.ai/install#npm-or-pnpm

openclaw onboard
openclaw gateway status

# pnpm 安装 Claude Code

pnpm install -g @anthropic-ai/claude-code


---


Dashboard ready ────────────────────────────────────────────────────────────────╮
│                                                                                  │
│  Dashboard link (with token):                                                    │
│  http://127.0.0.1:18789/#token=e0c82e01b746a365873267f0853ce3e0a808f3ff78116b92  │
│  Copy/paste this URL in a browser on this machine to control OpenClaw.           │
│  No GUI detected. Open from your computer:                                       │
│  ssh -N -L 18789:127.0.0.1:18789 ubuntu@<host>                                   │
│  Then open:                                                                      │
│  http://localhost:18789/                                                         │
│  http://localhost:18789/#token=e0c82e01b746a365873267f0853ce3e0a808f3ff78116b92  │
│  Docs:                                                                           │
│  https://docs.openclaw.ai/gateway/remote                                         │
│  https://docs.openclaw.ai/web/control-ui                                         │
│                                                                                  │
├──────────────────────────────────────────────────────────────────────────────────╯

ssh -N -L 18789:127.0.0.1:18789 ubuntu@101.33.234.24

pkill、pgrep