初始设置
通过SSH连接到你的服务器:
ssh root@<SERVER_IP>
运行入门指南并安装守护进程:
openclaw onboard --install-daemon
安全远程访问
在您的本地计算机上,建立一条通往服务器的 SSH 隧道:
ssh -L 18789:localhost:18789 root@<SERVER_IP>
然后打开浏览器,访问: http://localhost:18789
运行 openclaw dashboard 在服务器上获取正确的 URL 和令牌。
重要文件与目录
- 配置目录:
/root/.openclaw/ - 主配置文件:
/root/.openclaw/openclaw.json - 工作区目录:
/root/.openclaw/workspace/
最实用的命令
状态与健康:
openclaw status # Show channel health and recent session recipients
openclaw health # Fetch gateway health
openclaw doctor # Health checks + quick fixes
用户界面:
openclaw dashboard # Open browser-based control UI (token required)
openclaw tui # Open terminal UI connected to Gateway
日志:
openclaw logs --follow # Tail gateway logs
openclaw logs --level debug # Debug-level logs
网关/节点:
openclaw gateway restart # Restart gateway
openclaw nodes list # List paired node hosts
配置:
openclaw configure # Interactive setup wizard
openclaw config edit # Edit config manually
插件:
openclaw plugins list # List installed plugins
openclaw plugins update --all # Update all plugins
内存与会话:
openclaw memory summary # Summarize memory usage
openclaw sessions list # List stored conversation sessions
安全:
openclaw security audit # Run local config & security checks