Skip to content

Glossary

The terms of this documentation, each with the page that explains it and the name of the API that holds it. The documentation uses them in this sense everywhere.

The product

Docker Sandboxes
The product of Docker, Inc. that runs code and coding agents in throw-away microVMs. fastsandbox is a client of it, not a part of it. Docker documentation
sbx
The command line of Docker Sandboxes. fastsandbox does not need it, except to compile a kit only it resolves.
sandboxd, the daemon
The daemon of Docker Sandboxes, which runs for one user and serves a private API on a Unix socket. fastsandbox talks to it, and to nothing else. The daemon
fastsandbox, FastSandbox
fastsandbox is the package and the project; FastSandbox is its task framework, and the class of an application (FastSandbox).

Sandboxes

Sandbox
One isolated machine of Docker Sandboxes, a microVM created from a kit, with its own files, and network rules and keys scoped to it (Sandbox). Sandbox lifecycle
Session
A hold on a sandbox that keeps it running. The daemon stops a sandbox some time after its last session ends. Sessions
Workspace
The host directory a sandbox works in, mounted read-write at its own path, or replaced by a private Git clone of it. Host paths
Mount, upload, clone
The three ways a host directory reaches a sandbox: shared with it, copied into it, or cloned into it. Host paths
Template
An image saved from a sandbox, to create others from it. Templates

Environments

Kit
What a sandbox is created from: a base kit, such as shell or the kit of an agent, and the mixins composed on it (Kit). Kits and sandbox specs
Mixin
A layer added to a base kit: files, install commands, variables, allowed hosts, MCP servers (Mixin).
Kit package
What the sbx command line would send the daemon for a kit, made ahead of the creation: the creation request and its images (KitPackage).
Forge, compile
The two ways to make a kit package: forged by fastsandbox through the socket (KitForge), or compiled by the sbx command line, when asked.
Kit cache
Where the packages are kept for the next sandboxes of the same kit, in memory or in a directory (KitCache).
Sandbox spec
A whole sandbox described as data: kit, mounts, network rules, keys, MCP servers, variables and resources (SandboxSpec).
Launch, lease, report
Launching a spec creates and prepares its sandbox; the Lease owns the sandbox until it is shut down, and its Report says what the launch did.

Network and credentials

Network policy
The rules the daemon applies to the traffic of sandboxes: global rules, for every sandbox, and rules of one sandbox. Network model
Host rule, HTTP rule
A host rule allows or denies a host; an HTTP rule allows or denies methods and paths on a host. Network model
Proxy
The proxy of Docker Sandboxes, through which a sandbox reaches the network: it applies the policy and writes credentials into requests.
Proxied key
An API key the proxy of one sandbox writes into the requests to its hosts, in place of the placeholder the sandbox holds (ProxiedKey). Credentials
Placeholder
The value a sandbox sees in place of a proxied key.
Custom secret
A secret pushed to the proxy of a sandbox for a host it names (CustomSecret).

Tasks and agents

Application
A FastSandbox object, which holds tasks, a client, a kit cache and a lifespan. FastSandbox
Task
A function declared with @app.task, run in a fresh sandbox at each call, its inputs and result validated from its signature (Task). Tasks
Run
One call of a task: its sandbox launched, the function called on the host, the sandbox removed.
Context
What a run injects into its function: the sandbox, the lease, the client, the task and a logger (Context).
Dependency
A value a run computes for its function, declared with Depends. Dependencies
Lifespan
What runs around an application, and the state it shares with its runs. Lifespan and state
Coding agent
A program such as Claude Code or Codex that edits code and runs commands on its own. Docker Sandboxes runs each one from the kit of its name.
Agent task
A task declared with @app.agent, whose sandbox runs a coding agent. Agents
Agent profile
What fastsandbox knows of an agent: its kit, the keys it takes, how it runs one prompt without a terminal (Agent).
Runner
The object a task drives its agent with, ctx.agent (AgentRunner).
MCP server, MCP gateway
An MCP server gives an agent tools; the MCP gateway of Docker Sandboxes serves MCP servers to the sandboxes. MCP
Fake daemon
A stand-in for sandboxd that serves the socket API in memory, for tests (FakeDaemon). Testing