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
- Getting started: what cairn needs, how to install it, and your first deploy of nginx.
- Concepts: apps, machines, releases, networks, volumes and the processes that look after them.
- 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, readingstatus, logs, common failures, JSON.
Reference
- Command line: every command and flag, with exit status.
- Manifest: every
cairn.tomlkey, with defaults and validation errors. - Configuration: environment variables,
/etc/cairn/*.conf, theCAIRN_HOMElayout andcairn 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.