Windows Users: The OpenHands CLI requires WSL (Windows Subsystem for Linux). Native Windows is not officially supported. Please install WSL and run all CLI commands inside your WSL terminal. See Installation for details.
Overview
The OpenHands CLI provides multiple ways to interact with the OpenHands AI agent:| Mode | Command | Best For |
|---|---|---|
| Terminal (CLI) | openhands | Interactive development |
| Headless | openhands --headless | Scripts & automation |
| Web Interface | openhands web | Browser-based terminal UI |
| GUI Server | openhands serve | Full web GUI |
| IDE Integration | openhands acp | Zed, VS Code, JetBrains |
Your First Conversation
Set up your account (first time only):- OpenHands Cloud (recommended)
- Configure manually
-
Start the CLI:
-
Enter a task:
- Watch OpenHands work: The agent will create the file and show you the results.
Controls
Once inside the CLI, use these controls:| Control | Description |
|---|---|
Ctrl+P | Open command palette (access Settings, MCP status) |
Esc | Pause the running agent |
Ctrl+Q or /exit | Exit the CLI |

