The Agent Client Protocol (ACP) lets an editor such as Zed or a JetBrains IDE run a coding agent in its own panel. How to connect each harness, what carries over from its terminal app, and how much of the work the editor sees and controls.
Getting connected
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Run it as an ACP agent | Run Add 1.x ( |
| Add it to Zed, JetBrains or another editor | OpenCode is in the ACP registry (id The registry entry downloads the 1.x release binary (currently v1.19.0), not the 2.x If a GUI editor cannot find |
| Signing in | OpenCode advertises one auth method,
Clients that set |
Sessions and settings
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Resume, list or fork past sessions |
Load, resume and fork must pass the session's original directory as 1.x supports list, load, resume, fork and close but not |
| Switch mode or model from the editor | Each session exposes config options 2.x has no OpenCode sends |
| Slash commands and skills | After a session is created or loaded OpenCode sends Built-in TUI commands such as |
Working with the editor
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Approving tool calls | When OpenCode's permission rules say Cancelling a prompt rejects any pending permission requests. Requests from subagent (child) sessions carry |
| Edits through the editor's buffers | Not supported 2.x reads and writes files straight to disk with its own tools and never calls 1.x ( |
| Commands in the editor's terminal | Not supported Shell commands run in OpenCode's own shell; the ACP layer never calls |
| MCP servers from the editor | Partly Editors can pass stdio and HTTP MCP servers in HTTP headers are passed through; OAuth is not used for editor-supplied servers. Editor-supplied servers are visible to other sessions in the same directory within that process. 1.x advertises and accepts SSE MCP servers as well. |
| What prompts carry and what streams back | Prompts can carry text, images, embedded resources and resource links ( OpenCode does not send Subagent activity is forwarded on the parent session with tool call ids prefixed Elicitation here is an ACP client/host contract, not proof of downstream MCP elicitation mode support or validation; see docs/research/mcp-elicitation.md. |
The other direction
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Drive other ACP agents | Not supported OpenCode is only an ACP agent; neither 2.x nor 1.x contains ACP client code to launch or drive other ACP agents. Its subagents are OpenCode's own child sessions. |
Notes and sources
OpenCode, 17 sources
- Answers describe OpenCode 2.x (
@opencode/cli). 1.x (opencode-ai) uses the sameopencode acpcommand; differences are called out per question. - The ACP registry and Zed's registry install currently ship the 1.x binary.
- Remote connectivity, provider relay, cloud handoff and execution lifetime are separately audited on 2026-10-19 in registry/remote.json. ACP answers retain the observed versions recorded here; stdio support does not imply network attachment.