Hangar: Open-Source Mac App Runs Claude Code in VMs With Approvals Off
ozgursoy · reddit · 2026-11-22
Baseguard open-sourced Hangar (Apache 2.0), a Mac app and CLI that runs Claude Code and Codex inside macOS/Linux/Windows VMs so you can safely disable approvals:
- File isolation: the VM only sees folders you share (optionally read-only); /Documents and /.ssh are absent by default
- Secrets: API keys stay in the Mac Keychain; the VM sees placeholders, real values injected only for hosts you allow
- Network: all connections and DNS logged from outside the VM; switch to an allow list or cut it off entirely
- Snapshots: instant, so a wrecked VM rolls back in one step
An MCP server lets Claude Code on the Mac create VMs, run commands and take snapshots. Debian/Ubuntu/Fedora are ready in seconds; Windows 11 on Arm installs itself from Microsoft's ISO. Install via brew install --cask baseguard/tap/hangar; requires Apple silicon with macOS 27+.
Related event: Baseguard Open-Sources Hangar to Sandbox AI Coding Agents in VMs(2 posts)→
More from coding & agent
- Matt Pocock floats a 'perfect TypeScript codebase' agent skill and asks what belongs in it — mattpocockuk · 2026-11-22
- Dystalgia: a ComfyUI-based photo editor with context-aware cropping — aurelm · 2026-11-22
- Esri open-sources CityEngine C++ SDK for procedural 3D building generation — Promptmethus · 2026-11-22
- Athena: local-first MCP server cuts agent context usage by 49x-2067x — Significant-Log-4272 · 2026-11-22
- Influzer adds MCP allowlist export: mergeable policy packs from Top 100 servers — Fine_Airline_6832 · 2026-11-22
- Google testing Inbox mode for Antigravity to shift users into approving AI outcomes — testingcatalog · 2026-11-22