Windows(WSL2)
OpenClaw on Windows is recommended via WSL2 (Ubuntu recommended). 在 Windows 上執行 OpenClaw 建議透過 WSL2(建議使用 Ubuntu)。該 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.
已規劃原生 Windows 夥伴應用程式。
安裝(WSL2)
- 入門指南(請在 WSL 內使用)
- 安裝與更新
- 官方 WSL2 指南(Microsoft):https://learn.microsoft.com/windows/wsl/install
Gateway
Gateway 服務安裝(CLI)
在 WSL2 內:進階:透過 LAN 公開 WSL 服務(portproxy)
WSL 有其自己的虛擬網路。 如果另一台機器需要存取 在 WSL 內部 執行的服務(SSH、本機 TTS 伺服器或 Gateway),你必須將 Windows 連接埠轉送到目前的 WSL IP。 WSL 有其自己的虛擬網路。 如果另一台機器需要存取 在 WSL 內部 執行的服務(SSH、本機 TTS 伺服器或 Gateway),你必須將 Windows 連接埠轉送到目前的 WSL IP。 The WSL IP changes after restarts, so you may need to refresh the forwarding rule. 範例(PowerShell 以系統管理員身分):- 從另一台機器進行 SSH 時,目標為 Windows 主機 IP(例如:
ssh user@windows-host -p 2222)。 - 遠端節點必須指向可到達的 Gateway 閘道器 URL(不是
127.0.0.1);請使用openclaw status --all進行確認。 - 使用
listenaddress=0.0.0.0以供 LAN 存取;127.0.0.1則僅限本機。 - 如果您希望自動執行,請註冊一個排程工作以在登入時執行重新整理 步驟。