Start
Install and platforms
Fenzi is one command, fenzi, and on a Mac an app that installs it for you. It runs on Apple Silicon Macs and Linux, and on Windows through WSL 2, which upstream marks experimental. The sandbox itself needs a container runtime or a VM, and a Linux kernel that can enforce filesystem rules.
The Mac app
On a Mac, start with the app. fenzi is inside it, it sets up the sandbox runtime the first time you open it, and it starts your first sandbox, without opening Terminal. It then shows this machine's sandboxes, requests, approvals and decision log, and every screen shows the fenzi line it ran.
55ab7b21c4536758920b6040815c475e5db12f4b0baeb4f382369daeace24bb6Open the disk image and drag Fenzi to Applications. To check the download first, compare the sum above with shasum -a 256 ~/Downloads/Fenzi-0.5.24-unsigned.dmg.
The first time you open it, a small window sets up this Mac in about a minute, with nothing to answer:
- The sandbox runtime. OpenShell, installed with its upstream installer, and its gateway started. When colima is your container runtime, the gateway setting it needs is written first. A Mac without Homebrew gets one button: macOS asks for your password once, Fenzi installs Homebrew from its signed package (and Apple's Command Line Tools when they are missing), and setup goes on by itself. On macOS 14, where Homebrew has no package, the button opens a pane that asks for the password and nothing else.
- The first agent's image. Claude Code's image is built on your Mac from a pinned Dockerfile, alongside, and may finish after the window says ready. New Sandbox waits for it.
- fenzi in Terminal. When you have no
fenziyet, the app links its own copy into~/.local/binand, if that folder is not on yourPATH, adds the same marked line to your shell's profile that the installer below adds.
Then a short tour shows Sandboxes, Requests, the Log and the Policy, and ends on New Sandbox: a folder and an agent. Claude Code can sign in with your Claude subscription.
The app checks this site once a day and offers a newer version in its sidebar, with one button; the fenzi inside it updates with it. On a machine signed in to a team it also shows the account and team, forwards decisions to the console, and sends a request to the console with Approve and add to policy, where an admin publishes it for every machine.
The app runs on macOS 14 or later, on Apple Silicon and Intel. The sandbox does not run on an Intel Mac, so there the app cannot start an agent. See Platforms.
macOS blocks it the first time you open it, because Apple has not checked it. On macOS 15 and later, open Fenzi once, then open System Settings, Privacy & Security, and click Open Anyway next to Fenzi. On macOS 14, Control-click Fenzi in Applications and choose Open. You do this once. A signed and notarized build replaces this one; the CLI is not affected, because a file fetched with curl is not checked this way.
Install the CLI
On Linux, in CI, or on a Mac without the app:
curl -fsSL https://fenzi.dev/install.sh | shTo read the script before it runs, download it, open it, then run it. It is short, and the same file is in the open-source repository.
curl -fsSL https://fenzi.dev/install.sh -o install.sh && less install.sh && sh install.shThis installs the latest release. It checks the download's sha256 and puts fenzi in /usr/local/bin when it can write there, or in ~/.local/bin. If that folder is not on your PATH, it adds one line to the profile of your shell: ~/.zshrc for zsh, ~/.bash_profile for bash on a Mac or ~/.bashrc on Linux, or ~/.config/fish/conf.d/fenzi.fish. The line ends with # added by the fenzi installer, is written once, and says which file it went to. Open a new terminal after that. That line is the only change the installer makes without asking; FENZI_NO_MODIFY_PATH=1 stops it. Then it starts fenzi setup, which asks before it installs or changes anything. It does not change your editor or your agent's settings.
| Set this | To |
|---|---|
FENZI_VERSION=0.1.1 | Install that release instead of the latest. |
FENZI_INSTALL_DIR=<folder> | Install into that folder. |
FENZI_NO_MODIFY_PATH=1 | Leave every shell profile alone. The installer prints the export PATH line instead. |
FENZI_NO_SETUP=1 | Install the command and stop. |
Put them before sh, as in curl -fsSL https://fenzi.dev/install.sh | FENZI_NO_SETUP=1 sh. Check what you got:
fenzi version ■ Version
✓ Fenzi <version>That is this Fenzi release. The runtime release line it was built against is what fenzi doctor checks. See Versions and upgrades. To install on many machines at once, see Rolling out to many machines.
The sandbox runtime
The sandbox is OpenShell, an open source runtime. Fenzi drives it and does not replace any part of it. fenzi setup offers to install the pinned release, 0.1.8, with the upstream installer, and shows the command first. On a Mac that installer needs Homebrew, which also keeps the gateway running. Without Homebrew, setup says so and offers Homebrew's official installer first, showing its command; it asks for your password once and nothing else. On Linux the installer runs the gateway as a systemd user service, and setup restarts it there. To install it yourself, use the upstream packages for that release, then check the machine:
fenzi doctordoctor checks the runtime version, the gateway connection, the sandbox driver, the image builder, the policy prover, and the settings that would weaken a sandbox. It also looks up an allowed host inside a running sandbox and fails when the TTL is 1 second or less, on any runtime; see Short DNS TTLs. With --fix it removes those settings. It changes nothing else, and only after it says what it will change. It does not configure colima. When the gateway is down because Docker Desktop, colima, or another container runtime is stopped, doctor names it and fenzi setup starts it; see Container runtimes. Each failure and what to do about it is in Troubleshooting.
Platforms
| Machine | Sandbox runs in | Where isolation happens |
|---|---|---|
| Mac with Apple Silicon | Docker Desktop, colima, or the MicroVM driver | Inside the Linux VM that runtime starts. macOS has no Landlock, so the rules apply to the VM's kernel. |
| Linux | Docker Engine 28 or later, or Podman 5 | On the host kernel, in a separate network namespace. |
| Windows | WSL 2, with one of the Linux runtimes inside it | Inside WSL 2. Upstream marks Windows experimental, and so do we. |
Intel Macs are not on the list: the Mac app opens on one, but the sandbox does not run there. Native Windows enforcement is not on the list. No special hardware is needed anywhere.
On every runtime, the sandbox keeps an allowed host's address for the TTL its resolver gives, 1 second at least and 30 at most. A resolver that answers with a TTL of 0 makes agents fail at random. fenzi doctor checks it; see Short DNS TTLs.
Kernel requirement
Filesystem rules are enforced with Landlock, which needs ABI version 3 or later. Fenzi sets the policy so that a sandbox does not start without it. The upstream default would start the sandbox anyway and log a warning; we prefer a clear failure to a quiet hole.
On a Mac, this is about the Linux VM's kernel, not macOS. If a runtime's kernel cannot enforce the rules, the sandbox does not start, and fenzi run stops before the agent does.
Image builder
Each agent runs from an image built on your machine. Fenzi uses Docker if it is installed, then Podman. It needs one of them even when sandboxes run on the MicroVM driver. See Agent images.
Notes for Macs
- Docker Desktop is the path the upstream instructions describe.
- colima works once the gateway has three settings: the Docker driver, colima's socket, and
host.docker.internalas the address sandboxes use to reach it, because they run inside colima's VM.fenzi setupwrites them when you have no gateway config yet. See Troubleshooting. - colima's DNS answers every name with a TTL of 0 while its
dnssetting is empty, and agents are then refused at random.fenzi setupoffers to set it and restart colima, and changes nothing unless you choose it. See Troubleshooting. - The MicroVM driver runs each sandbox in its own lightweight VM through Hypervisor.framework. It looks for the agent image in your local Docker or Podman before it pulls one.
What the install writes
The binary, and two folders the first time you run it: ~/.config/fenzi for state and a team sign-in, and ~/.cache/fenzi for compiled policies, saved logs, and staged changes. Model keys are not in either. They live in the runtime's own credential store. The full list is in the CLI reference.
Remove it
In the Mac app, choose Uninstall Fenzi in the Fenzi menu, or in Settings, Advanced. It deletes the sandboxes, the records and the settings, lets you choose whether the keys, the fenzi command, the agent images and the sandbox runtime go too, then moves the app to the Trash. Moving the app to the Trash yourself leaves all of that behind, and a copy you put back opens as before, without the installer.
With the CLI alone, run fenzi uninstall, or fenzi uninstall --all for everything; --dry-run lists what would go. Changes in sandboxes that you have not applied are lost, so review them first with fenzi stop. Your repositories, Docker and colima are not touched. See the CLI reference.