过去的计算机操作 Agent 往往依赖浏览器插件、应用 API 或人工编写的专用工具。遇到 Final Cut、微信、IDE 或企业内部软件,又要重新适配。
Browser Use 团队最近开源了 macOS Harness,把 Agent 的执行范围从浏览器扩展到真实 Mac 桌面:模型负责理解任务并生成动作,Harness 负责把动作映射到键盘、鼠标、窗口、应用、文件系统和 Shell。
frame = mac.see("Spotify")
mac.key("cmd+k", app="Spotify")
mac.type("Alessia Cara", app="Spotify")
mac.click(640, 420, app="Spotify")
item = mac.ax.at(640, 420, app="Spotify")
mac.script('tell application "Spotify" to play')
核心原语是 see、key、type、click、ax 和 script:
README 的定位是:The simplest, thinnest harness that gives an LLM complete freedom to control a Mac. 它不是任务 Agent,也不是完整框架,而是模型与真实电脑之间的薄基础层。
Browser Use 原本专注真实 Chrome 浏览器控制;macOS Harness 进一步把浏览器放回完整桌面环境,让 Agent 可以跨应用完成「读邮件→下载附件→修改文档→运行代码→上传文件」这类任务。
官方仓库还提供 browser、Path、subprocess 等能力,并通过 Browser Harness 连接真实登录态浏览器。
官方建议交给 Codex 或 Claude Code 执行:
Install or upgrade macOS Harness from https://github.com/browser-use/macos-harness with uv using Python 3.12. Register the skill printed by `macos-harness skill`, then run `macos-harness doctor`.
macos-harness doctor 会检查实际需要的 macOS 权限。Harness 不会激活或抬升目标窗口,也不会移动用户真实鼠标。
doctor 检查macos-harness telemetry disable| 项 | 值 |
|---|---|
| macOS Harness | ⭐781 / Fork 52 / Python / MIT |
| 创建 / 最近推送 | 2026-08-17 / 2026-08-17 |
| Browser Use 父项目 | ⭐110,604 / Fork 12,172 / Python / MIT |