Prerequisites
Before using OpenHands CLI with ACP, you must first install and configure the CLI:- Install OpenHands CLI by following the CLI Mode installation instructions
- Configure your LLM settings using the
/settingscommand
What is the Agent Client Protocol (ACP)?
The Agent Client Protocol (ACP) is a standardized communication protocol that enables code editors and IDEs to interact with AI agents. ACP defines how clients (like code editors) and agents (like OpenHands) communicate through a JSON-RPC 2.0 interface. For more details about the protocol, see the ACP documentation.ACP Integration
Toad
Toad is a universal terminal interface for AI agents, created by Will McGugan, the creator of the popular Python libraries Rich and Textual. The name comes from “textual code”—combining the Textual framework with coding assistance. Toad provides a modern terminal user experience that addresses several limitations common to existing terminal-based AI tools:- No flickering or visual artifacts - Toad can update partial regions of the screen without redrawing everything
- Scrollback that works - You can scroll back through your conversation history and interact with previous outputs
- A unified experience - Instead of learning different interfaces for different AI agents, Toad provides a consistent experience across all supported agents through ACP
Installation
Install Toad using uv:Using OpenHands with Toad
- Open Toad’s agent store
- Find OpenHands in the list of recommended agents
- Click “Install” to set up OpenHands via
uv tool install openhands --python 3.12 && openhands login - Select OpenHands and start a conversation
Passing Command Line Arguments
You can launch Toad with specific OpenHands command line arguments by passing the full command:--llm-approve for automatic LLM approval mode.
Zed IDE
Zed is a high-performance code editor with built-in support for the Agent Client Protocol. To configure OpenHands CLI with Zed:- Ensure OpenHands CLI is installed and configured (see Prerequisites)
-
Open your Zed editor, use
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) to open the command palette, and search foragent: open settings

- Then on the right side, click on
+ Add Agentand selectAdd Custom Agent

- Add the following to the
"agent_servers"field:
- Save the file
- You can now use OpenHands within Zed!

Troubleshooting
If you encounter issues while using OpenHands in Zed with the ACP plugin, you can access detailed debug logs:- Open the command palette with
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type and select
acp debug logto view detailed debug information - Review the logs for any errors or warnings
- Restart a new conversation to reload connections after making configuration changes
If you encounter persistent issues, verify that OpenHands CLI is properly configured (see Prerequisites) and that all server commands are executable from your system PATH.
VS Code
VS Code does not have native ACP support, but a community extension is available. This extension is maintained by Omer Cohen and is not officially supported by OpenHands or Microsoft.
- Ensure OpenHands CLI is installed and configured (see Prerequisites)
-
Open VS Code and go to Extensions (
Cmd+Shift+Xon Mac orCtrl+Shift+Xon Windows/Linux) -
Search for “VSCode ACP” and click
Install - Click the VSCode ACP icon in the Activity Bar (left sidebar)
-
Click
Connectto start a session - Select OpenHands from the agent dropdown
- Start chatting with OpenHands!
JetBrains IDEs
JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.) support the Agent Client Protocol through JetBrains AI Assistant. To configure OpenHands CLI with JetBrains IDEs:- Ensure OpenHands CLI is installed and configured (see Prerequisites)
-
Find the full path to the
openhandsexecutable by running in your terminal:
- Create or edit the file
$HOME/.jetbrains/acp.jsonand add the following configuration, replacing{full_path_to_openhands}with the actual full path from step 2:
which openhands returns /Users/username/.local/bin/openhands, your configuration should look like:
- Follow the JetBrains ACP instructions to open and use an agent in your JetBrains IDE
Make sure you have JetBrains AI Assistant enabled in your IDE. The AI Assistant is available in JetBrains IDEs version 2024.3 or later.
Resuming Conversations
You can resume previous conversations when using OpenHands in ACP mode. This is useful when you want to continue working on a task from a previous session.Finding Your Conversation ID
Since ACP mode doesn’t display an interactive conversation list, you need to first find your conversation ID using the standard CLI:Resuming in ACP Mode
Once you have the conversation ID, you can resume it in ACP mode:Resuming the Latest Conversation
To resume your most recent conversation without looking up the ID:The
--resume flag without a conversation ID will display the conversation list and exit. This is useful for finding conversation IDs, but won’t start the ACP server. Always provide a conversation ID or use --last when starting ACP mode.See Also
- CLI Mode - Learn about using OpenHands CLI interactively
- CLI Resume - Detailed guide on resuming conversations
- ACP Documentation - Full Agent Client Protocol specification
- Toad Documentation - Learn more about using Toad terminal interface
- Zed Documentation - Learn more about using Zed editor
- VSCode ACP Extension - Community extension for VS Code ACP support
- JetBrains ACP Documentation - Learn more about using ACP in JetBrains IDEs

