Feature hasn't been suggested before.
Describe the enhancement you want to request
Summary
Expose the Agent Client Protocol (ACP) over WebSocket so editors and clients can use OpenCode from another host on the network (e.g. remote dev machine, browser), not only via stdio.
Proposed solution
- Add a WebSocket endpoint at
/acp on the existing OpenCode server (same port as REST API, e.g. 4096).
- Use the server’s startup directory as context; allow override via query/header.
- Add CLI command
opencode acp-websocket to start the server and advertise the ACP WebSocket URL.
Protocol stays JSON-RPC 2.0 newline-delimited; only the transport changes from stdio to WebSocket.
Feature hasn't been suggested before.
Describe the enhancement you want to request
Summary
Expose the Agent Client Protocol (ACP) over WebSocket so editors and clients can use OpenCode from another host on the network (e.g. remote dev machine, browser), not only via stdio.
Proposed solution
/acpon the existing OpenCode server (same port as REST API, e.g. 4096).opencode acp-websocketto start the server and advertise the ACP WebSocket URL.Protocol stays JSON-RPC 2.0 newline-delimited; only the transport changes from stdio to WebSocket.