The Docker sandbox runs the agent server inside a Docker container. This is the default and recommended option for most users.Documentation Index
Fetch the complete documentation index at: https://docs.openhands.dev/llms.txt
Use this file to discover all available pages before exploring further.
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.
