A sandbox is the environment where OpenHands runs commands, edits files, and starts servers while working on your task. In OpenHands V1, we use the term sandbox (not “runtime”) for this concept.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.
Sandbox providers
OpenHands supports multiple sandbox “providers”, with different tradeoffs:-
Docker sandbox (recommended)
- Runs the agent server inside a Docker container.
- Good isolation from your host machine.
-
Process sandbox (unsafe, but fast)
- Runs the agent server as a regular process on your machine.
- No container isolation.
-
Remote sandbox
- Runs the agent server in a remote environment.
- Used by managed deployments and some hosted setups.
Selecting a provider (current behavior)
In some deployments, the provider selection is still controlled via the legacyRUNTIME environment variable:
RUNTIME=docker(default)RUNTIME=process(aka legacyRUNTIME=local)-
RUNTIME=remote
The user-facing terminology in V1 is sandbox, but the configuration knob
may still be called
RUNTIME while the migration is in progress.
