Skip to content

cairn documentation ​

cairn turns an OCI image (nginx, Postgres, your own build) into a Firecracker microVM that runs as your own user, jailed, with its own private network and optional persistent volumes. You describe an app in a cairn.toml, run cairn deploy, and cairn builds the machine, puts it in place of the running one, and waits until it is ready. cairn run uses the same machinery to run a coding agent against a copy of your folder.

Start here ​

  1. Getting started: what cairn needs, how to install it, and your first deploy of nginx.
  2. Concepts: apps, machines, releases, networks, volumes and the processes that look after them.
  3. Lifecycle: deploys, states, restarts, health checks, stopping, and exec.

Guides ​

  • Networking: networks, published ports, DNS, the egress allowlist and cairn net.
  • Volumes: persistent disks, redeploys, backup, repair and removal.
  • Run an agent: cairn run, syncing your folder, Git, sessions, recovery.
  • Guest kernels: the pinned kernel and how to boot a custom one.
  • Troubleshooting: doctor, reading status, logs, common failures, JSON.

Reference ​

  • Command line: every command and flag, with exit status.
  • Manifest: every cairn.toml key, with defaults and validation errors.
  • Configuration: environment variables, /etc/cairn/*.conf, the CAIRN_HOME layout and cairn admin.

Internals ​

  • Architecture: the crates, the processes, privilege boundaries, on-disk records and what a deploy does.
  • Security: what is isolated, what runs privileged and why, and what is not protected.
  • Development: building, the test levels, lint policy, packaging and signing.