When to use Modal
Use Modal when:- several people may run tasks at the same time
- task work should not consume CPU or memory on the Roomote host
- you want hosted sandboxes with snapshot support
- you can provide Modal credentials
Configuration
Add Modal from Settings > Sandboxes, or provide the values as deployment env vars:MODAL_REGIONS is an optional comma-separated list of Modal container placement
regions (for example us, us-west, or us,eu). When unset, Modal chooses
placement. Prefer broader tokens such as us for capacity and cold-start
behavior. Pinning a region can add a Modal pricing multiplier and only applies
to newly created or resumed sandboxes, not sandboxes that are already running.
Environments with
Docker projects automatically
use Modal’s beta VM sandbox runtime so Docker and Docker Compose can run inside
the task. Roomote starts Docker as the VM sandbox’s primary service and requests
2 CPU cores and 8 GiB of memory for these tasks. Other Modal tasks use the
standard sandbox runtime with 2 CPU cores and 4 GiB of memory.
Container builds and services share the task sandbox’s CPU and memory.
Verify setup
- save Modal credentials
- select Modal as the default sandbox provider
- start a small task from an environment
- confirm the task starts, streams logs, and can run project commands
- try resuming or following up on a task that can use a saved snapshot
Common issues
- Tasks fail immediately after launch. Check
MODAL_TOKEN_ID,MODAL_TOKEN_SECRET, and any Modal environment or endpoint overrides.