Antigravity Computer Use: How I Set Up Background Desktop Control With Cua Driver

Most AI coding agents hit a wall the moment a task leaves the terminal or browser. When I wanted Antigravity Computer Use to interact with native Windows software without hijacking my mouse and keyboard, I installed Cua Driver (cua-driver v0.73.0) as a local MCP server—and in this guide, I’ll walk you through every command, config edit, and live test I ran.

Quick Answer (In Short): You can add Antigravity Computer Use for free by installing the open-source cua-driver binary on Windows, macOS, or Linux and registering it inside Antigravity’s local mcp_config.json. It requires zero extra API keys, takes only a few megabytes of disk space, and controls native desktop apps in the background using UI Automation trees and screenshots without stealing your cursor.
Quick Diagnostic Guide
Antigravity Computer Use (Cua Driver MCP) Setup Hub
Compare local vs. Docker setup, review the 4-step Windows install, and check real limits before automating desktop apps.
Local Antigravity mcp_config.json
REQUIRED
Runs cua-driver.exe mcp directly on your Windows host with full access to UI Automation and D3D11 screen capture.
Zero API Keys: Antigravity’s built-in Gemini acts as the brain locally.
Background Mode: Defaults to delivery_mode: "background" without stealing your mouse.
Docker MCP Gateway Container
DOES NOT WORK
Linux Docker containers are isolated from your Windows desktop session and cannot inspect host windows or accessibility trees.
No Host GUI: Cannot reach Windows UI Automation or Graphics Capture.
Keep APIs in Docker: Reserve Docker MCP for YouTube, WordPress, and web APIs.
Driver Version
v0.73.0 (MIT)
Extra API Keys
Zero Needed
Default Delivery
Background UIA
Exposed Tools
50+ MCP Tools

Does Antigravity Have Computer Use Built In?

Antigravity does not ship with a native desktop GUI driver out of the box, but it supports full background computer use through the Model Context Protocol (MCP). By connecting Cua Driver (cua-driver mcp) directly to Antigravity's local MCP configuration, Gemini gains over 50 desktop and browser automation tools while your physical mouse and keyboard stay completely free.

See also  How to Use Gemini 4 Neon and Carbon in Antigravity With Your $10 Google AI Pro Credits

When I first read Google AI Studio's guide on Computer use with Gemini and Cua Driver, I assumed I would need a heavy virtual machine or a separate Gemini API key to make it work. After testing it on my Windows 11 machine, I found the opposite:

  • Zero extra API keys: When running locally inside Antigravity, the built-in Gemini model acts as the brain and cua-driver acts purely as the local hands. You only need a CUA_API_KEY if you opt into Cua's paid cloud runners, or a standalone GEMINI_API_KEY if you write your own Python or TypeScript loop outside Antigravity.
  • Tiny disk footprint: cua-driver is written in Rust (cua-driver-rs) and compiles down to a single lightweight executable. On my Windows machine, it took just a few megabytes in %LOCALAPPDATA%\Programs\Cua\cua-driver\bin (you only need gigabytes of storage if you spin up isolated Linux or macOS virtual machines via Cua Spaces).
  • No cursor hijacking: Traditional automation scripts yank your window to the foreground and move your physical pointer. Cua Driver defaults to delivery_mode: "background", reading the Windows UI Automation (UIA) tree and sending targeted actions behind the scenes.

Antigravity Local Config vs. Docker MCP Gateway: Which One Should You Pick?

You must add Antigravity Computer Use to your local mcp_config.json rather than running it inside a Docker MCP Gateway container. Because Docker containers are isolated from your host operating system's window manager, a containerized MCP server cannot see your Windows desktop apps, read UIA trees, or capture live screen pixels.

I normally route API-based MCP servers (like YouTube, WordPress, and SEO tools) through my Docker MCP Gateway to keep containers tidy. For desktop GUI control, however, the local host path is mandatory:

Setup Method Works for Desktop Apps? Why
Antigravity Local Config (mcp_config.json) Yes Runs cua-driver.exe directly on your Windows host with full access to UI Automation and Windows Graphics Capture (D3D11).
Docker MCP Gateway No Isolated inside a Linux container; cannot reach your host Windows desktop windows or accessibility tree.

Step 1: How to Install Cua Driver on Windows

Installing Cua Driver on Windows takes one PowerShell command and requires no administrator privileges. The official installer downloads the signed cua-driver-rs release, verifies its SHA-256 checksum, and adds the binary directory to your user PATH.

Here is the exact command I ran in PowerShell:

PowerShell Installer
irm https://cua.ai/driver/install.ps1 | iex

During installation, the script placed the binaries inside C:\Users\jovin\.cua-driver\packages\releases\0.73.0-x86_64-pc-windows-msvc\ and linked C:\Users\jovin\AppData\Local\Programs\Cua\cua-driver\bin to my PATH.

What Happened With Auto-Start and BitBlt During My Install

When the installer tried to register Windows logon auto-start (cua-driver autostart enable), it asked for elevated UAC permissions and skipped auto-start because I ran it from a standard shell. That is completely fine—Antigravity automatically launches cua-driver.exe mcp on demand whenever you start a session, so you do not need a background service running 24/7.

See also  Antigravity Browser Not Working? Pick the Right One of Its 3 Browsers

I also noticed one quirky error when running cua-driver test inside a sandboxed background terminal:

Detached Shell Output
Desktop screenshot failed: desktop capture: BitBlt failed: The handle is invalid. (0x80070006)

That error only happened because the background shell was detached from my interactive desktop session. Once Antigravity itself launched cua-driver mcp in my active Windows session, screen capture worked immediately.


Step 2: Verify Your Installation With cua-driver doctor

antigravity computer use

Before editing any config files, run cua-driver doctor and cua-driver mcp-config --client antigravity to confirm UI Automation is reachable and generate the exact JSON snippet. This step also installs the official cua-driver skill pack into Antigravity's skills folder so the agent knows how to batch actions and avoid stale element tokens.

I ran both commands together:

PowerShell Verification
cua-driver doctor
cua-driver mcp-config --client antigravity

Here is what cua-driver doctor confirmed on my machine:

  • binary: cua-driver 0.73.0 (x86_64-windows)
  • UI Automation: CoCreateInstance(CUIAutomation) succeeded
  • Antigravity Skill Pack: Automatically installed at C:\Users\jovin\.gemini\config\skills\cua-driver and C:\Users\jovin\.gemini\antigravity-cli\skills\cua-driver.

Step 3: Add Computer Use MCP to Antigravity mcp_config.json

Open C:\Users\jovin\.gemini\config\mcp_config.json (or ~/.gemini/config/mcp_config.json) and merge the cua-driver block into your existing mcpServers object. Once saved, reload Antigravity (Ctrl + Shift + P → Developer: Reload Window) so the IDE picks up the new MCP server.

Here is the exact block I added to my mcp_config.json:

mcp_config.json
{
  "mcpServers": {
    "cua-driver": {
      "command": "C:\\Users\\jovin\\AppData\\Local\\Programs\\Cua\\cua-driver\\bin\\cua-driver.exe",
      "args": [
        "mcp"
      ],
      "disabled": false
    }
  }
}

Troubleshooting: Why Didn't Tools Appear Right Away?

If you edit mcp_config.json mid-conversation, your current chat session may still hold the old tool list until Antigravity reloads the window or starts a fresh turn or chat. After I reloaded Antigravity, cua-driver appeared in my active MCP server list with over 50 tools (list_windows, launch_app, get_window_state, type_text, click, run_steps, run_script, and more).


Step 4: Live Test — Running health_report and Background Notepad

To verify that Antigravity Computer Use works end-to-end without touching your cursor, run health_report, list_windows, and a background launch_app + type_text test. Below are the real results from my first live run on Windows 11.

1. Checking Driver Health (health_report)

Calling health_report through cua-driver returned an ok status across every Windows capability:

  • Driver: cua-driver 0.73.0 on win32 — ok
  • Session: MCP session is active
  • Accessibility: UIAutomation is reachable; UI tree walking will succeed
  • Screen Capture: D3D11 device reachable; Windows Graphics Capture will succeed

2. Listing Live Desktop Windows (list_windows)

When I called list_windows(on_screen_only=true), Antigravity saw all 9 open windows on my desktop—including Chrome, Claude, Settings, and RankerX—without bringing any of them to the front.

3. Launching and Typing Into Notepad in the Background

Next, I asked Antigravity to launch Windows Notepad in the background (launch_app), inspect its UIA tree (get_window_state), and type text directly into the editor element (s00000001:0) using delivery_mode: "background".

Antigravity Computer Use MCP workflow showing blank Notepad launched in background

Windows Notepad launched quietly in the background by Cua Driver without stealing window focus.

See also  ElevenLabs Alternative Free : How I Cloned My Voice for $0 with Drama 3 and Modal

Notepad opened quietly behind my active window without stealing focus. Antigravity read its UI Automation tree, found [0] Document "Text editor", and wrote two lines of text into it while my mouse and keyboard stayed free:

Antigravity Computer Use MCP typed text in Notepad in background

Cua Driver typing directly into Notepad's Document element in background mode while keeping the cursor free.


What Can You Automate With Antigravity Computer Use?

Antigravity Computer Use unlocks automation for any native desktop software that lacks a public API. While I still prefer dedicated APIs or the built-in Browser Subagent for pure web tasks, cua-driver bridges the gap between local files, Windows apps, and desktop workflows.

Workflow Best Tool to Use Why
Native Windows Apps (No API) Cua Driver (cua-driver MCP) Reads UIA trees and clicks or types in the background across desktop software like RankerX, Camtasia, or Excel.
Pure Web Scraping / Visual Web UI Browser Subagent / Chrome DevTools Purpose-built for DOM interactions and fast headless checks.
YouTube / WordPress / API Services Dedicated MCPs (youtube_manage, etc.) Direct API calls are faster and more reliable than GUI clicks.

Honest Limits to Keep in Mind

  • Logins, 2FA, and CAPTCHAs: Antigravity Computer Use cannot bypass CAPTCHAs or solve two-factor authentication prompts on its own. Sign in once manually in your browser or desktop app before automating workflows around it.
  • Occasional Foreground Escalation: Most modern WinUI3/UWP apps (like Windows 11 Notepad and Calculator) accept background UIA actions cleanly. However, some Electron or Chromium windows drop background events and return background_unavailable, meaning the agent will ask or briefly escalate to delivery_mode: "foreground" for that specific click.
  • Trajectory Recording vs. Video: cua-driver's built-in start_recording saves turn-by-turn screenshots for debugging, not a smooth MP4 screen recording. If you want a tutorial video, pair it with ffmpeg (gdigrab).

Frequently Asked Questions About Antigravity Computer Use

Does Antigravity Computer Use require a paid API key?

No. When you run cua-driver as a local MCP server inside Antigravity, it is 100% free and open-source (MIT license). Antigravity's built-in Gemini model handles the reasoning, and cua-driver only executes local UI actions.

How much disk space does Cua Driver take on Windows?

The standalone cua-driver.exe binary is written in Rust and takes only a few megabytes on your C: drive. You only need several gigabytes of space if you separately set up virtualized Cua Spaces (Linux or macOS VMs).

Should I install Cua Driver in Docker MCP Gateway or Antigravity local config?

Install it in Antigravity's local mcp_config.json. A Docker container is isolated from your Windows desktop and cannot see your open windows or UI Automation tree.

Will Antigravity take over my mouse and keyboard?

By default, no. Cua Driver uses delivery_mode: "background" to interact with windows via Windows UI Automation and targeted messages so you can keep working normally.

If You Like What You Are Seeing😍Share This With Your Friends🥰 ⬇️
Jovin George
Jovin George

Jovin George is a digital marketing enthusiast with a decade of experience in creating and optimizing content for various platforms and audiences. He loves exploring new digital marketing trends and using new tools to automate marketing tasks and save time and money. He is also fascinated by AI technology and how it can transform text into engaging videos, images, music, and more. He is always on the lookout for the latest AI tools to increase his productivity and deliver captivating and compelling storytelling. He hopes to share his insights and knowledge with you.😊 Check this if you like to know more about our editorial process for Softreviewed .