{"id":51130116,"url":"https://github.com/solcreek/mirage","last_synced_at":"2026-06-25T11:30:47.521Z","repository":{"id":366875878,"uuid":"1278269066","full_name":"solcreek/mirage","owner":"solcreek","description":"Ephemeral macOS VMs on Apple Silicon — agent-native, CLI-first, with an MCP server and a native SwiftUI app. Built on Apple's Virtualization.framework.","archived":false,"fork":false,"pushed_at":"2026-06-23T18:11:36.000Z","size":143,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T18:24:32.611Z","etag":null,"topics":["ai-agents","apple-silicon","cli","developer-tools","ephemeral","golang","hypervisor","macos","mcp","model-context-protocol","swiftui","virtual-machine","virtualization","vm"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solcreek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-23T16:19:52.000Z","updated_at":"2026-06-23T18:11:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/solcreek/mirage","commit_stats":null,"previous_names":["solcreek/mirage"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/solcreek/mirage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solcreek%2Fmirage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solcreek%2Fmirage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solcreek%2Fmirage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solcreek%2Fmirage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solcreek","download_url":"https://codeload.github.com/solcreek/mirage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solcreek%2Fmirage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34773841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-agents","apple-silicon","cli","developer-tools","ephemeral","golang","hypervisor","macos","mcp","model-context-protocol","swiftui","virtual-machine","virtualization","vm"],"created_at":"2026-06-25T11:30:46.571Z","updated_at":"2026-06-25T11:30:47.511Z","avatar_url":"https://github.com/solcreek.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mirage\n\n[![CI](https://github.com/solcreek/mirage/actions/workflows/ci.yml/badge.svg)](https://github.com/solcreek/mirage/actions/workflows/ci.yml)\n\nEphemeral macOS virtual machines on Apple Silicon — **agent-native** and\n**CLI-first**, with an [MCP](https://modelcontextprotocol.io) server and a native\nSwiftUI app. Built on Apple's Virtualization.framework.\n\nMirage makes a macOS VM something you can spin up, drive, snapshot, and throw\naway in seconds — from a shell, from an AI agent, or from a window.\n\n## Highlights\n\n- **Instant clones** — copy-on-write (APFS clonefile); a fresh VM in ~10 ms\n  regardless of disk size.\n- **Warm snapshot / restore** — freeze a running VM (memory + disk together) and\n  restore straight back to the logged-in desktop, skipping the cold boot.\n- **Headless agent control** — `exec` a command in a guest, or `run` a one-shot\n  (clone → run → destroy). Host↔guest over a vsock channel; no SSH.\n- **MCP server** — the same operations as typed tools (`vm_clone`, `vm_exec`,\n  `vm_run`, `vm_snapshot`, …) so an agent can fan out across disposable VMs.\n- **Native SwiftUI app** — a live VM window (host-side rendering, no in-guest\n  capture), one-click snapshot/restore, and PNG export.\n- **Zero-touch create** — install a golden image that boots ready with no Setup\n  Assistant clicks (offline user + auto-login + guest agent).\n- **CLI ⇄ API ⇄ GUI parity** — every command speaks `--json`; the GUI and MCP\n  server are thin layers over the same core.\n\n\u003e Status: early (v0.1). macOS guests today; the core is structured so other\n\u003e guest types can follow.\n\n## Requirements\n\n- Apple Silicon Mac (M1 or later), macOS 14+.\n- Go 1.22+ and the Xcode command-line tools (for the Swift app).\n- A macOS restore image (`.ipsw`) to create the first golden image.\n\nThe host enforces Apple's limit of **2 concurrently running macOS VMs**.\n\n## Build\n\n```sh\nmake build          # builds + ad-hoc signs bin/mirage (virtualization entitlement)\nmake tools-image    # builds the guest agent tools image\n./app/package.sh    # builds a double-clickable app/build/Mirage.app\n```\n\n## Quickstart\n\n```sh\n# Create a golden image from a restore image (zero-touch headless prep).\nmirage create base --ipsw ~/Downloads/UniversalMac.ipsw --headless\n\n# Instant clone, run a command in it, then throw it away.\nmirage run base -- 'sw_vers -productVersion'\n\n# Keep a VM warm for fast repeated commands.\nmirage start base\nmirage exec base -- 'uname -a'\n\n# Freeze a warm restore point, then resume straight to it later.\nmirage snapshot base\nmirage start base --restore\n\n# Capture the guest display.\nmirage screenshot base -o base.png\n\n# Manage VMs.\nmirage clone base work\nmirage ls\nmirage stop base\nmirage rm work\n```\n\nEvery command accepts a global `--json` flag that emits a single stable\nenvelope, so the CLI is scriptable and programmatic.\n\n## MCP server\n\n```sh\nmirage mcp        # serves the tools over stdio\n```\n\nPoint an MCP-capable client at `mirage mcp` to get `vm_list`, `vm_clone`,\n`vm_start`, `vm_stop`, `vm_delete`, `vm_exec`, `vm_run`, `vm_snapshot`, and\n`vm_screenshot`.\n\n## GUI\n\n```sh\n./app/package.sh \u0026\u0026 open app/build/Mirage.app\n```\n\nA native window lists your images/VMs; **Open** boots a VM in-process and shows\nits live screen, with **Snapshot**, **Save PNG…**, and start/stop controls.\n\n## Architecture\n\n- **`internal/engine`** — the single home for all Virtualization.framework calls\n  (via [`Code-Hex/vz`](https://github.com/Code-Hex/vz)): build, boot, save/restore.\n- **`internal/bundle`** — the on-disk VM bundle format and XDG layout; clones via\n  clonefile.\n- **`internal/supervisor`** — a daemonless, helper-per-VM model: each running VM\n  is one process serving a per-VM socket, with a shared 2-VM quota.\n- **`cmd/mirage`** — the CLI dispatcher and the MCP server.\n- **`cmd/mirage-agent`** — the in-guest agent (vsock): exec, screenshot,\n  auto-login setup.\n- **`app/`** — the SwiftUI app, a thin client over the same core that also owns\n  the VM it displays live.\n\n## Repository layout\n\n```\ncmd/mirage         CLI + MCP server\ncmd/mirage-agent   in-guest agent (vsock)\ninternal/engine    Virtualization.framework wrapper\ninternal/bundle    bundle format + clonefile\ninternal/supervisor per-VM helper + quota\napp/               native SwiftUI app\nguest/             guest install + tools image scripts\ndocs/              design spikes \u0026 findings\n```\n\n## License\n\nLicensed under the Apache License, Version 2.0. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolcreek%2Fmirage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolcreek%2Fmirage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolcreek%2Fmirage/lists"}