Hangar: open-source Mac app runs Claude Code in sandboxed VMs with key isolation
ozgursoy · reddit · 2026-11-23
Baseguard released Hangar, a free, open-source (Apache 2.0) Mac app + CLI that runs macOS, Linux, and Windows VMs on Apple silicon, built specifically for running Claude Code and Codex with approvals off.
Key features:
- Folder isolation: the VM only sees folders you explicitly share (read-only optional); /Documents and /.ssh stay hidden
- Secrets: API keys remain in the Mac Keychain; VM programs see placeholders, and Hangar injects real values only into requests to hosts you name
- Network: all connections and DNS lookups logged from outside the VM, with allowlist or full cutoff modes
- Snapshots: instant rollback if an agent wrecks the environment
- Ships an MCP server so Claude Code on the host can create VMs, run commands, and take snapshots
Notably, Windows 11 on Arm installs unattended from Microsoft's ISO — work inspired by Mustafa Akın's post on running Windows via Apple's Virtualization framework, with a UEFI display driver and a Windows PE installer tool largely built by Claude Code. Even the launch video's pixel animation and music were Claude-written code.
Requires macOS 27+ on Apple silicon: brew install --cask baseguard/tap/hangar, source at github.com/baseguard/hangar.
Related event: Baseguard Open-Sources Hangar to Run Claude Code in VM Sandboxes(4 posts)→
More from coding & agent
- Self-host your agent traces: setup_tracing lands OTel spans in your own Postgres — pritisinghhhh · 2026-11-23
- Building Linear inside Linear: a team of agents clones your own daily software — hargup13 · 2026-11-23
- Denmark releases fully open 120B agentic coding model Munin 2.0, free for commercial use — solyarisoftware · 2026-11-23
- Dev builds a Unix-like OS from scratch using Claude as orchestrator — brada · 2026-11-23
- rendra-mcp: open-source Context7-style doc server for internal runbooks with injection fencing — ConfidenceNew4559 · 2026-11-23
- Agent swarm tests apps like first-time users: 0/18 could split a bill, Claude Code fixed 9 issues — alexionreddit · 2026-11-23