Skip to main content
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):
  1. Start the CLI:
  2. Enter a task:
  3. 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:
For more details, see Resume Conversations.

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