安装 openclaw

openclaw官网 : https://openclaw.ai/

curl -fsSL https://openclaw.ai/install.sh | bash
I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue?
多人使用需要增加限制你是否清楚选择:   Yes

Setup mode
选择 : QuickStart

 Model/auth provider
选择模型: 我选了自定义 Custom Provider

API Base URL
我配置了 deepseek 的 api:   https://api.deepseek.com/v1

API Key (leave blank if not required)
输入你的key
Endpoint compatibility
选择openai 因为 openai 与 deepseek 兼容:  OpenAI-compatible

Model ID
选择模型id deepseek 支持 deepseek-chat和deepseek-reasoner:  deepseek-chat

Model alias (optional)
│  deepseek-chat
接下来先全部跳过 选择浏览器访问  完成安装


配置局域网内设备访问
openclaw config set gateway.bind lan   #将 openclaw 网关接入局域网
openclaw config set gateway.controlUi.dangerouslyDisableDeviceAuth true  #配置匿名访问
openclaw config set 'gateway.controlUi.allowedOrigins' '["http://192.168.198.11:18789"]'  #允许局域网通过你的主机 ip 访问
openclaw gateway restart  #重启 openclaw 网关

#配置完成后就可以在你局域网内的主机上输入的的 openclaw 主机 ip 进行访问  (这时会提示与网关断开连接是正常的)
cat ~/.openclaw/openclaw.json | grep token  #查看openclaw 的 token  然后输入到你浏览器的网页中就可以正常使用了

添加配置

openclaw config  #进入交互式添加修改配置
openclaw models list  # 查看可用模型列表
openclaw sessions #查看会话列表

修改模型

openclaw models set deepseek-reasoner #修改为deepseek-reasoner
openclaw gateway restart #重启网关

导航