Jasmine

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.
Hetzner's bare-metal servers are a good price-to-performance fit. Most cloud VMs either lack KVM or pay a nested-virtualization tax; our published benchmarks ran on exactly that kind of VM, so bare metal should be faster.

Install

shell
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:

/etc/jasmine/env
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

shell
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

VariableDefaultMeaning
JASMINE_API_KEYunsetRequire Authorization: Bearer <key> on /v1.
JASMINE_LISTEN127.0.0.1:7171Address for the HTTP API.
JASMINE_DATA/var/lib/jasmineTemplates, sandbox disks and snapshots. Must be XFS with reflink.
JASMINE_NET_POOL32Network slots kept pre-built. More are built on demand, slower.
JASMINE_KERNEL/var/lib/jasmine/vmlinuxGuest kernel.
JASMINE_FIRECRACKER/usr/local/bin/firecrackerFirecracker binary.
JASMINE_VM_UID_BASEunsetRun 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.