Skip to main content
By the end of this guide you’ll have an isolated Linux sandbox running on your machine, ready to execute commands safely.
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:
The first run takes 30-60 seconds to download the operating system images.

Prefer the command line?

You can do the same thing without writing any Python:

Customize resources

Configure memory and disk for heavier workloads (defaults: 512 MiB memory, 512 MiB disk):

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
Join the Discord community to get help and share your use cases.
Last modified on June 30, 2026