Ubuntu 26.04 LTS 安装 Openclaw 2056.05.22设置局域网访问,接入DeepSeek V4 Pro

🦞 让 OpenClaw(龙虾)支持局域网访问

 ~/.openclaw/openclaw.json,在 gateway 下修改两处:


1. bind 改为 lan
"bind": "lan"
2. controlUi 补全三项


"controlUi": {
  "allowInsecureAuth": true,
  "dangerouslyAllowHostHeaderOriginFallback": true,
  "dangerouslyDisableDeviceAuth": true
}
然后运行:

openclaw gateway restart
等几秒后确认:

openclaw gateway status
看到 bind=lan (0.0.0.0)、Dashboard 显示局域网 IP、Connectivity probe: ok 就完成了。

🦞 OpenClaw 基础命令速查


🔧 安装与服务

命令说明
openclaw onboard首次初始化向导(配置 + 工作区 + 频道)
openclaw configure交互式配置入口
openclaw gateway start启动 Gateway 服务
openclaw gateway stop停止 Gateway 服务
openclaw gateway restart重启 Gateway
openclaw gateway status查看 Gateway 运行状态
openclaw gateway run --force强制前台运行 Gateway
openclaw uninstall卸载 Gateway 服务

📊 状态与诊断

命令说明
openclaw status综合状态概览(Gateway、频道、模型、会话)
openclaw healthGateway 健康详情
openclaw doctor诊断配置问题
openclaw doctor --fix自动修复常见问题
openclaw logs查看 Gateway 日志

⚙️ 配置管理

命令说明
openclaw config get读取配置项
openclaw config set <path> <value>设置配置项
openclaw config validate验证配置文件
openclaw config file配置所在路径
openclaw configure交互式配置向导

📡 频道(消息平台)

命令说明
openclaw channels add添加频道账号
openclaw channels list列出已配置频道
openclaw channels status频道连接状态
openclaw channels remove移除频道

🔑 设备与认证

命令说明
openclaw devices list已配对设备
openclaw devices pair配对设备
openclaw dashboard打开控制台 Web UI

🧠 模型

命令说明
openclaw models status各模型/Provider 认证状态
openclaw models list可用模型列表

📋 插件与技能

命令说明
openclaw plugins list插件列表
openclaw skills list已安装技能列表
openclaw skills install安装技能

💬 交互与会话

命令说明
openclaw tui终端 UI(连接 Gateway)
openclaw chat本地终端对话
openclaw agent --message "..."单次对话请求
openclaw message send --channel <ch> --target <id> --message "..."通过指定频道发消息

🔄 更新与维护

命令说明
openclaw update更新 OpenClaw
openclaw update status查看更新状态
openclaw backup create备份状态数据

🚀 快速参考

复制

openclaw gateway restart    # 修改配置后重启
openclaw status             # 看整体状态(最常用)
openclaw doctor --fix       # 出了问题先跑这个
openclaw logs               # 查日志排错
openclaw dashboard          # 打开 Web 控制台

任何命令加 --help 均可查看子命令和参数:openclaw gateway --help

¥ 打赏支持
微信扫一扫
微信打赏二维码
感谢您的支持!让我有持续更新的动力
© 版权声明
THE END
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容