Windows (WSL2)
OpenClaw on Windows is recommended via WSL2 (Ubuntu recommended). The CLI + Gateway run inside Linux, which keeps the runtime consistent and makes tooling far more compatible (Node/Bun/pnpm, Linux binaries, skills). Native Windows might be trickier. WSL2 gives you the full Linux experience — one command to install:wsl --install.
Ứng dụng đồng hành native cho Windows đang được lên kế hoạch.
Cài đặt (WSL2)
- Bắt đầu (dùng bên trong WSL)
- Cài đặt & cập nhật
- Hướng dẫn WSL2 chính thức (Microsoft): https://learn.microsoft.com/windows/wsl/install
Gateway
Cài đặt dịch vụ Gateway (CLI)
Bên trong WSL2:Nâng cao: mở dịch vụ WSL ra LAN (portproxy)
WSL has its own virtual network. If another machine needs to reach a service running inside WSL (SSH, a local TTS server, or the Gateway), you must forward a Windows port to the current WSL IP. The WSL IP changes after restarts, so you may need to refresh the forwarding rule. Ví dụ (PowerShell chạy với quyền Administrator):- SSH từ máy khác nhắm tới IP của máy chủ Windows (ví dụ:
ssh user@windows-host -p 2222). - Các node từ xa phải trỏ tới một URL Gateway có thể truy cập được (không phải
127.0.0.1); dùngopenclaw status --allđể xác nhận. - Dùng
listenaddress=0.0.0.0để truy cập LAN;127.0.0.1chỉ giữ truy cập cục bộ. - Nếu muốn tự động, hãy đăng ký một Scheduled Task để chạy bước làm mới khi đăng nhập.