Skip to content

feat: ACP over WebSocket at /acp and opencode acp-websocket command - #13385

Closed
doxycomp wants to merge 6 commits into
anomalyco:devfrom
doxycomp:feature/acp-websocket
Closed

doxycomp wants to merge 6 commits into
anomalyco:devfrom
doxycomp:feature/acp-websocket

Conversation

@doxycomp

@doxycomp doxycomp commented Feb 12, 2026 •

Copy link
Copy Markdown

Closes #13388
Exposes the Agent Client Protocol (ACP) over WebSocket so it can be used from other hosts on the network.

  • Endpoint: GET /acp (WebSocket upgrade). Uses the directory OpenCode was started from; override via ?directory=... or x-opencode-directory header.
  • CLI: opencode acp-websocket starts the server with the same options as serve and prints the ACP WebSocket URL.
  • Route: New AcpRoutes in packages/opencode/src/server/routes/acp.ts, mounted at /acp on the existing server (port 4096).
  • Test: bun run script/test-acp-websocket.ts for manual verification.

Protocol is unchanged (JSON-RPC 2.0, newline-delimited); only the transport is WebSocket instead of stdio.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@doxycomp

Copy link
Copy Markdown
Author

merged with branch and added untracked filed

@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@jhgoebbert

Copy link
Copy Markdown

There is an open v2-Draft on Streamable HTTP & WebSocket Transport for ACP. I added more infos on this here:
#13388 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants