OpenClaw本地部署自动化
发表于:2026-03-06 | 分类: AI

官方网址:https://openclaws.io/zh/

Git安装

Node安装

最好下载最新版本
官方网址:https://nodejs.cn/download/

OpenClaw安装

以管理员身份运行powershell

1
2
3
Set-ExecutionPolicy RemoteSigned
npm cache clean --force
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
1
iwr -useb https://openclaw.ai/install.ps1 | iex
1
openclaw onboard

image.png
选择模型
Qwen
image.png

使用豆包模型

需要购买火山方舟,首月8.9/月

https://blog.csdn.net/VOR234/article/details/157700260

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"meta": {
"lastTouchedVersion": "2026.2.26",
"lastTouchedAt": "2026-03-02T12:45:30.004Z"
},
"wizard": {
"lastRunAt": "2026-03-02T12:38:49.040Z",
"lastRunVersion": "2026.2.26",
"lastRunCommand": "onboard",
"lastRunMode": "local"
},
"diagnostics": {
"otel": {
"enabled": true
}
},
"auth": {
"profiles": {
"doubao:default": {
"provider": "doubao",
"mode": "api_key"
}
}
},
"models": {
"providers": {
"doubao": {
"baseUrl": "https://ark.cn-beijing.volces.com/api/coding/v3",
"apiKey": "__OPENCLAW_REDACTED__",
"api": "openai-completions",
"models": [
{
"id": "doubao-seed-1-8-251228",
"name": "doubao-seed-1-8-251228",
"api": "openai-completions",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 8192
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "doubao/doubao-seed-1-8-251228"
},
"models": {
"doubao/doubao-seed-1-8-251228": {
"alias": "doubao"
}
},
"workspace": "C:\\Users\\25354\\.openclaw\\workspace"
}
},
"commands": {
"native": "auto",
"nativeSkills": "auto",
"restart": true,
"ownerDisplay": "raw"
},
"session": {
"dmScope": "per-channel-peer"
},
"channels": {
"qqbot": {
"appId": "102887420",
"clientSecret": "__OPENCLAW_REDACTED__",
"enabled": true,
"markdownSupport": false,
"allowFrom": [
"*"
]
}
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "__OPENCLAW_REDACTED__"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
},
"nodes": {
"denyCommands": [
"camera.snap",
"camera.clip",
"screen.record",
"calendar.add",
"contacts.add",
"reminders.add"
]
}
},
"plugins": {
"entries": {
"qqbot": {
"enabled": true
}
}
}
}

https://www.volcengine.com/docs/82379/1925114?lang=zh

接入QQ

移动到自己openclaw扩展目录

1
2
cd C:\Users\25354\AppData\Roaming\npm\node_modules\openclaw\extensions
npm install silk-wasm
1
2
git clone https://github.com/sliverp/qqbot.git
openclaw plugins list

image.png

1
2
openclaw plugins enable qqbot
openclaw gateway restart

image.png

进入QQ开放平台:
https://q.qq.com/#/apps

创建机器人
image.png

沙箱配置->添加成员 扫码添加
开发管理->添加ip

1
2
Remove-Item Alias:curl
curl -s ipinfo.io/ip
1
2
3
openclaw config set channels.qqbot.appId "****************"
openclaw config set channels.qqbot.clientSecret "**********************"
openclaw config set channels.qqbot.enable true

找到C:\Users\25354.openclaw\openclaw.json改成字符串类型
image.png

OK最后接入成果
image.png

浏览器自动化

默认为插件模式

改为托管模式
config配置

1
2
3
4
"browser": {
"enabled": true,
"defaultProfile": "openclaw"
},
下一篇:
Obsidian主题配置及美化