terminal-mac lets AI Agents operate an isolated macOS virtual machine in the terminal
terminal-mac runs an isolated macOS virtual machine on Apple Silicon Macs and streams the virtual machine's desktop display into terminals such as Kitty, Ghostty, and iTerm2. The Agent invokes screenshot, click, type, and scroll operations through MCP tools, with the scope of operation confined to the virtual machine, without sharing the host's files, login sessions, or clipboard. The project is based on the Apple Virtualization framework and can be installed with a single curl command. It comes with a complete MCP service and can connect to clients such as Claude Code, Cursor, VS Code, Codex, and devin. Currently it only supports Apple Silicon; the first run requires downloading Apple's official recovery image, the default disk is a 64G sparse disk, and the default NAT network can still access the internet, so it cannot be treated as a safe box for running malicious code.
Why read this
AI score 64
The original article presents a concrete solution for running an isolated macOS virtual machine within the terminal for Agents to operate, offering insight into isolation approaches for desktop automation.