smolvm server start runs a local HTTP API that can create sandboxes, list them, delete them, and run commands inside them. Use it when another process needs to control SmolVM without importing the Python SDK.
Install dependencies
The server uses the same web dependencies as the dashboard:Synopsis
Options
Address to bind.
Port to bind. Must be between
1 and 65535.Start the server
Available endpoints
| Method | Path | What it does |
|---|---|---|
POST | /sandboxes | Create and start a sandbox |
GET | /sandboxes | List sandboxes on the host |
GET | /sandboxes/{id} | Get one sandbox’s state |
POST | /sandboxes/{id}/exec | Run a command inside a sandbox |
DELETE | /sandboxes/{id} | Delete a sandbox |
Try it with curl
These examples usejq to read the sandbox ID from the JSON response.
Related
- HTTP API and TypeScript SDK - Build against the API
smolvm ui- Start the dashboardsmolvm sandbox create- Create sandboxes from the CLI
