microsandbox
local + cloud
cloudflare sandboxes
vm-isolated containers on workers [1]
isolation
hardware-isolated microvm · its own kernel
each sandbox container runs in its own vm [1]
where it runs
local runtime · private beta. access is by request.
cloudflare workers and containers [2]
sdk
rust · typescript · python · go · cli
typescript sandbox sdk [2]
container definition
oci image pulled at runtime
container image configured through a dockerfile [2]
session tools
commands, files, logs, metrics, and lifecycle apis
commands, persistent processes, files, ports, sessions, and terminals [2]
application state
your application owns state and sandbox identity
durable objects coordinate persistent sandbox environments [2]
credentials
credentials are destination-bound. the sandbox works with a placeholder; the real value is substituted host-side into supported intercepted outbound requests, only for destinations on your allow-list. an approved destination still receives the real credential and could reflect or misuse it, so scope your allow-lists accordingly.
environment variables, or a worker proxy that injects credentials [1]
local development
the microvm runtime runs locally
the sdk develops locally against the workers toolchain [2]