文档
English Docs
ACP Support

ACP Support

OpenCode supports the Agent Client Protocol (ACP) for agent communication.

Starting ACP Server

opencode acp

Communication occurs via stdin/stdout using nd-JSON format.

Flags

FlagPurpose
--cwdWorking directory
--portServer port
--hostnameServer hostname

Protocol

ACP enables standardized communication between agents and clients.