GeezerVison is showing docs.roomote.dev — Sandboxes overview - Roomote Docs Sandbox providers decide where Roomote tasks actually run.
When a Roomote agent starts work, it needs more than a model response. It needs
a temporary workspace where it can clone repositories, install dependencies,
run commands, start services, open previews, and collect evidence. Roomote calls
that workspace a task sandbox.
A sandbox provider is the backend that creates and manages those sandboxes.
What sandbox providers are for
Think of a sandbox as a clean development machine for one task. It is separate
from the web app, database, queue, and model provider. The model decides what
to do; the sandbox provider gives the agent a place to do it.
Roomote uses sandbox providers to:
- start one workspace for each task
- clone the repositories from the selected environment
- run setup commands, tests, scripts, and background services
- expose preview ports when a task starts a web app or API
- stream logs back into the task view
- stop, destroy, or snapshot the workspace when the task is done
You configure sandbox providers during setup and can change them later from
Settings > Sandboxes.
Supported providers
Roomote supports local and hosted sandbox backends:
| Provider | Best for | Notes |
|---|
| Local development and trusted single-host self-hosting | Retains stopped task containers so resumable work can restart in place. | | Hosted task sandboxes with snapshot support | Uses a hosted runtime and can resume some sandboxes from snapshots. | | Hosted task sandboxes with snapshot support | Runs task sandboxes on E2B-managed infrastructure. | | Hosted task sandboxes with snapshot support | Supports environment and task-level snapshot flows. | | Hosted perpetual task sandboxes | Uses automatic standby for resumable tasks. | | Hosted task sandboxes | API-key setup, Docker projects, private previews, and same-sandbox task resume. | | Hosted task sandboxes on Azure Container Apps (preview) | Supports memory+disk snapshots and sub-second standby resume. |
Docker is the default because it works well for local development and simple
self-hosted deployments. Hosted providers are useful when you want task work to
run away from the Roomote server, scale beyond one host, or use provider-managed
sandbox infrastructure.
For resumable Docker tasks, Roomote retains the stopped container and writable
workspace so a follow-up can restart in place on the same host.
Local Docker versus hosted sandboxes
Docker keeps the system easy to reason about. The controller starts a worker
container on the same host, connects it to the local Docker network, and uses
that container as the task sandbox.
This is a good fit when:
- you are developing Roomote locally
- you run a trusted single-host deployment
- your tasks are modest enough for the host machine
- you want the fewest external provider accounts and credentials
The tradeoff is that Docker uses the same host that runs the rest of your
deployment. Heavy tasks can compete with the web app, API, database, queues, or
other local services. Docker also depends on a restricted socket proxy that
can create and manage worker containers on the host. The proxy is still
privileged infrastructure, but the controller does not receive the raw host
socket and unrelated Docker API sections remain blocked. Docker is not a
multi-host scheduler.
Hosted providers move the task sandbox into a provider-managed environment.
Roomote still controls the task, streams logs, and connects previews, but the
compute-heavy work happens outside your Roomote server.
Hosted sandboxes are a better fit when:
- several people may run tasks at the same time
- tasks need more CPU, memory, or isolation than your Roomote host should provide
- you want task sandboxes to be easier to start, stop, and recover
- you are comfortable managing provider credentials and account-level limits
The tradeoff is extra setup. Hosted providers need API credentials and network
access back to your Roomote deployment.
Choosing a default provider
The default provider is the sandbox backend Roomote uses when a task does not
explicitly choose one. New deployments can start with Docker, then add a hosted
provider when concurrency, isolation, or provider-managed infrastructure becomes
important.
A practical path is:
- Start with Docker if you are validating Roomote on one host
- Run a small task and confirm the environment can clone, install, test, and
open previews
- Add a hosted provider from Settings > Sandboxes when the first task flow
feels stable
- Set the hosted provider as the default only after its credentials and
connection are healthy
Environment setup still matters no matter which provider you choose. The
sandbox provider supplies the sandbox; the environment tells Roomote what to
put inside it.
Common issues
- A hosted provider cannot start tasks. Confirm its API credentials are
saved and the deployment URL is reachable from the provider.
- Tasks start slowly. Check provider capacity and whether the environment
setup commands are doing more work than necessary.
- Docker tasks affect the deployment host. Move heavier or concurrent work
to a hosted provider, or give the host more CPU and memory.
- A task cannot run project commands. Update the environment with missing
services, secrets, setup commands, or tool versions. The sandbox provider
only provides the machine; it does not know your repository setup by itself.
|