Skip to main content

Overview

The Command Line Interface (CLI) is the default mode when you run openhands. It provides a rich, interactive experience directly in your terminal.

Features

  • Real-time interaction: Type natural language tasks and receive instant feedback
  • Live status monitoring: Watch the agent’s progress as it works
  • Command palette: Press Ctrl+P to access settings, MCP status, and more

Command Palette

Press Ctrl+P to open the command palette, then select from the dropdown options:

Controls

Starting with a Task

Start a conversation with an initial task:

Confirmation Modes

Control how the agent requests approval for actions:

Resuming Conversations

Resume previous conversations:
For more details, see Resume Conversations.

Tips

Press Ctrl+P and select Settings to quickly adjust your LLM configuration without restarting the CLI.
Press Esc to pause the agent if it’s going in the wrong direction, then provide clarification.

See Also