Open-source Hangar runs Claude Code in a VM so approvals can stay off
ozgursoy · reddit · 2026-11-22
Baseguard open-sourced (Apache 2.0) Hangar, a Mac app and CLI that runs macOS, Linux and Windows VMs for running Claude Code and Codex with approvals off:
- Folders: the VM sees only shared folders (optionally read-only); /Documents and /.ssh stay invisible.
- Secrets: API keys stay in the Mac's Keychain; programs see a placeholder, and Hangar injects the real value only into requests to named hosts — placeholders sent anywhere else are refused.
- Network: every connection and DNS lookup logged from outside the VM; allow-list mode or full cutoff available.
- Snapshots: instant, so a wrecked VM is one rollback away.
Much of the Windows 11 on Arm support (UEFI display driver, zero-click install media, PE-based installer) was written largely by Claude Code, building on Mustafa Akın's post about Windows on Apple's Virtualization framework. An MCP server lets Claude Code on the Mac create VMs, run commands, and snapshot them. Debian/Ubuntu/Fedora VMs are ready in seconds; requires Apple silicon with macOS 27+; install via brew install --cask baseguard/tap/hangar.
Related event: Baseguard Open-Sources Hangar to Run Claude Code Safely in VMs(3 posts)→
More from coding & agent
- Stardock CEO shows Clairvoyance: hierarchies of 71 AI 'staff' agents building Sins of a Solar Empire II — draginol · 2026-11-22
- FieldCraft: pure-Rust open-source CAE tool bundles FEA, heat and fluids with MCP support for AI agents — Promptmethus · 2026-11-22
- Photo-to-game-asset workflow turns one photo into Unity-ready 3D plants for $4 — Promptmethus · 2026-11-22
- AI-built Tidewater Abbey: 101M boxes, 2,387 lights and 527K lines of generated JS — Promptmethus · 2026-11-22
- 22-year-old with no credentials won a billion-dollar consultancy using live AI demos — aryanXmahajan · 2026-11-22
- How do you prove an agent run actually happened? Compliance pain point — TuneComprehensive418 · 2026-11-22