Drive any macOS app in the background without stealing the cursor

Hi HN, Francesco from Cua here. I hacked this project together last weekend, inspired by the Codex Computer-Use release and lessons learned from deploying GUI-operating agents for our customers.The main problem: when a UI automation process controls a desktop app today, it usually takes over the human’s session. Your cursor moves, keyboard focus gets stolen, windows jump to the front, and you have to stop working until the agent is done. That is why we have historically avoided encouraging users to run these processes directly on their host machine, instead relying on VMs or GUI containers for concurrency and background execution.But computer-use - the tools we give agents to operate computers like humans - does not scale cleanly that way. As models get smarter, agents need to share hosts safely, run in the background, and avoid collisions with the human or other agents using the same machine.We realized macOS has no first-class API for "drive this app without touching the cursor". CGEventPost routes through the hardware input stream, so it moves your cursor. CGEvent.postToPid avoids the cursor warp, but Chromium treats those events as untrusted and silently drops clicks at the renderer boundary. Activating the target app first raises the window and pulls focus, defeating the point of background execution.Cua Driver is our attempt at a real fix: a background computer-use driver for macOS that lets an agent click, type, scroll, and read native apps while your cursor, frontmost app, and Space stay where they are. The default interface is a CLI, so it is easy to script or call from any coding agent shell.Try it on macOS 14+:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/cua-d...)"The first internal use case was delegated demo recording. We ask Claude Code to drive an app while 'cua-driver recording start' captures the trajectory, screenshots, actions, and click

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

72

out of 100

Verdict

VALIDATE

high confidence

Competition

No competitor data yet

Trend

No signal yet

A macOS background automation driver that lets AI agents control apps without hijacking the user's cursor, keyboard, or window focus.

The pain

Current UI automation tools (CGEventPost, etc.) either steal cursor control and interrupt human work, or get silently rejected by security-conscious apps like Chromium. Teams running multiple agents or mixing human+agent work on the same machine face constant collisions. The workaround, VMs or containers, doesn't scale as agents become more capable and need to share resources.

The gap

macOS lacks a native API for untrusted, background-safe app control. Existing solutions force a choice: disrupt the user or get blocked by the app. Cua Driver fills this by routing events directly to target processes while leaving the user's session untouched.

Build angle

Start with the CLI tool and lock in early adopters in the AI agent space (Claude Code, Anthropic, other model providers). Build a small SDK for agent frameworks. Measure: time-to-completion for delegated tasks, concurrent agent density per machine, user friction reduction. Expand to Windows once macOS traction is clear. The real moat is becoming the standard plumbing layer for background automation, not a consumer product, but infrastructure.

Strengths

  • Solves a real, specific technical problem that existing APIs don't address
  • Timing is excellent, AI agents are moving from labs to production, and this removes a major deployment friction point
  • Low barrier to adoption: CLI interface, easy to integrate into agent shells and scripts
  • Founder has domain expertise (deployed GUI agents at scale, understands the pain firsthand)
  • macOS-first positioning is smart, smaller market but higher willingness to pay and fewer competitors
  • Defensible: requires deep OS-level knowledge and likely needs to stay close to Apple's API changes

Risks

  • Apple could block or restrict the underlying APIs at any OS update, no guarantee of long-term stability
  • Market size is narrow: only relevant to teams running AI agents on macOS. Windows TAM is much larger but requires a rewrite
  • Monetization path unclear: is this a $10/month tool, a $50k/year enterprise product, or a free layer under a larger platform?
  • Competitive response: if this gains traction, Anthropic or OpenAI could build equivalent functionality into their own agent products
  • Security and liability: background automation without user visibility could be misused; regulatory or trust issues could emerge
  • Adoption depends on agent frameworks integrating it, requires partnership work and doesn't have organic pull

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Drive any macOS app in the background without stealing the cursor”.

Open FlyBot