[PR #9668] feat: support unix domain socket #13181

Open
opened 2026-02-16 18:18:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9668

State: open
Merged: No


Unix domain socket support is particularly useful in sandboxed environments where we may not want to expose ports.

  • adds --unix option to server
  • adds support to pass socket file path to opencode attach on the client

Example:

Server:

$ ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode serve --unix /tmp/opencode.sock

Client:

$ ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode attach unix:///tmp/opencode.sock

Monitor usage:

$ watch lsof /tmp/opencode.sock

Closes: https://github.com/anomalyco/opencode/issues/2119
Similar PR: https://github.com/anomalyco/opencode/pull/2120

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9668 **State:** open **Merged:** No --- Unix domain socket support is particularly useful in sandboxed environments where we may not want to expose ports. * adds `--unix` option to server * adds support to pass socket file path to `opencode attach` on the client Example: Server: ``` $ ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode serve --unix /tmp/opencode.sock ``` Client: ```sh $ ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode attach unix:///tmp/opencode.sock ``` Monitor usage: ```sh $ watch lsof /tmp/opencode.sock ``` Closes: https://github.com/anomalyco/opencode/issues/2119 Similar PR: https://github.com/anomalyco/opencode/pull/2120
yindo added the pull-request label 2026-02-16 18:18:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13181