All the common abstractions you'd build on Containers, ready to use directly and extend
Shell execution, streaming output, background services
await sandbox.exec('npm install')
Also: execStream(), startProcess(), killProcess()
Full filesystem API with binary support
await sandbox.writeFile('/config.json', data)
Also: readFile(), listFiles(), mkdir()
Run services inside, access from outside via preview URLs
const res = await sandbox.exposePort(3000)const url = res.url
Also: proxyToSandbox(), wsConnect()
Python, JS, TS with rich outputs — charts, tables, images
await sandbox.runCode('print(df.head())')
Also: runCodeStream()
Mount buckets as local filesystem, persists across lifecycles
await sandbox.mountBucket('r2-data', '/mnt')
Also: R2, S3, GCS compatible
Full pseudo terminal support for interactive shells
const pty = await sandbox.pty({ cols: 80, rows: 24 })
Also: HTTP-based SDKs, Tools for agents