Initial Setup
通过 SSH 连接到服务器:
ssh root@<SERVER_IP>
运行引导程序并安装守护进程:
openclaw onboard --install-daemon
安全远程访问
在本地机器上,创建到服务器的 SSH 隧道:
ssh -L 18789:localhost:18789 root@<SERVER_IP>
然后打开浏览器并访问: http://localhost:18789
Run openclaw dashboard 在服务器上运行以获取正确的 URL 和令牌。
重要文件与目录
- Configuration directory:
/root/.openclaw/ - 主配置文件:
/root/.openclaw/openclaw.json - Workspace directory:
/root/.openclaw/workspace/
常用命令
Status & Health:
openclaw status # Show channel health and recent session recipients
openclaw health # Fetch gateway health
openclaw doctor # Health checks + quick fixes
User Interfaces:
openclaw dashboard # Open browser-based control UI (token required)
openclaw tui # Open terminal UI connected to Gateway
Logs:
openclaw logs --follow # Tail gateway logs
openclaw logs --level debug # Debug-level logs
Gateway / Node:
openclaw gateway restart # Restart gateway
openclaw nodes list # List paired node hosts
Configuration:
openclaw configure # Interactive setup wizard
openclaw config edit # Edit config manually
Plugins:
openclaw plugins list # List installed plugins
openclaw plugins update --all # Update all plugins
Memory & Sessions:
openclaw memory summary # Summarize memory usage
openclaw sessions list # List stored conversation sessions
Security:
openclaw security audit # Run local config & security checks