Key Info
OpenCode can be launched as a server inside a Docker container, and clients such as the TUI and desktop app can connect to that remote instance.
Highlights
- Run the server with
docker run -p 4096:4096 ... serve --hostname 0.0.0.0 --port 4096 - Exposes the server on port 4096 for external connections
- Supports connecting from the TUI, desktop, and other clients
- Enables a self-hosted, containerized OpenCode setup