Run
Self-hosting
One static binary and a systemd unit. No database, no control plane, no account.
Requirements
- Linux on x86_64 or arm64 with
/dev/kvm. Bare metal is fastest; cloud VMs need nested virtualization. - Root, to manage network namespaces, taps and the reflink store.
- Disk for templates. Sandbox disks are copy-on-write, so each one costs only what it writes.
Install
curl -fsSL https://tryjasmine.dev/install | sudo sh sudo jasmined build default python:3.12-slim sudo systemctl enable --now jasmined curl -fsS http://127.0.0.1:7171/healthz # ok
The installer downloads the release for your architecture, checks its SHA-256 checksum, and installs Firecracker, the guest kernel, the agent and the unit file.
Auth and exposure
The API listens on localhost only. To use it from other machines, set a key and put it behind TLS:
JASMINE_API_KEY=jsm_your_key_from_the_dashboard JASMINE_LISTEN=0.0.0.0:7171
Then sudo systemctl restart jasmined. Use a reverse proxy (Caddy, nginx), a tunnel or a private network for TLS. Never expose the port without a key: whoever can reach it can run code on your machine, inside a VM.
Templates
sudo jasmined build node node:22-bookworm --vcpus 2 --mem-mib 4096 sudo jasmined build default-4x8192 python:3.12-slim --vcpus 4 --mem-mib 8192
A build unpacks the image to a disk, boots it, reads its binaries and libraries into the page cache (--prewarm-mib, default 256) and snapshots it. You can also build templates over the API, and any running sandbox can become one with snapshot().
Configuration
| Variable | Default | Meaning |
|---|---|---|
JASMINE_API_KEY | unset | Require Authorization: Bearer <key> on /v1. |
JASMINE_LISTEN | 127.0.0.1:7171 | Address for the HTTP API. |
JASMINE_DATA | /var/lib/jasmine | Templates, sandbox disks and snapshots. Must be XFS with reflink. |
JASMINE_NET_POOL | 32 | Network slots kept pre-built. More are built on demand, slower. |
JASMINE_KERNEL | /var/lib/jasmine/vmlinux | Guest kernel. |
JASMINE_FIRECRACKER | /usr/local/bin/firecracker | Firecracker binary. |
JASMINE_VM_UID_BASE | unset | Run each VMM as an unprivileged uid (base + 1 + slot) instead of root. Set it on hosts that run other people's code. |
Know the limits
- One host. A multi-host scheduler is on the roadmap.
- Running sandboxes don't survive a daemon restart. Snapshot anything you need to keep.
- Raw CPU and disk throughput trail containers by the usual VM tax. Lifecycle and command latency are where Jasmine leads.