Sandboxing Agents on macOS and Linux with Nix
Sandbox Claude Code and Aider before they read your SSH keys.
Sandboxed Nix environments using MicroVM
direnv auto-activation with bubblewrap sandboxing isolates agents per project.
Developers running AI coding agents on client projects or sensitive machines
Firejail · Bubblewrap · Nix develop shells
nixcage creates per-project sandboxes that activate automatically when you cd into a directory (via direnv). It uses bubblewrap on Linux and sandbox-exec on macOS — no VMs, no Docker, no overhead.
Three isolation levels: strict (no network, empty home), standard (project writable, network on), and relaxed (home readable, project writable).
It also controls Nix store access (shared, readonly, copy, or fully isolated) so sandboxed tools can't pollute your host store.
Quick start: nixcage init --preset claude-code && direnv allow
A debug mode captures every blocked syscall so you can see exactly what's denied and tune your config.
Sandbox Claude Code and Aider before they read your SSH keys.
Embedded Rust sandbox with seccomp and DNS rebinding protection, no VM required.
AST-validated shell commands with OS sandboxing for safer AI coding.
Sandboxed Rust execution for AI agents, but Devin already owns this category.
Credential proxying keeps keys out of sandboxes, unlike Ramp Inspect.
Thirty-line agent loop with Docker sandboxing contains blast radius safely.