Hangar: open-source macOS/Linux/Windows VMs to sandbox AI coding agents

ozgursoy · reddit · 2026-11-22

Hangar is a free, open-source (Apache 2.0) Mac app and CLI built on Apple's Virtualization.framework that runs macOS, Linux and Windows VMs — the author uses it to run Claude Code and Codex with approvals off, so bad commands land in a VM instead of on the host.

Key isolation features:

Debian/Ubuntu/Fedora VMs start in seconds, Windows 11 on Arm installs from Microsoft's ISO. An MCP server lets agents on your Mac create VMs, run commands and take snapshots, while secrets, passwords and VM deletion stay human-controlled. Install via brew install --cask baseguard/tap/hangar.

Related event: Baseguard Open-Sources Hangar to Sandbox AI Coding Agents in VMs(2 posts)→

Original post →

More from coding & agent

coding & agent channel →