Skip to content

jailoc

jailoc

Give your coding agent its own computer, not your whole host. jailoc runs OpenCode, Claude Code, GitHub Copilot CLI, OmO, pi or Antigravity CLI in a libkrun micro-VM per workspace, with only the directories you share and only the network your rules allow.

Run your first workspace Check host requirements and install

jailoc runs on macOS with Apple Silicon and on Linux amd64 (arm64 experimental) with KVM and Landlock. Docker Engine on the host is optional.

Why jailoc

An agent on your host can reach everything your user account can. jailoc narrows that to what the workspace needs:

  • Only the files you share. The agent sees the directories you share as workspace paths or mounts, plus read-only snapshots of files you list. Your SSH keys, browser profiles and other projects aren't in the VM.
  • Egress by rule. A network broker on the host decides every connection. Destinations no allow rule matches are denied, apart from the coding agent's own endpoints, and private and reserved ranges stay closed unless a rule opens them. See Network Access.
  • Docker inside the VM. With enable_docker, the Docker daemon runs in the workspace VM, so no host Docker socket is mounted.
  • Your agent, your workflow. jailoc provides the isolated computer, not the development process. Your instructions, tools, Git workflow and ticket system stay yours. See A boundary, not a workflow.

What jailoc does not protect against

Workspace paths and rw mounts are shared read-write, so the agent's edits land on your files at once, including Git hooks that run on the host; protect_git covers only the repositories it applies to. Anything the agent can read can leave through the destinations your rules allow. On Linux, Landlock doesn't confine metadata operations of the VMM process; on macOS the VMM process runs under a Seatbelt profile, which Apple has deprecated since 2012 but still ships and uses internally. Security Boundaries lists every limit, and the Threat Model explains why they fall where they do.

Documentation

How-to guides

Reference

Explanation

Blog

Development