
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
- Install or upgrade: Installation, Upgrade an existing installation
- Shape a workspace: Workspace Configuration, Custom Images
- Decide what the agent reaches: Network Access, Secrets, SSH & Git Passthrough
- Open web apps or a desktop from the VM in your browser: Proxy Routes, Desktop
- Work with agents: Sessions, Coding Agents, Workspace Indicator
- Fix a failing start: Troubleshooting
Reference
- Look up a command or field: CLI Reference, Configuration Reference
- Find out what a workspace boots: Image Resolution, Default Image Contents, Overlay Compatibility
Explanation
- Judge the risk: Threat Model, Security Boundaries, Alternatives
- See how it works: Overview, Architecture, Network Isolation, Secrets, Resource Use
Blog
- jailoc 2.11: open workspace web apps over HTTPS
- jailoc 2.7: control the request, not just the host
- Read-only agent configs: your instructions inside the VM, your host untouched
- Taming agent egress: default-deny network rules in jailoc 2.4
- jailoc 2: every agent gets its own computer