Thiết lập ban đầu
Kết nối SSH vào máy chủ:
ssh root@<SERVER_IP>
Chạy onboarding và cài đặt daemon:
openclaw onboard --install-daemon
Truy cập từ xa an toàn
Từ máy local, tạo tunnel SSH đến máy chủ:
ssh -L 18789:localhost:18789 root@<SERVER_IP>
Sau đó mở trình duyệt và truy cập: http://localhost:18789
Chạy openclaw dashboard trên máy chủ để lấy URL và token chính xác.
Các file và thư mục quan trọng
- Thư mục cấu hình:
/root/.openclaw/ - Tệp cấu hình chính:
/root/.openclaw/openclaw.json - Thư mục không gian làm việc:
/root/.openclaw/workspace/
Các lệnh thường dùng
Trạng thái & Sức khỏe:
openclaw status # Show channel health and recent session recipients
openclaw health # Fetch gateway health
openclaw doctor # Health checks + quick fixes
Giao diện người dùng
openclaw dashboard # Open browser-based control UI (token required)
openclaw tui # Open terminal UI connected to Gateway
Nhật ký:
openclaw logs --follow # Tail gateway logs
openclaw logs --level debug # Debug-level logs
Cổng / Nút:
openclaw gateway restart # Restart gateway
openclaw nodes list # List paired node hosts
Cấu hình:
openclaw configure # Interactive setup wizard
openclaw config edit # Edit config manually
Tiện ích:
openclaw plugins list # List installed plugins
openclaw plugins update --all # Update all plugins
Bộ nhớ & Phiên:
openclaw memory summary # Summarize memory usage
openclaw sessions list # List stored conversation sessions
Bảo mật:
openclaw security audit # Run local config & security checks