Skip to main content

SmolVM

SmolVM gives AI agents their own disposable computer. Each boots in milliseconds, runs any code or software you throw at it, persists files and state across sessions, and disappears when you’re done — built for scale in production.

Sub-second boot

VMs ready in ~413 ms.

Hardware isolation

Stronger security than containers.

Network controls

Domain allowlists for network access control.

Browser sandbox

Full browser agents can see and control.

Host mounts

Give sandboxes access to local directories.

Snapshots

Save and restore VM state instantly.
Building with agent sandboxes? Get SmolVM release notes, implementation patterns, and early-access updates.Join the SmolVM interest list

Quickstart

1

Install SmolVM

This installs everything you need and configures your machine. See Installation for manual install and requirements.
2

Run your first sandbox

Create quickstart.py:
quickstart.py
Run it:
You should see:

CLI usage

Create and manage sandboxes from the terminal:
Run coding agents in an isolated sandbox:
Mount host directories for read-only access:
Save and restore VM state with snapshots:
Start a visible browser sandbox:
See the CLI reference for the full command list.

Python SDK

Create and manage sandboxes from Python:
Customize memory and disk for heavier workloads:
Mount host directories:
Expose a port from the sandbox to your host:
See the API reference for the full SDK documentation.
Evaluating secure code execution, browser agents, or long-running agent environments? Tell us what you’re building and we’ll send the useful SmolVM updates — or follow up personally if you’re evaluating now.

Next steps

AI agent integration

Plug SmolVM into PydanticAI, OpenAI Agents, LangChain, and more

Port forwarding

Expose services running inside a sandbox to your host machine

Custom images

Build specialized images with your own tools pre-installed

API reference

Explore the complete SmolVM API
Last modified on June 29, 2026