opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Official Docker Sandbox Template for `docker sandbox run opencode`

Open kamil-kielczewski opened this issue 16 hours ago • 0 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Description

Please create an official Docker sandbox template for OpenCode, similar to the existing one for Claude Code. This would enable a simple one-liner command: docker sandbox run opencode, which automatically launches OpenCode in the current project directory.

Why this feature?

  • Proven with Claude Code: docker sandbox run claude already works seamlessly. It pulls a pre-configured template image from Docker Hub/registry, mounts the current working directory as the workspace, and ensures OpenCode only modifies files within that directory while keeping the host system completely isolated and untouched.

  • ​Quick & Safe Usage: Developers can instantly use OpenCode from any project folder without manual Dockerfile creation, volume mounts, or security risks. The sandbox guarantees:

    • Exclusive file modifications in the mounted project dir

    • No access to host filesystem outside the workspace

    • Isolated network, processes, and credentials

  • Parity with competitors: Claude Code users benefit from this native Docker AI integration; OpenCode as open-source deserves equivalent ease-of-use to boost adoption.

Implementation Notes

  • Base on docker/sandbox-templates structure with OpenCode pre-installed (Go binary, auth setup, Git injection).
  • Entry point auto-detects current dir and runs opencode .
  • Publish to Docker Hub as docker/sandbox-opencode or similar.

This small addition would make OpenCode production-ready for secure, everyday use! Happy to test a POC.

kamil-kielczewski avatar Jan 17 '26 22:01 kamil-kielczewski