Thiết lập ban đầu
SSH vào máy chủ của bạn:
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 cục bộ của bạn, tạo đường hầm SSH đến máy chủ:
ssh -L 18789:localhost:18789 root@<SERVER_IP>
Sau đó mở trình duyệt của bạn và truy cập: http://localhost:18789
Chạy openclaw dashboard trên máy chủ để nhận URL và mã thông báo chính xác.
File và thư mục quan trọng
- Thư mục cấu hình:
/root/.openclaw/ - Tập tin 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 hữu ích nhất
Tình trạng & 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
Plugin:
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 vệ:
openclaw security audit # Run local config & security checks