Bring your own kernel
cairn fetches a pinned guest kernel on first deploy. Set
kernel_file to use your own build.
Deploy a microVM on your own Linux host in a single command. Each app boots in Firecracker with its own Linux kernel and gets a private network by default.
# cairn.toml version = 1 app = "web" image = "docker.io/library/nginx:1.27" [[services]] internal_port = 80 [[services.ports]] port = 8080
$ cairn deploy
Build and boot a release
$ cairn status web
Show status, endpoints, and log paths
$ cairn stop web
Shut down and keep the disk
$ cairn destroy web
Remove the app and its machines
Features
Start with a container image you already use. Describe the app in
cairn.toml
and cairn builds the disk, sets up networking, and boots the VM.
cairn fetches a pinned guest kernel on first deploy. Set
kernel_file to use your own build.
Each private subnet comes with NAT and DNS. Publish ports to the host, connect apps on a shared network, or limit outbound traffic by hostname.
Store databases, uploads, and other app data on volumes that survive redeploys and restarts.
cairn waits for the new release to be ready and can roll back a failed deploy. By default, it leaves the app stopped if the new release may have changed a volume.
Firecracker runs as your regular user and uses your cgroup limits. Two small helpers handle privileged setup.
Use cairn run to launch a coding agent in a microVM
with a synced copy of your project.
Run commands or open a shell with cairn exec.
Attach to the serial console with cairn console.
cairn restarts workloads on failure by default. Enable systemd user lingering to bring apps back after a host reboot.
Run cairn doctor to check KVM access, kernel
support, group membership, and the installed helpers.
Each release boots in a fresh microVM. Across redeploys, the app keeps its configured network, published ports, and persistent volumes.
cairn run
cairn run starts Claude
Code by default. To run another agent, pass its container image or
configure an alias. The agent works on a copy of your project,
with file changes synced both ways by default.
Security
chroot) with three
device nodes and keeps its seccomp filter.
cairn-jail sets up the
jail, and
cairn-helper configures
host networking. Access is limited to root and members of the
cairn group.
Requires an x86-64 host with Linux 6.17 or later and KVM.
sudo
curl
-fsSLo
/etc/yum.repos.d/cairn.repo
https://packages.cairn.dev/cairn.repo
sudo
dnf install cairn
sudo
usermod
-aG cairn
$USER
sudo
curl
-fsSLo
/etc/apt/keyrings/cairn-packages.gpg
https://packages.cairn.dev/cairn-packages.gpg
sudo
curl
-fsSLo
/etc/apt/sources.list.d/cairn.sources
https://packages.cairn.dev/cairn.sources
sudo
apt update
&&
sudo
apt install cairn
sudo
usermod
-aG cairn,kvm
$USER
Follow a working example, then use the same steps to deploy your own app.