These settings are only available in Local GUI. OpenHands Cloud uses managed sandbox environments.
Choosing a Runtime
| Runtime | Sandbox Type | Best For |
|---|---|---|
| Docker Runtime | Docker container | Most users (default, recommended) |
| Remote Runtime | Cloud sandbox | Parallel workloads, managed infrastructure |
| Local Runtime | No sandbox | CI/CD pipelines, development, controlled environments |
| Apptainer Runtime | Apptainer container | HPC environments, no root required |
Run in a Docker Sandbox (Default)
The Docker Runtime creates isolated Docker containers for the agent to execute commands. This is the recommended option for most users as it provides strong isolation while keeping everything local.The Docker Runtime requires mounting the Docker socket (
/var/run/docker.sock) so OpenHands can create sandbox containers.
This gives OpenHands access to the Docker daemon. If you prefer not to expose the Docker daemon, consider the
Remote Runtime for cloud-based sandboxing, the Apptainer Runtime for
daemon-free sandboxing, or the Local Runtime for no sandboxing.Run on the Cloud
The Remote Runtime connects to cloud-based sandbox environments. This is ideal for parallel execution, managed infrastructure, or when you don’t want to run sandboxes locally. Using the SDK with OpenHands Cloud:Run Without Sandboxing
The Local Runtime runs the agent directly on your machine (or inside the OpenHands container) without any sandbox isolation. This is useful for CI/CD pipelines, development workflows, or environments where container-based sandboxing is not available. Starting the agent server locally:Run in an Apptainer Sandbox
Apptainer (formerly Singularity) is a container runtime designed for HPC environments that can run without root privileges and without exposing a daemon socket. The OpenHands SDK provides anApptainerWorkspace for sandboxed execution without requiring Docker.
Key benefits of Apptainer:
- No root required: Runs as the invoking user without privilege escalation
- No daemon: Doesn’t require a background daemon like Docker
- HPC-friendly: Designed for shared computing environments
- Secure: Better security model for multi-tenant systems
Apptainer must be installed on your system. See the Apptainer installation guide
for instructions.
Available Runtimes
- Docker Runtime - Run in a Docker sandbox (recommended for most users).
- Remote Runtime - Run on the cloud with managed sandboxes (beta).
- Local Runtime - Run without sandboxing, directly on your machine.
Third-Party Runtimes
The following third-party runtimes are available when you install thethird_party_runtimes extra:
- E2B Runtime - Open source runtime using E2B sandboxes.
- Modal Runtime - Serverless runtime using Modal infrastructure.
- Runloop Runtime - Cloud runtime using Runloop infrastructure.
- Daytona Runtime - Development environment runtime using Daytona.

