Contents
  1. 1. 安装
    1. 1.1. 一键安装
    2. 1.2. 手动安装
    3. 1.3. 编译安装
  2. 2. 配置
    1. 2.1. channel
      1. 2.1.1. QQBot
  3. 3. 对话
  4. 4. 安全相关

安装

一键安装

1
2
iwr -useb https://openclaw.ai/install.ps1 | iex
curl -fsSL https://openclaw.ai/install.sh | bash

手动安装

1
2
3
4
5
6
7
8
9
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
npm config set registry https://registry.npmmirror.com
npm config get registry
npm config set strict-ssl false
npm install -g openclaw@latest
npm config set strict-ssl true

npm uninstall -g @openclaw/cli

编译安装

1
2
3
4
5
6
git clone https://github.com/openclaw/openclaw.git
cd openclaw

pnpm install
pnpm ui:build # auto-installs UI deps on first run
pnpm build

配置

https://docs.openclaw.ai/cli/

1
2
3
4
5
6
7
openclaw onboard --install-daemon
# "baseUrl": "http://172.31.64.1:11434/v1"
# ollama list
# qwen3.5:4b
# 手动干预配置,请修改 ~/.openclaw/openclaw.json
openclaw gateway install --port 18789

openclaw config set models.providers.ollama.apiKey “ollama-local”

1
2
3
openclaw models list
openclaw models set <model-or-alias>
# ollama stop lfm2.5-thinking:1.2b

channel

QQBot

1
2
3
4
5
6
1.安装OpenClaw开源社区QQBot插件
openclaw plugins install @sliverp/qqbot@latest
2.配置绑定当前QQ机器人
openclaw channels add --channel qqbot --token "1903268287:CLOI3gCg1ISVO6e3"
3.重启本地OpenClaw服务
openclaw gateway restart

对话

1
2
3
4
5
6
7
8
openclaw gateway 
openclaw gateway start
openclaw gateway enable
openclaw gateway stop

openclaw dashboard
openclaw update

安全相关

1
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser