🦞 让 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 health | Gateway 健康详情 |
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
¥ 打赏支持
微信扫一扫
感谢您的支持!让我有持续更新的动力
暂无评论内容