Faster Mac Use (fmu)
fmu lets AI agents drive your logged-in Chrome tabs and native macOS apps in the background. Your mouse stays where you left it, your active window keeps focus, Chrome 144 shows zero remote-debugging popups, and each step returns a few hundred tokens of +/~/- @uid text diffs instead of a screenshot.
Quickstart
Run 7 × 6 = in macOS Calculator right now with uv (zero install, zero focus change):
uvx --from faster-mac-use fmu '{
"surface": "app",
"app": "Calculator",
"steps": [
{"op": "key", "name": "escape"},
{"op": "click", "name": "7"},
{"op": "click", "name": "Multiply"},
{"op": "click", "name": "6"},
{"op": "click", "name": "Equals"}
]
}'
Add fmu to Claude Code or Codex in one command:
claude mcp add faster-mac-use -- uvx --from faster-mac-use fmu mcp
codex mcp add faster-mac-use -- uvx --from faster-mac-use fmu mcp
Or drop it into Cursor, Windsurf, Antigravity, or any MCP client config:
{
"mcpServers": {
"faster-mac-use": { "command": "uvx", "args": ["--from", "faster-mac-use", "fmu", "mcp"] }
}
}
Installing from uvx or PyPI? Star lifan-builds/faster-mac-use on GitHub so you can track releases and help other Mac agent builders find it.
Benchmarks
Cumulative input tokens and engine time across five workloads. Raw JSON, per-turn traces, and the runner live in benchmarks/ and the benchmark report; rerun them locally with PYTHONPATH=src python3 benchmarks/run_benchmarks.py or inspect every turn in the interactive benchmark explorer.
| Workload | faster-mac-use (Cumulative Tokens / Engine Time) |
OpenAI Codex cua_repl Ref |
@playwright/mcp / Stacked MCPs |
Anthropic Pixel CUA |
|---|---|---|---|---|
| A. Enterprise SaaS Console (10 ops) | 1,290 tok / 94 ms (Native WebMCP) 1,290 tok / 97 ms (Virtual WebMCP Macro) 2,024 tok / 133 ms (DOM Diff) |
5,732 tok / 359 ms | 231,125 tok / 1,850 ms | 83,215 tok / 3,400 ms |
| B. macOS Native Calculator (11 ops) | 1,264 tok / 395 ms (< 1 ms AXObserver diff) |
1,502 tok / 554 ms | 48,477 tok / 12,718 ms (ocu) |
n/a |
| C. Hybrid Web + macOS (14 ops) | 2,179 tok / 335 ms | 2,437 tok / 568 ms | 129,010 tok / 3,200 ms | n/a |
| D. 3-Agent Multi-Cursor Swarm (25 ops) | 1,510 tok / 326 ms (2 turns) | 15,923 tok / 1,122 ms (6 turns) | 293,950 tok / 4,850 ms | 430,800 tok / 7,600 ms |
| E. Long-Horizon 30-Op + Window OCR | 4,584 tok / 494 ms (0 vision tok) | 8,355 tok / 942 ms | 400,725 tok / 6,100 ms | 620,535 tok / 9,200 ms |
During benchmark runs, BackgroundIntrusionGuard polls CoreGraphics cursor coordinates and lsappinfo front at 50 Hz and verifies 0.0 px of cursor movement and 0 focus changes.
Replay what your agent did
Set FMU_TRACE to record any CLI or MCP session, then render a self-contained HTML player or looping SVG for pull requests and bug reports. Each frame draws @u/@a element bounds, colors added, changed, and removed elements, and shows per-step latency and token counts.
export FMU_TRACE=~/fmu-run.jsonl
# ... let your agent work ...
fmu replay ~/fmu-run.jsonl # -> ~/fmu-run.html (left/right arrows to step, space to play)
fmu replay ~/fmu-run.jsonl -o run.svg # looping animated SVG
fmu replay ~/.fmu/logs/perf-2026-11-25.jsonl # perf logs render as a latency timeline
Why faster-mac-use?
Existing computer-use stacks force an awkward choice:
- Screenshot loops (
computertools) hijack your physical cursor, bring windows to the front, and burn 40k to 80k tokens across 10 to 30 turns. - Browser and accessibility MCPs (
@playwright/mcp,chrome-devtools-mcp) spend 4,000 to 12,500 tokens on tool schemas before the first call and dump full ARIA trees after every click. - Single-session REPLs like OpenAI Codex's
cua_replhandle one agent well, serialize multi-agent work, and drop back to screenshots on custom-drawn macOS views and<canvas>surfaces.
fmu builds on the single-tool cua_repl model and extends it across both logged-in Chrome and macOS Accessibility:
- Logged-in Chrome without popups (
browser_engine.py,extension/background.js): An outbound MV3 extension bridge (ws://127.0.0.1:19222/ext) drives unfocused tabs inside per-session"Agent"tab groups without triggering Chrome 144DevToolsActivePortmodal prompts. For public or local dev pages,mode: "headless"runs in a background Playwright worker with focus and lifecycle emulation. Agents can also list and toggle Chrome extensions (cua.listExtensions(),cua.setExtensionEnabled()), fill cross-origin payment/auth iframes via trusted CDP input, edit rich-textcontenteditablesurfaces without touching the clipboard, and upload files viaDOM.setFileInputFileswithout openingNSOpenPanel. - Sub-millisecond macOS Accessibility & 0-vision-token OCR (
fmu_ax.swift,mac_engine.py): A warm universal2 Swift daemon (/tmp/fmu-ax.sock) cachesAXUIElementhandles and subscribes toAXObserverdirty-subtree notifications on a dedicatedCFRunLoopthread so follow-up diffs return in under 1 ms. Built-in Apple SiliconVision.frameworkOCR (await tab.ocr(),await app.ocr()) turns<canvas>and custom window text into clickable@ocr1..@ocrNtargets at zero image tokens, alongside an optional non-activating floating Live View PiP monitor and menu barStop/Resume(fmu --live-view on|off,fmu --stop). - Stateful Python/JS REPL, WebMCP macros & context compaction (
cua_runtime.py): Exposes a singlecuaMCP tool supporting stateful REPL scripts (cua.createBrowserTab,cua.getTab,cua.getApp), declarativestepsbatches, reusable per-domain Virtual WebMCP macros (~/.fmu/macros/), concurrent swarms ({"parallel": [...]}), and 18-token tombstones that mask superseded snapshots so long runs stay linear in tokens.
Install and CLI usage
Install fmu permanently with uv, pip, or Homebrew (first macOS run compiles the universal2 fmu-ax helper automatically):
uv tool install faster-mac-use # or: pip install faster-mac-use
# From source: git clone https://github.com/lifan-builds/faster-mac-use.git && cd faster-mac-use && pip install -e .
# Homebrew: brew install --Formula ./Formula/faster-mac-use.rb
Once installed globally, you can point "command" in mcpServers directly to "fmu" with "args": ["mcp"], or invoke fmu from the shell:
# Stateful cua REPL: open a tab, record a reusable WebMCP macro, and close agent-opened tabs when done
fmu '{"code":"tab = cua.createBrowserTab(\"chrome\", \"https://example.com\", sessionLabel=\"Docs\"); tab.saveMacro(\"more_info\", [{\"op\": \"click\", \"uid\": \"More information\"}], \"Open More info\"); cua.closeMyTabs()"}'
# Multi-cursor parallel execution across Chrome tabs and native macOS apps
fmu '{"parallel":[{"agent":"web-1","code":"t = cua.createBrowserTab(\"headless\", \"https://example.com\"); t.move(\"More information\")"},{"agent":"mac-1","code":"a = cua.getApp(\"Calculator\"); a.pressKey(\"escape\").click(\"8\")"}]}'
# Inspect 7-day p50/p95/p99 latency, sub-phase breakdowns, and token telemetry (~/.fmu/logs)
fmu --perf 7
Multiple agents on one Mac
The warm daemon reads each caller's PID over the Unix socket (LOCAL_PEERPID) and walks up to the owning harness (Claude Code, Codex, Devin, Antigravity, Gemini, Cursor):
- Isolated tab namespaces and groups: Sessions get distinct IDs (
devin1:t1,codex1:t1) and color-coded Chrome tab groups titledHarness · project(orsessionLabelwhen passed from multi-conversation MCP hosts). - Safe tab cleanup:
cua.closeMyTabs({keep: [...]})and{"closeAgentTabs": true}close only tabs opened by that session. Callingtab.close()on a user-opened tab detaches without closing the user's tab unlessforce=Trueis passed.
Tests and benchmarks
python3 tests/test_fmu.py
PYTHONPATH=src python3 benchmarks/run_benchmarks.py
License
Open source under AGPL-3.0-only, with the Section 7 attribution terms in ATTRIBUTION.md. Copies and modified versions must keep this credit in their README and --version or About output, mark their changes, and may not use the Faster Mac Use name:
Based on Faster Mac Use by lifan-builds (https://github.com/lifan-builds/faster-mac-use)
Copyright © 2026 lifan-builds. Pull requests are welcome under CONTRIBUTING.md with a one-time CLA. For licensing outside AGPL, open an issue.
Metadata
Release files for faster-mac-use 0.5.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| faster_mac_use-0.5.6.tar.gz | 258.1 kB | With provenance | Details for faster_mac_use-0.5.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| faster_mac_use-0.5.6-py3-none-any.whl | Python 3 | none | any | Details for faster_mac_use-0.5.6-py3-none-any.whl |
Total release size: 462.8 kB
Release files / faster_mac_use-0.5.6.tar.gz
| Download URL | faster_mac_use-0.5.6.tar.gz |
|---|---|
| Size | 258.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
260694407d833628b24ffa2bc7f850a705995667e6df5acbf23f804b46c838b3
|
|
BLAKE2b-256 checksum How to use checksums |
213a9d0e06be28e28c93497ae4ee9e784afaaf27a358ffa42e80762ac5b483dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / faster_mac_use-0.5.6-py3-none-any.whl
| Download URL | faster_mac_use-0.5.6-py3-none-any.whl |
|---|---|
| Size | 204.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6fb3fccdf257e8e25e86e8cb9bcb0c56d7786036f6439de4195d7c70c84fa2d
|
|
BLAKE2b-256 checksum How to use checksums |
ddc3d6835ee980fe45b86fdf3c839176bb26e03a8282658fca7631eb3b0bae28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for faster-mac-use 0.5.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for faster_mac_use-0.5.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.