Warning: Undefined global variable $index in /www/wwwroot/nonni.cn/usr/themes/materiality/functions.php on line 55

可以在 OpenWRT 下运行的 OpenClaw
之前看到有人分享项目 luci-app-openclaw,尝试安装后,配置运行环境不停的报错,好不容易解决了,升级时又全部瘫痪了,所以只好另寻道路,使用 docker 来运行,由于系统不支持 systemd,导致 openclaw gateway install 失败,参考了网上很多人的方案,费了很多时间才搞定。
准备 Prepare
须路由器安装有 DockerMan。
快速开始 Quick Start
运行命令在映射的目录中生成配置文件 This step will generate the configuration file to the mapped directory:
docker run --rm -it --name openclaw-config -v /mnt/app/openclaw:/root nonnichen/wrtopenclaw openclaw onboard --install-daemon
启动服务 Run the following command to start the service:
docker run -d --name openclaw -p 18789:18789 -v /mnt/app/openclaw:/root --restart always nonnichen/wrtopenclaw
默认管理界面 Default Management Interface:
http://router ip:18789/#token=token
配置文档 The Configuration File
/root/.openclaw/openclaw.json
修改默认登录 token 以及其他配置