Back to browse
GitHub Repository

Lightweight and declarative sandboxing for AI agents on Linux and macOS using Nix.

101 starsNix

Sandboxing Agents on macOS and Linux with Nix

by peacefulPanda·Mar 10, 2026·1 point·1 comment

AI Analysis

●●SolidSolve My ProblemBig Brain

Sandbox Claude Code and Aider before they read your SSH keys.

Strengths
  • Uses bubblewrap on Linux and sandbox-exec on macOS—native OS primitives, not containers.
  • Declarative Nix flakes integration means reproducible sandbox configs across teams.
  • Blocks git push while allowing local commits—clever guardrail for agent-generated code.
Weaknesses
  • Requires Nix knowledge, which limits adoption to an already niche developer audience.
  • No Windows support, and setup requires manual flake configuration for each agent.
Target Audience

Developers using CLI-based AI coding agents

Similar To

Firecracker · gVisor · Docker

Similar Projects

Security●●●Banger

Hazmat – I made unrestricted Claude Code safe on macOS

TLA+ verified sandbox makes --dangerously-skip-permissions safe for Claude Code and other agents on macOS.

WizardrySolve My ProblemShip It
dredozubov
112mo ago