Skip to main content
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

--host
string
default:"127.0.0.1"
Address to bind.
--port
integer
default:"8000"
Port to bind. Must be between 1 and 65535.

Start the server

The command prints the API URL and OpenAPI spec URL:

Available endpoints

Try it with curl

These examples use jq to read the sandbox ID from the JSON response.
Create a sandbox and save the generated ID:
Run a command in that sandbox:
Last modified on June 24, 2026