boxmoe_header_banner_img

Hello! 欢迎来到阿虪的开发世界~

加载中

文章导读

terminal-mac:整个 macOS 跑在终端里,给 Agent 一台隔离的虚拟 Mac


avatar
阿虪 13 11 月, 2026 182
terminal-mac

中文版

terminal-mac(GitHub:https://github.com/govijr/terminal-mac ,2026-11-03 创建,今晨抓取时已 2,664★)是一个 Swift 写的工具:在终端里跑一台真正的虚拟 macOS,专门给 computer-use(电脑操作型)Agent 用。

按 README 的介绍,它基于苹果的 Virtualization 框架,跑的是一台货真价实的 macOS 虚拟机;终端查看器(Kitty、iTerm2、Ghostty 的图形协议)把虚拟 Mac 的画面串流到你的终端里。Agent 通过 MCP 工具(截图、点击、拖拽、滚动、输入、按键、状态)操作虚拟机,动的是虚拟机里的指针和剪贴板,绝不会碰你的真实桌面。虚拟机是独立的一台 Mac:有自己的应用、文件、账号和权限,不继承主机上登录的会话;首次运行从苹果官方下载 macOS 恢复镜像(几 GB),虚拟磁盘默认 64GB。需要 Apple silicon 的 Mac、macOS 14 以上。MIT 开源。

需要注意:项目目前是早期候选版(early release candidate),发布包是自签名(未经苹果公证),干净 Mac 上的实机验收还在进行中。

为什么值得了解

  • Agent 要操作电脑时最怕它动你的真实桌面:terminal-mac 把风险关进一台虚拟机,误操作也只影响虚拟机
  • 对 Mac 用户尤其友好:Apple silicon + 原生虚拟化框架,不用装笨重的虚拟机软件,终端里就能看、就能管
  • MCP + skill 一套齐全:Claude Code 一个插件就能接上,Cursor、VS Code、Codex 也能用,Agent 的观察—行动—验证闭环都配好了
  • 和今天另一位选手 Claude-Cage 思路相通:都是“隔离优先”,一个隔离 Claude、一个隔离整台 Mac

English Version

terminal-mac (GitHub: https://github.com/govijr/terminal-mac , created 2026-11-03, 2,664 stars at this morning’s fetch) is a tool written in Swift that runs an entire macOS inside your terminal, built for computer-use agents.

Per the README, it uses Apple’s Virtualization framework to run a real macOS guest; a terminal viewer streams the guest’s screen using the Kitty, iTerm2 or Ghostty graphics protocols. Agents drive the guest through MCP tools (screenshot, click, drag, scroll, type, key, status) — they move the guest’s pointer and clipboard, never your physical desktop. The guest is a separate Mac with its own apps, files, accounts and permissions; it doesn’t inherit your host’s running apps or signed-in sessions. The first run downloads a macOS restore image directly from Apple (several GB), and the virtual disk defaults to 64 GB. It needs an Apple silicon Mac running macOS 14 or later. MIT-licensed.

One caveat: the project is an early release candidate; releases are self-signed (no Apple notarization) and live-guest acceptance on a clean Mac is still pending.

Why it’s worth knowing

  • The biggest fear with computer-use agents is them touching your real desktop: terminal-mac locks that risk inside a VM, where a mistake only affects the guest
  • Especially friendly to Mac users: Apple silicon plus the native virtualization framework — no heavyweight VM software, and you can watch and manage it from the terminal
  • MCP plus a skill, all in one: a single plugin connects Claude Code, and Cursor, VS Code and Codex work too — the agent’s observe-act-verify loop is ready to go
  • It shares a philosophy with today’s other pick, Claude-Cage: isolation first — one isolates Claude, the other isolates an entire Mac


评论(0)

查看评论列表

暂无评论


发表评论

表情 颜文字

插入代码