Quickstart
From zero to a jailed command in about two minutes.
1. Install machin
cell is written in machin and compiles with it. You need machin ≥ 0.149:
curl -sL https://github.com/javimosch/machin/releases/latest/download/machin-v0.149.0-linux-amd64 \
-o ~/.local/bin/machin && chmod +x ~/.local/bin/machin
2. Build cell
git clone https://github.com/javimosch/cell
cd cell
./build.sh # produces build/cell — one small native binary
There is nothing else to install. No root, no daemon, no container runtime, no image to pull. The binary is the whole product.
3. Jail something
./build/cell run -- echo hello from inside
What just happened: the command ran as root inside a fresh kernel isolation boundary — own process tree, own filesystem view, own loopback-only network — assembled and torn down in about 4 milliseconds. Outside, you never left your user account.
4. Give it work to do
# mount a project read-write, work in it
./build/cell run --bind ~/project:/work:rw --workdir /work -- make
# keep the project's .git read-only while the tree stays writable
./build/cell run --bind ~/project:/work:rw --bind ~/project/.git:/work/.git:ro -- make
# pass one environment variable in, scrub everything else
./build/cell run --env API_KEY -- python3 agent.py
5. Network, when you actually need it
Default is no network at all. When a payload legitimately needs egress:
# mediated egress: only through the policy-enforcing proxy, evidence logged
./build/cell run --net proxy -- curl -s https://example.com
# restrict to one host
./build/cell run --net proxy --egress-only github.com -- curl -s https://github.com
Every connection decision lands in the audit log as JSON evidence.
6. Prove it to yourself
./tests/threat.sh # 48 containment checks, must print pass=48 fail=0
The harness doesn’t test that features work — it attacks the jail and checks the attacks fail: reading host secrets, escaping the filesystem, escaping the network, fork-bombing past the resource caps, leaking environment variables.
Next: usage reference for every flag, or the security model for what cell does and does not promise.