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: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:Starting with a Task
You can start the CLI with an initial task:Resuming Conversations
Resume a previous conversation:Next Steps
Terminal Mode
Learn about the interactive terminal interface
IDE Integration
Use OpenHands in Zed, VS Code, or JetBrains
Headless Mode
Automate tasks with scripting
MCP Servers
Add tools via Model Context Protocol

