This directory contains an OpenShell-compatible Containerfile for running OpenCode inside an OpenShell sandbox.
- Podman or Docker installed
- OpenShell CLI installed
- An OpenShell gateway running
podman build --platform linux/amd64 -t opencode-sandbox:latest -f Containerfile.openshell .
openshell sandbox create --from opencode-sandbox:latestBuilds on the shared base image (quay.io/hmoghani/openshell-base) which provides the sandbox user, system packages, and OpenShell entrypoint. This flavor adds:
- Node.js and npm (from UBI repos)
- OpenCode via npm (version pinned, MIT)
For deploying OpenCode on Red Hat OpenShift AI with OAuth, kustomize manifests, and production configuration, see DEPLOYMENT.md.
- OpenShell's supervisor takes over as PID 1 and does not automatically run OpenCode. Start it manually inside the sandbox.
- Build with
--platform linux/amd64when targeting x86_64 clusters from Apple Silicon machines. - Tested on OpenShell v0.0.58, OpenShift 4.21 (June 2026). OpenCode version 1.17.1.