Skip to main content

Faster Mac Use (fmu)

PyPI Downloads GitHub stars Glama Score Python macOS

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.

Faster Mac Use 3-Cursor Parallel Swarm vs @playwright/mcp Live Token Counter

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

fmu replay of example.com and Calculator 7 × 6 with @uid bounds and latency HUD

Why faster-mac-use?

Existing computer-use stacks force an awkward choice:

  • Screenshot loops (computer tools) 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_repl handle 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 144 DevToolsActivePort modal 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-text contenteditable surfaces without touching the clipboard, and upload files via DOM.setFileInputFiles without opening NSOpenPanel.
  • Sub-millisecond macOS Accessibility & 0-vision-token OCR (fmu_ax.swift, mac_engine.py): A warm universal2 Swift daemon (/tmp/fmu-ax.sock) caches AXUIElement handles and subscribes to AXObserver dirty-subtree notifications on a dedicated CFRunLoop thread so follow-up diffs return in under 1 ms. Built-in Apple Silicon Vision.framework OCR (await tab.ocr(), await app.ocr()) turns <canvas> and custom window text into clickable @ocr1..@ocrN targets at zero image tokens, alongside an optional non-activating floating Live View PiP monitor and menu bar Stop / Resume (fmu --live-view on|off, fmu --stop).
  • Stateful Python/JS REPL, WebMCP macros & context compaction (cua_runtime.py): Exposes a single cua MCP tool supporting stateful REPL scripts (cua.createBrowserTab, cua.getTab, cua.getApp), declarative steps batches, 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 titled Harness · project (or sessionLabel when passed from multi-conversation MCP hosts).
  • Safe tab cleanup: cua.closeMyTabs({keep: [...]}) and {"closeAgentTabs": true} close only tabs opened by that session. Calling tab.close() on a user-opened tab detaches without closing the user's tab unless force=True is 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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faster-mac-use 0.5.7
File Size Uploaded Provenance Actions
faster_mac_use-0.5.7.tar.gz 270.5 kB With provenance Details for faster_mac_use-0.5.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for faster-mac-use 0.5.7
File Interpreter ABI Platform Actions
faster_mac_use-0.5.7-py3-none-any.whl Python 3 none any Details for faster_mac_use-0.5.7-py3-none-any.whl

Total release size: 475.6 kB

Release files / faster_mac_use-0.5.7.tar.gz

Download URL faster_mac_use-0.5.7.tar.gz
Size 270.5 kB
Tags Source
SHA-256 checksum
How to use checksums
92ad0c24bb97da1596cd0a4c9afa70fa1476853ea67efddfe926972d9167efb1
BLAKE2b-256 checksum
How to use checksums
57e9e02a9f84a8cc6c4addefed3e504854fb579c64034999d023180c9fefbdef
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 log

Release files / faster_mac_use-0.5.7-py3-none-any.whl

Download URL faster_mac_use-0.5.7-py3-none-any.whl
Size 205.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67908f270591d7462265d3c3c7207d6b38ab47dc1ba34aeacae10880c3ce47c4
BLAKE2b-256 checksum
How to use checksums
984ff4eb7a618c0c8746593d5ec19c7e9012c9a5c812a702300cf18b6ad78c4f
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 log

Security for faster-mac-use 0.5.7

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.

Select from 2 files

Attestation for faster_mac_use-0.5.7.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page