Skip to content

[FEATURE]: ACP over WebSocket for remote/network access #13388

Description

@doxycomp

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions