安装
一键安装
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 pnpm build
|
配置
https://docs.openclaw.ai/cli/
1 2 3 4 5 6 7
| openclaw onboard --install-daemon
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
|