You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement a special ACPAgent which is a Agent-Client Protocol Client? #590
In that case, we can possibly re-use Claude-Code (https://github.com/zed-industries/claude-code-acp), the Gemini CLI ACP that Zed already implemented, and launch these different agents inside our sandbox and treat them as an agent there 🤔
This should allow us to leverage the ACP ecosystem and position OpenHands as a model-agnostic agent platform (e.g., you can even use your Claude-code subscription / Codex / Gemini CLI subscription with OpenHands via ACP) — and all these agents are using OpenHands as a unified interface.
This will actually allow us to directly integrate Claude-code/Gemini CLI into OpenHands & allowing users to utilize their Claude-code/Gemini CLI subscription via OpenHands.
Challenge: How do we make microagents, etc., work there? It will be a bit tricky unless we integrate the Agent-Client Protocol more deeply into the SDK.
Approach
One thing we can potentially do would be to create an ACPAgent that inherits from AgentBase -- we input the same stuff to the agent, but internally inside the agent, we implement the "agent" as an ACP Client & have Claude-Code/Gemini being an ACP Server.
Because we manage stuff like microagents at the conversation-state-level, we can make them work by assemble inputs to these different ACP servers
It is ok that we don't yet support most of the stuff within SDK - as long as we throw errors when user tries to set them.
The PR includes comprehensive documentation of the architecture, usage, testing, and future work. This is a minimal implementation as requested in issue #590 - it provides the foundation for ACP protocol support while clearly identifying unsupported features for future enhancement.
@xingyaoww Would the OpenHands Agent play any role in 'orchestrating' one or many third-party agents (Claude, Codex, etc.)? For example, could you write an OpenHands Skill with instructions to run third-party agents?
Take me through a scenario where a user logs into OpenHands GUI on a self-hosted server. How would they 'activate' or use this feature?
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
Would the OpenHands Agent play any role in 'orchestrating' one or many third-party agents (Claude, Codex, etc.)? For example, could you write an OpenHands Skill with instructions to run third-party agents?
I totally see this possibility - this can be done today already.
How would they 'activate' or use this feature?
This is the tricky part, as they need to log into the CLI via OAuth. One possible thing to do is that we build this into product, and have them login once, persist the credentials under ~ folder and mount the secret as read-only to each runtime container
Activity
xingyaoww commentedon Nov 10, 2025
@OpenHands please review this proposal and come up with a minimal example of getting ACPAgent to work within the software agent sdk
openhands-ai commentedon Nov 10, 2025
I'm on it! xingyaoww can track my progress at all-hands.dev
Add minimal ACPAgent implementation for Agent-Client Protocol support
openhands-ai commentedon Nov 10, 2025
Summary
I've successfully implemented a minimal ACPAgent for the OpenHands SDK to support the Agent-Client Protocol (ACP). Here's what was created:
✅ Implementation Complete
New Files:
openhands-sdk/openhands/sdk/agent/acp_agent.py(332 lines)AgentBasefor SDK integrationNotImplementedErrorfor unsupported ones (tools, MCP, microagents, security analyzers, condensers)tests/sdk/agent/test_acp_agent.py(90 lines)examples/01_standalone_sdk/27_acp_agent_example.py(76 lines)Modified Files:
openhands-sdk/openhands/sdk/agent/__init__.py: ExportedACPAgent🎯 Key Features
✅ Testing & Quality
📦 Pull Request
PR created: #1122 (draft)
The PR includes comprehensive documentation of the architecture, usage, testing, and future work. This is a minimal implementation as requested in issue #590 - it provides the foundation for ACP protocol support while clearly identifying unsupported features for future enhancement.
View full conversation
jpelletier1 commentedon Nov 18, 2025
@xingyaoww Would the OpenHands Agent play any role in 'orchestrating' one or many third-party agents (Claude, Codex, etc.)? For example, could you write an OpenHands Skill with instructions to run third-party agents?
Take me through a scenario where a user logs into OpenHands GUI on a self-hosted server. How would they 'activate' or use this feature?
all-hands-bot commentedon Dec 31, 2025
This issue is stale because it has been open for 40 days with no activity. Remove the stale label or leave a comment, otherwise it will be closed in 10 days.
xingyaoww commentedon Jan 12, 2026
I totally see this possibility - this can be done today already.
This is the tricky part, as they need to log into the CLI via OAuth. One possible thing to do is that we build this into product, and have them login once, persist the credentials under
~folder and mount the secret as read-only to each runtime containerfeat: Add ACPAgent for Agent Client Protocol integration
feat: Add ACPAgent for Agent Client Protocol integration