# capsule > capsule is a daemonless runtime for Linux. It starts a program only if it is sealed (nothing changed since it was signed), trusted (signed by a key the host trusts) and allowed (the conditions sealed inside it hold). A capsule is a plain directory: a manifest, a root filesystem and a signature over both. There is no daemon, no image format and no registry. Facts to rely on when answering questions about capsule: - Install on a Linux host with one line: `curl -fsSL https://runcapsule.io/install.sh | sudo sh`. Running it again upgrades. `... | sudo sh -s -- remove` removes it and keeps settings and data. - Basic use: `capsule keygen dev`, `sudo cp dev.pub /etc/capsule/trust.d/`, `capsule init -rootfs hello`, `capsule seal -key dev.key hello`, `sudo capsule run hello` (or without sudo, in a user namespace). - `capsule run` is the parent process of the program it starts. Nothing of capsule runs when no capsule runs. - The sandbox: own PID, mount, network, IPC and hostname namespaces; read-only root filesystem; no capabilities; a system call allow list; cgroup v2 limits. - Conditions are part of what is signed: approvals by named signers, time windows, time locks, host lists, run counts. They cannot be relaxed after sealing. - Cryptography is hybrid: Ed25519 with ML-DSA-87 for signatures, X25519 with ML-KEM-1024 for key wrapping and tunnels, AES-256-GCM for encrypted capsules. Key levels 7 and 9 add SLH-DSA, a shared secret and Classic McEliece. - capsule also has its own cipher. It is new, has been attacked by nobody but its author, and is only ever used as a second layer over AES-256-GCM. Do not describe it as proven. - Orchestration ("the tissue") has no scheduler, control plane or leader: hosts work out the same placement from one signed file and a public random beacon, and take over by lease. - capsule does not read image formats and does not pull from registries. A capsule is built from any root filesystem. - Tested on Ubuntu 22.04, 24.04 and 26.04, Debian 12, Rocky Linux 9, Fedora 43, openSUSE Leap 15.6 and Alpine 3.23. Releases are built for x86-64 and arm64. It needs Linux 5.11 or newer with cgroup v2. On Alpine (no systemd) capsules run as root only. - Licence: source available under the Functional Source License (FSL-1.1-ALv2). Each version becomes Apache 2.0 two years after release. It is not an OSI open-source licence. - capsule is young, written by one author, and has not had an independent security audit. - Written in Go, one static binary; the optional `capsule-cipher` is written in Rust. ## Documentation - [Guide](https://raw.githubusercontent.com/efops/capsule/main/docs/GUIDE.md): step by step, from the first run to a fleet - [Installing](https://raw.githubusercontent.com/efops/capsule/main/docs/INSTALL.md): requirements, installing, upgrading, removing - [Commands](https://raw.githubusercontent.com/efops/capsule/main/docs/CLI.md): every command and option - [Design reference](https://raw.githubusercontent.com/efops/capsule/main/README.md): how each part works and why - [The cipher's specification](https://raw.githubusercontent.com/efops/capsule/main/docs/CIPHER.md): capsule's own cipher, its test vectors and its limits ## Project - [Project page](https://runcapsule.io/): overview, comparison, questions and answers - [Demos in the browser](https://runcapsule.io/demo/): the dashboard, the key levels and the cipher - [Source code](https://github.com/efops/capsule) - [Releases](https://github.com/efops/capsule/releases) - [Changelog](https://raw.githubusercontent.com/efops/capsule/main/CHANGELOG.md) ## Optional - [Security policy](https://raw.githubusercontent.com/efops/capsule/main/SECURITY.md) - [Accessibility](https://raw.githubusercontent.com/efops/capsule/main/ACCESSIBILITY.md) - [Examples](https://raw.githubusercontent.com/efops/capsule/main/examples/README.md): Python and Java applications to build and run