Use cases
Every scenario below is copy-pasteable. Each one starts from a sentence you have probably said, and ends with what cell changes about it. Build cell first (./build.sh, needs machin ≥ 0.149) or read along — the commands are the documentation.
“The agent wrote it. Who runs it?”
Your coding agent just produced a migration script, a scraper, a build fix. Reading every line is the work you were trying to avoid. Running it unread means whatever it does, it does as you — your ~/.ssh, your tokens in env, your network.
cell run -- python3 migration.py
No network, no host filesystem, no environment variables, ~4 ms of setup. If the script needs the project directory:
cell run --bind ~/proj:/work:rw --bind ~/proj/.git:/work/.git:ro --workdir /work -- python3 migration.py
The payload writes only inside /work — and cannot rewrite history, because .git is read-only even inside the writable bind. Afterwards:
cell audit --last 1
One JSON record: the exact policy it ran under, what enforced and what was unavailable, how long it took, how it exited. The check stops being a decision. That is the entire point: when checking costs nothing, you stop rolling the dice.
“curl | bash is a leap of faith”
Installers, dependency postinstall scripts, build recipes from strangers — the supply chain runs on borrowed trust. Run the installer where its worst case is boring:
cell run --bind ~/proj:/work:rw --workdir /work --net proxy --egress-only registry.npmjs.org -- npm install
The package can reach exactly one host. It cannot read your SSH keys (they do not exist in its world), cannot exfiltrate to an arbitrary endpoint (egress is mediated and denied by policy), and every connection it makes is evidence with byte counts in the audit log. Verified adversarially in spikes/supply-chain: a purpose-built malicious postinstall hit the wall on every escape vector. Two measured gotchas: pip needs both pypi.org and files.pythonhosted.org as separate --egress-only entries, and npm postinstalls run as nobody under root-in-userns unless you pass --unsafe-perm.
“It needs the GitHub API. Only the GitHub API.”
A nightly job syncs issues through the API. It needs one host and one token — and today it gets both, plus implicit access to everything else.
cell run --net proxy --egress-only api.github.com --env GH_TOKEN -- python3 sync.py
Resolution happens once, outside the jail; the dial goes to the literal address, so DNS rebinding does not exist as an attack. Private and loopback ranges are denied by default — the proxy cannot be turned into a bridge into your LAN or cloud metadata endpoint. The egress audit record says what connected where and how many bytes flowed.
One honest limit: CONNECT tunnels TLS end-to-end, so cell meters but cannot inspect inside TLS. A payload that smuggles data inside its allowed connection is a real threat — mitigation, not magic. For credentials there is a better answer than --env, shipped in v0.6: --credential injects the secret host-side and it never exists inside the jail at all — verified end-to-end with a clone+push of a private repo and LLM API streaming in spikes (see spikes/am-pr-flow, spikes/llm-streaming).
“The build only needs the repo — why can it see everything?”
cell run --bind ~/proj:/work:rw --bind ~/proj/.git:/work/.git:ro --workdir /work --strict-writes -- make
--strict-writes means writes land only in the rw bind and scratch space. A malicious or buggy Makefile target cannot touch ~/.config, cannot wipe the parent directory, cannot modify the checkout it is not looking at. If the build clones dependencies, add --net proxy and an egress policy — otherwise it gets no network and fails fast, which is the correct answer for a build you did not expect to hit the network.
“Cloned code, unknown author”
git clone https://github.com/someone/something /tmp/review
cd /tmp/review && cell run --bind /tmp/review:/r:ro --workdir /r -- python3 -m pytest
Read-only mount of the source, no network, no secrets. Its tests can be as hostile as they want; the interesting question becomes what they try to do, which the audit log answers.
“The agent opens its own PRs. What exactly can it touch?”
The autonomous end-state: clone a private repo, ask an LLM for a change, push a branch, open a PR — with zero credentials inside the execution:
cell run --net proxy --egress-only github.com --egress-only api.github.com --egress-only openrouter.ai \
--credential "github.com:Authorization=Basic env:GH_B64" \
--credential "api.github.com:Authorization=Bearer env:GH_TOKEN" \
--credential "openrouter.ai:Authorization=Bearer env:ORKEY" \
--bind /work:/work:rw -- ./agent-loop.sh
The payload speaks plain HTTP to the loopback proxy; the parent injects each credential host-side and upgrades to verified TLS. The keys never exist in the jail — not in env, not on disk, nowhere a process sniffing itself can reach. Multiple credential types coexist on one run. Verified end-to-end in spikes/am-pr-flow: a real LLM-generated change pushed as a real PR on a private repo, server-checked, with keys-in-jail: 0 throughout. One honest cost: keep-alive is force-disabled on injected connections, so chatty clients pay fresh TLS handshakes — correctness before speed.
For the person who owns the risk register
Adoption usually dies in the gap between “the team should” and “the team does”. cell is designed to fit in that gap:
- The cost of the control is zero. No daemon to secure, no cluster, no images, no registry. It is a prefix:
cell run --in front of a command that already exists. One engineer can start today; nothing needs approval, provisioning, or a migration plan. - Evidence is the default, not a feature flag. Every run writes one JSONL record with the full policy hash, enforcement outcomes, and exit status. “Show me what the AI-generated code did last Tuesday” is a grep, not an incident.
- Honest enforcement. cell reports what it actually enforced — cgroup available or not, landlock applied or not — instead of claiming security it did not deliver. Your risk register gets facts.
- It does not pretend to be a VM. The payload shares the host kernel. For hostile multi-tenant execution you need hardware virtualization and cell says so, permanently, in every document it ships. For the actual 95% — semi-trusted scripts, agent output, supply-chain nuisance — the namespace boundary is the right cost point.
The realistic adoption path: one engineer prefixes agent output for a week, the audit log answers a question no other tool could, and the prefix spreads. CI integration is a shell wrapper away when you want it — cell run passes the payload exit code through and uses 80/91-95 for its own failure stages, so pipelines can distinguish “the code failed” from “the jail failed”.
Try it
Two minutes from zero to a jailed command: quickstart.