Skip to content

Reference

The reference of every public name of fastsandbox, rendered from the docstrings and the annotations of the package. Names are given as they are imported: fastsandbox.Sandbox, not the module that defines it. The payloads are in fastsandbox.models, the errors in fastsandbox.exceptions, the fake daemon in fastsandbox.testing, and the capabilities of a mixin in fastsandbox.kits.

Page Holds
Client connect(), Client, Creation, ProxiedKey, the socket and the API version
Sandboxes Sandboxes, the collection, and Sandbox, the handle of one sandbox
Sessions and streams Session, Interactive, Stream, SshTunnel
Daemon services Daemon, Images, Policy, Mcp, Events, Prompts
Sandbox specs SandboxSpec, KeySpec, Keys, Launch, Lease
Kits Kit, KitRef, KitPackage, KitAgent, KitForge, KitCompiler, KitCache; mixins written in Python: Mixin, KitDescriptor, LifecycleStep, and the capabilities of fastsandbox.kits, LifecycleCapability, LifecycleConfig, NetworkCapability, NetworkConfig, NetworkRules; the MCP servers of an agent, McpServer
FastSandbox FastSandbox, run(), Task, Context, unique_name()
Agents Agent, AgentKey, Headless, AgentRunner, AgentRun
Parameters Depends, WorkspaceDir, Mounted, Uploaded, Network and its HttpRule
Models the Pydantic models of the daemon API
Exceptions SandboxError and the errors derived from it; a misuse of the API raises a built-in exception instead, RuntimeError for a handle used once closed, ValueError or IndexError for an invalid argument (see Outside the hierarchy)
Types Command, VersionPolicy, Lifespan, ProgressHandler
Testing FakeDaemon, its Request and Response, PublishedKit, fake_package()