In some self-hosted deployments, the sandbox provider is controlled via the
legacy
RUNTIME environment variable. Docker is the default.Why Docker?
- Isolation: reduces risk when the agent runs commands.
- Reproducibility: consistent environment across machines.
Mounting your code into the sandbox
If you want OpenHands to work directly on a local repository, mount it into the sandbox.Recommended: CLI launcher
If you start OpenHands via:Using SANDBOX_VOLUMES
You can also configure mounts via theSANDBOX_VOLUMES environment
variable (format: host_path:container_path[:mode]):
Anything mounted read-write into
/workspace can be modified by the
agent.
