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 Support in OpenHands CLI
OpenHands CLI implements the Agent Client Protocol, allowing you to use OpenHands directly within your code editor. When you configure your editor to useopenhands acp, it will communicate with OpenHands through the standardized ACP interface.
OpenHands CLI currently supports the following ACP features:
✅ Implemented:
- Initialization - version negotiation and capability exchange
- Session Setup - creating new sessions and loading existing ones
- Content - including embedded content and resources
- Prompt Turns - sending prompts and receiving responses (permissions coming soon)
- Tool Calls - executing tools and returning results
- Agent Plan - sharing agent’s planned actions
- Confirmation - user authorization for tool calls
- Slash Commands - for changing confirmation mode
ACP Integration
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!

See Also
- CLI Mode - Learn about using OpenHands CLI interactively
- ACP Documentation - Full Agent Client Protocol specification
- Zed Documentation - Learn more about using Zed editor

