树莓派安装openclaw小龙虾
一、安装方法
1、安装
方式1、macOS/Linux系统
curl -fsSL https://openclaw.ai/install.sh | bash
方式2、Windows系统
iwr -useb https://openclaw.ai/install.ps1 | iex
方式3、npm方式
npm install -g openclaw@latest
2、配置
首次安装后,OpenClaw 会自动启动配置向导,帮助您快速完成初始设置。您也可以手动执行openclaw onboard命令进行配置。
|
配置项 |
建议配置 |
|
I understand this is powerful and inherently risky. Continue? |
选择 Yes |
|
Onboarding mode |
选择 QuickStart |
|
Model/auth provider |
选择 Skip for now(稍后配置百炼模型) |
|
Filter models by provider |
选择 All providers |
|
Default model |
选择 Keep current |
|
Select channel (QuickStart) |
选择 Skip for now(稍后配置渠道) |
|
Configure skills now? (recommended) |
选择 No |
|
Enable hooks? |
按空格键选中选项,按回车键进入下一步 |
|
How do you want to hatch your bot? |
选择 Do this later |
API Key获取:https://bailian.console.aliyun.com/?spm=a2c4g.11186623.0.0.5ceb2f356x5pqw&tab=model#/api-key
模型 ID:qwen3.5-plus
浏览器打开网站:http://127.0.0.1:18789
打开配置页面:配置 > RAW(或Config > RAW)
添加百炼配置:复制以下配置信息,替换原"agents": {...},部分,并将 DASHSCOPE_API_KEY替换为您的API Key
"models": {
"mode": "merge",
"providers": {
"bailian": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "DASHSCOPE_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "qwen3.5-plus",
"name": "qwen3.5-plus",
"reasoning": false,
"input": ["text", "image"],
"contextWindow": 1000000,
"maxTokens": 65536
},
{
"id": "qwen3-coder-next",
"name": "qwen3-coder-next",
"reasoning": false,
"input": ["text"],
"contextWindow": 262144,
"maxTokens": 65536
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "bailian/qwen3.5-plus"
},
"models": {
"bailian/qwen3.5-plus": {},
"bailian/qwen3-coder-next": {}
}
}
}
4、保存并应用配置后聊天测试

5、支持局域网其他电脑访问
(1)修改配置文件

gateway: {
port: 18789,
mode: 'local',
bind: 'lan',
controlUi: {
enabled: true,
allowedOrigins: [
'*',
],
allowInsecureAuth: true,
}
.....其它配置
}
(2)本地端口转发Mac
本地28789转到树莓派18789。 pi为树莓派账户,192.168.31.239为树莓派ip地址
ssh -L 28789:127.0.0.1:18789 pi@192.168.31.239
(3)本地电脑小龙虾连接修改

6、2026.3.2默认参数调整
该版本默认关闭了文件操作能力,需要手动打开。修改小龙虾配置项,修改以下参数值。
tools: {
profile: 'full',
},
---------跨Agent使用
tools: {
profile: 'full',
sessions: { visibility: 'all }
},
介绍:
sessions.visibility 控制的是 session 工具(sessions_list、sessions_history、sessions_send)能看到哪些 session 的范围。
self — 只能看到当前自己的 session
tree — 当前 session + 它派生的子 agent session(默认值)
agent — 当前 agent 下的所有 session
all — 所有 session,包括跨 agent 的
所以 sessions: { visibility: "all" } 的作用是:让我能看到并操作所有 session,包括其他 agent 的。比如你将来配了多个 agent(家人用的、工作用的),设成 all 的 agent 可以查看和发消息给任何一个
7、2026.3.7安全升级
gateway.controlUi增加如下参数
增加:dangerouslyDisableDeviceAuth: true,
allowInsecureAuth: true → 放宽浏览器认证检查,但不关闭设备验证
dangerouslyDisableDeviceAuth: true → 彻底关掉设备验证,只靠 token/密码认证

N、其它
1、阿里模型
https://help.aliyun.com/zh/model-studio/openclaw#f5bd07065ejo3
模型用量:https://bailian.console.aliyun.com/cn-beijing/?spm=a2c4g.11186623.0.0.5ceb2f356x5pqw&tab=model#/model-usage/free-quota

浙公网安备 33010602011771号