You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configurable Opencode server/port address for attaching to Opencode server running from a container #294
I'm interested in sandboxing the Opencode server in a Docker container in order to run YOLO mode with less inherent risk. I've gotten Opencode sandboxed in a Docker container, but I'm wanting to run Neovim from the host machine for better performance (instead of within the container as well).
Right now, this plugin starts the server and connects to the Opencode instance. However, I wonder if you've considered a configuration option that would let you connect to another running instance? I think this way I could use Neovim on the host machine while sandboxing the Opencode instance.
Using the plugin as-is works inside the container, but I've seen some performance degradation and it's difficult to ensure all my other environment configurations (for a project and for Neovim) are functioning as expected within a container. I'd much rather run my native host Neovim session and connect to the sandboxed Opencode server.
There have also been some security concerns surrounding the bare Opencode server, so this proposed update could provide a valid workaround— see the article here: https://cy.md/opencode-rce/
There is also an OPENCODE_SERVER_PASSWORD variable that can be set, but I haven't yet implemented that in the PR. That'd be a nice feature to be able to use in order to avoid any arbitrary requests outside of the session.
Activity
sei-dwtompkins commentedon Feb 23, 2026
I have a PR where this feature is functional, but it needs some love.
sei-dwtompkins commentedon Feb 23, 2026
There is also an
OPENCODE_SERVER_PASSWORDvariable that can be set, but I haven't yet implemented that in the PR. That'd be a nice feature to be able to use in order to avoid any arbitrary requests outside of the session.sudo-tee commentedon Feb 23, 2026
Thanks I will have a look
sudo-tee commentedon Mar 5, 2026
This has been merged to main