ComputerSandbox, AsyncComputerSandbox, DaemonClient, and AsyncDaemonClient expose the same typed namespace layout. Use the listed method without await on a sync client. Use await on an async client.
Desktop input and capture
Desktop state
commands.run() does not invoke a shell unless you request one in the command vector.
Ordered actions
Use
actions.run() when order matters. The whole-batch deadline stops the batch even when continue_on_error=True.
Artifacts and recordings
Artifact paths reject traversal and symlink escapes.
artifacts.sync() reports whether configured persistence completed.
Runtime and diagnostics
Treat debug URLs as secrets. For Modal-created Sandboxes, prefer
ComputerSandbox.debug_urls() when you need Modal-owned noVNC information.
Return values and failures
Namespace methods return typed models such asActionResult, Screenshot, Recording, ArtifactInfo, ProcessStatus, and SandboxRef.
See errors and models for the stable top-level types. See OpenAPI for the matching HTTP routes.
