Guests
macOS, Linux and Windows 11
Real VMs on Apple’s Virtualization framework, in a window or quietly in the background.

A local sandbox for AI agents
Hangar gives Claude Code, Codex or any agent its own macOS, Linux or Windows VM, right on your Mac. It can install and run anything, and reach only the hosts you allow, with every connection watched from outside the guest.
Approving every command slows an agent to a crawl; skipping approvals on your own Mac is a bet with your files and keys. In a Hangar VM the agent works unattended, and you decide what it can reach.
Run your first agent in a VMNot a container: a VM with its own kernel, disk and network on Apple’s Virtualization framework. Root, sudo, Homebrew, servers, all fine.
Its model’s API, GitHub and npm, and nothing else. Start from a template for Claude Code or Codex.
PoliciesEvery lookup and connection is seen from the Mac, where software in the VM can’t hide from it.
Share one project folder, read-only if you like. The rest of your files stay out of the VM.
Snapshot before a run and restore after, and the VM is back exactly where it started.
Clone one clean snapshot into several agents, each with its own address and identity.
Traffic rules
Hangar watches from the Mac, so an agent can’t hide its traffic or switch the watching off: DNS lookups, host names from DNS, TLS and HTTP, bytes in and out, and what was blocked. Pick a mode and watch it land on a running VM.
Build a policy

Snapshots and images
Take a snapshot before the agent starts; when it’s done, stop the VM and restore it. Snapshots are copy-on-write, so they’re instant and only take space as the disk changes.
Snapshots and imagesTaken while a macOS VM runs, a snapshot keeps its memory too, so a restored VM picks up where it was.
Start several agents from one clean snapshot. Each clone gets its own MAC address, IP address and machine identity, while the source keeps running.
Push a macOS, Linux or Windows VM to any OCI registry, or save it as a .tar file, and create VMs from it anywhere.
Images and registries
Push a macOS, Linux or Windows VM, or one of its snapshots, to the container registry you already use. Hangar’s images are OCI images, so your registry takes them as they are: no new service to run, nothing extra to set up. Everyone creates the same VM from its tag.

Guests
Real VMs on Apple’s Virtualization framework, in a window or quietly in the background.
Images
Hangar’s macOS images, Debian and Ubuntu cloud images, or your team’s own from a registry.
Snapshots
Copy-on-write snapshots and clones that only take space as the disk changes.
Guest agent
The guest’s real memory use, a shared clipboard, and Homebrew ready in macOS.
Files
Shared folders, and files dragged onto a VM’s window land where you let go.
CLI
Click around in the app or script it in the terminal. Both work on the same VMs.
Policies

The API and sign-in, GitHub for plugins, npm for MCP servers. The optional Datadog telemetry hosts stay off.
Claude · GitHub · npm
Use this
OpenAI’s API and ChatGPT sign-in, with GitHub and npm to work with.
OpenAI · GitHub · npm
Use this
Check out from GitHub, install from npm, PyPI, crates.io and Go, pull from Docker Hub.
GitHub · npm · PyPI · Rust · Go · Docker Hub
Use this01
Drag Hangar into Applications. For the command line, choose Settings › Command Line › Install…
02
On the welcome screen, or after ⌘N. Quick Start picks the Base image or Debian 13 for you.
03
The VM opens when it’s ready, with the user admin, the password admin and SSH on. Change the password.

License
Hangar is free on any Mac used by one person. A company can also run it on shared machines and build servers with up to 100 CPU cores in total; more than that needs a separate license from Baseguard.