<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Cua on TorchTree</title>
        <link>https://torchtree.com/en/tags/cua/</link>
        <description>Recent content in Cua on TorchTree</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <copyright>TorchTree Co., Ltd.</copyright>
        <lastBuildDate>Wed, 02 Dec 2026 09:35:38 +0800</lastBuildDate><atom:link href="https://torchtree.com/en/tags/cua/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>cua: A Desktop Automation Toolkit for AI Agents</title>
        <link>https://torchtree.com/en/post/cua-computer-use/</link>
        <pubDate>Wed, 02 Dec 2026 09:12:24 +0800</pubDate>
        
        <guid>https://torchtree.com/en/post/cua-computer-use/</guid>
        <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/trycua/cua&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;cua&lt;/a&gt; provides computer interaction tools and execution environments for AI agents. Agents such as Claude Code and Codex can use its tools to inspect applications, click controls, and enter text. This capability, usually called &lt;strong&gt;computer use&lt;/strong&gt;, covers work that requires a graphical interface, including applications without a usable API.&lt;/p&gt;
&lt;p&gt;If you already use a coding agent, start with Cua Driver to add desktop tools. Consider Spaces or Lume when a task needs another environment. Understanding that division helps you choose a starting point.&lt;/p&gt;
&lt;h2 id=&#34;extending-an-agent-beyond-the-terminal&#34;&gt;Extending an agent beyond the terminal
&lt;/h2&gt;&lt;p&gt;Consider a hypothetical task: read a customer name, order number, and amount from a CSV file and save an order in a desktop business application. An agent can use a script to read the file and validate the amount, then use cua to locate the three fields, enter the values, and click Save. The task is complete when the order list contains the new record with the matching order number and amount.&lt;/p&gt;
&lt;p&gt;The model chooses the next step, the agent&amp;rsquo;s execution program manages the loop, and cua provides tools and environments. Results depend on all three, along with the target application and the checks used to establish completion.&lt;/p&gt;
&lt;p&gt;For managing terminals and agent sessions together, see our &lt;a class=&#34;link&#34; href=&#34;https://torchtree.com/en/post/herdr-coding-agent-workspace/&#34; &gt;Herdr workspace overview&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;choose-a-component-by-the-missing-capability&#34;&gt;Choose a component by the missing capability
&lt;/h2&gt;&lt;p&gt;Desktop interaction and execution environments are the main choices for everyday use. Development and evaluation have additional tools. Here, a sandbox means a task environment implemented using a container or virtual machine. CLI means command-line interface; SDK means software development kit.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
      &lt;tr&gt;
          &lt;th&gt;Component&lt;/th&gt;
          &lt;th&gt;Role&lt;/th&gt;
          &lt;th&gt;Typical starting point&lt;/th&gt;
      &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
      &lt;tr&gt;
          &lt;td&gt;Cua Driver&lt;/td&gt;
          &lt;td&gt;Inspect and operate native apps and browsers through CLI, MCP, or SDK integrations&lt;/td&gt;
          &lt;td&gt;Add desktop tools to an existing agent&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Cua Spaces&lt;/td&gt;
          &lt;td&gt;Manage computers and working environments, with desktop viewing, sharing, and agent connections&lt;/td&gt;
          &lt;td&gt;Organize where agent tasks run&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Lume&lt;/td&gt;
          &lt;td&gt;Manage macOS and Linux virtual machines on Apple Silicon&lt;/td&gt;
          &lt;td&gt;Create and operate local VMs&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;cua SDK and CLI&lt;/td&gt;
          &lt;td&gt;Manage sandboxes and computer connections programmatically&lt;/td&gt;
          &lt;td&gt;Prepare environments from code or scripts&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Cua Bench&lt;/td&gt;
          &lt;td&gt;Define tasks, evaluate outcomes, and retain trajectories&lt;/td&gt;
          &lt;td&gt;Measure performance on specified tasks&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;MCP&lt;/strong&gt;, the Model Context Protocol, connects agents to external tools. Driver&amp;rsquo;s MCP interface suits an existing agent; SDK integration suits an application that needs computer interaction within its own program.&lt;/p&gt;
&lt;h2 id=&#34;how-desktop-interaction-works&#34;&gt;How desktop interaction works
&lt;/h2&gt;&lt;p&gt;Driver combines an &lt;strong&gt;accessibility tree&lt;/strong&gt; with screenshots. The tree describes controls through roles, labels, and actionable elements. Images supply layout and visual content that the tree may omit. An agent can therefore address a named field or use image coordinates when necessary. Browser tools also provide access to the DOM, the document structure of a web page.&lt;/p&gt;
&lt;pre class=&#34;mermaid&#34;&gt;flowchart TD
    A[User task] --&amp;gt; B[Inspect app state]
    B --&amp;gt; C[Agent chooses action]
    C --&amp;gt; D[Driver operates app]
    D --&amp;gt; E{Check task outcome}
    E --&amp;gt;|More work| B
    E --&amp;gt;|Goal reached| F[Report result]&lt;/pre&gt;
&lt;p&gt;In the order example, an accessibility label such as “Order number” helps identify the field, while a screenshot supplies its visual context. After clicking Save, the agent reads the order list again to check the new record. Sending input and saving data are separate stages; the later observation establishes that the application applied the change.&lt;/p&gt;
&lt;h3 id=&#34;background-input-has-platform-boundaries&#34;&gt;Background input has platform boundaries
&lt;/h3&gt;&lt;p&gt;Driver prefers background actions that preserve the user&amp;rsquo;s active application and real pointer. Support varies by operating system, application framework, and gesture. Some actions require foreground interaction or a browser-specific route.&lt;/p&gt;
&lt;p&gt;macOS requires Accessibility and Screen Recording permissions. Windows target privileges can affect access. On Linux, X11, XWayland, and individual Wayland compositors have different capabilities. Check the &lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/concepts/platform-support&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;platform support table&lt;/a&gt;, then validate the particular application and actions you intend to use.&lt;/p&gt;
&lt;h2 id=&#34;decide-where-the-task-runs&#34;&gt;Decide where the task runs
&lt;/h2&gt;&lt;p&gt;Driver used on your current desktop interacts with that computer&amp;rsquo;s applications, files, and signed-in sessions. A separate task environment requires an additional choice.&lt;/p&gt;
&lt;p&gt;Spaces manages environments on this computer, another computer you own, or your own cloud account. Cloud VMs use resources in your own account and are billed by the corresponding cloud provider.&lt;/p&gt;
&lt;p&gt;Two options are relevant to everyday use: expose the current desktop with its existing applications and sessions, or create another container or VM with the software and files required for a task. Check which environment is selected before running the task. The &lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/spaces/concepts/how-spaces-works&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Spaces architecture documentation&lt;/a&gt; explains these arrangements.&lt;/p&gt;
&lt;p&gt;Lume focuses on local VM management using Apple&amp;rsquo;s Virtualization.framework. Its macOS quickstart requires an Apple Silicon Mac running macOS 13 or later, 8 GB of free memory, and approximately 50 GB of free disk space. Start there for direct VM management; consider Spaces when you also want its desktop viewing, sharing, and agent connection interface.&lt;/p&gt;
&lt;h2 id=&#34;development-and-evaluation&#34;&gt;Development and evaluation
&lt;/h2&gt;&lt;p&gt;The cua SDK lets a program create environments, execute commands, and read results. The CLI exposes commands for terminals and scripts. A program can prepare an environment and test data before invoking its own agent harness.&lt;/p&gt;
&lt;p&gt;For example, a form-entry test can create an environment, supply test data, run an agent, and inspect the result. Cua Bench supplies task setup, a reference solution, and an evaluator, along with logs and trajectories. Running the reference solution first helps establish that the task and environment work before assessing an agent.&lt;/p&gt;
&lt;h2 id=&#34;a-practical-first-step&#34;&gt;A practical first step
&lt;/h2&gt;&lt;p&gt;&lt;strong&gt;To operate applications on your existing computer, start with Driver.&lt;/strong&gt; Its official quickstart uses a calculator task: compute &lt;code&gt;6 × 7&lt;/code&gt; and read &lt;code&gt;42&lt;/code&gt; from the application. This checks connection, permissions, input, and observation together; inspect the calculator display and the result the agent reads from it.&lt;/p&gt;
&lt;p&gt;The installation and verification steps below cover macOS 14+, Windows 10/11, and qualifying 64-bit Linux desktops.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For managing execution environments, start with Spaces.&lt;/strong&gt; Its current quickstart lists macOS 26+, Windows preview, and Ubuntu 24.04. You can connect an existing computer before creating another environment. Additional macOS VMs require Apple Silicon; Linux Spaces require an appropriate runtime, such as a container engine. Check the &lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/spaces/quickstart&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Spaces prerequisites&lt;/a&gt; for your chosen environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For programmatic environment management or performance measurement, explore the SDK or Bench respectively.&lt;/strong&gt; Define the input, target outcome, and pass condition first. My recommendation is to retain APIs or scripts for steps that already have stable programmatic interfaces, using desktop interaction where it is needed. This makes failures and results easier to inspect.&lt;/p&gt;
&lt;h2 id=&#34;install-cua-driver-and-connect-your-agent&#34;&gt;Install Cua Driver and connect your agent
&lt;/h2&gt;&lt;p&gt;Run these steps &lt;strong&gt;on the computer to be controlled, in its signed-in desktop session&lt;/strong&gt;. This installs standalone Cua Driver. You need a local agent supporting MCP or skills and an installed calculator. The Linux quickstart requires x86_64 or ARM64, X11 or XWayland, and AT-SPI 2; check platform support first for native Wayland. An SSH-only server without a desktop cannot perform this verification.&lt;/p&gt;
&lt;p&gt;Follow the steps yourself, or click &lt;strong&gt;Copy prompt&lt;/strong&gt; below and paste it into your local agent&amp;rsquo;s conversation input. The agent needs web access, a terminal, and permission to change the selected client&amp;rsquo;s configuration. macOS privacy grants usually require your participation in System Settings. Newly connected tools may require a new agent session.&lt;/p&gt;
&lt;section class=&#34;agent-guide&#34; aria-labelledby=&#34;agent-guide-title&#34;&gt;
            &lt;div class=&#34;agent-guide-heading&#34;&gt;
                &lt;h2 id=&#34;agent-guide-title&#34;&gt;Let an agent install Cua Driver&lt;/h2&gt;
                &lt;button type=&#34;button&#34; class=&#34;agent-guide-copy&#34; data-copied=&#34;Copied&#34; data-failed=&#34;Copy failed. Select and copy the text below.&#34; hidden&gt;Copy prompt&lt;/button&gt;
            &lt;/div&gt;
            &lt;p&gt;Click “Copy prompt,” then paste it into your local agent’s chat input to have it read this guide and follow the steps.&lt;/p&gt;
            &lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;agent-guide-prompt&#34;&gt;read https://torchtree.com/en/post/cua-computer-use/
Follow this article&amp;#39;s installation steps and execution appendix to install standalone Cua Driver and connect my chosen agent. Inspect the environment and existing configuration, explain changes and obtain authorization, then preserve existing settings while applying them. Verify permissions, service, client tools, and 6 × 7 in the calculator UI. Provide manual steps and a continuation prompt when authorization or a new session is needed, and report incomplete items.&lt;/code&gt;&lt;/pre&gt;
            &lt;p class=&#34;agent-guide-status&#34; role=&#34;status&#34; aria-live=&#34;polite&#34;&gt;&lt;/p&gt;
        &lt;/section&gt;

&lt;h3 id=&#34;1-inspect-the-existing-installation&#34;&gt;1. Inspect the existing installation
&lt;/h3&gt;&lt;p&gt;In a macOS or Linux terminal:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;uname -s
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;uname -m
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;command&lt;/span&gt; -v cua-driver
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In Windows PowerShell:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;no&#34;&gt;System.Environment&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;OSVersion&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;py&#34;&gt;VersionString&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;$env:PROCESSOR_ARCHITECTURE&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;Get-Command&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;cua-driver&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-ErrorAction&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;SilentlyContinue&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If found, run &lt;code&gt;cua-driver --version&lt;/code&gt;, &lt;code&gt;cua-driver status&lt;/code&gt;, and &lt;code&gt;cua-driver doctor&lt;/code&gt;; record the executable path, version, and diagnostics. Reuse a working installation and proceed to connection and verification. Preserve the entry point of a Driver managed by Spaces or another application. Install only if it is missing. Read diagnostic warnings as well as the exit status.&lt;/p&gt;
&lt;h3 id=&#34;2-install-and-grant-desktop-access&#34;&gt;2. Install and grant desktop access
&lt;/h3&gt;&lt;p&gt;The installer downloads and executes code, installs software, adjusts the command search path, and may register a background service or startup entry. Confirm the target and these changes first. The following switches skip automatic client connections and tests so you can connect only the chosen agent afterwards.&lt;/p&gt;
&lt;p&gt;macOS or Linux:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nb&#34;&gt;set&lt;/span&gt; -eu
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nv&#34;&gt;driver_installer&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;$(&lt;/span&gt;mktemp &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;${&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;TMPDIR&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;:-&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;/tmp&lt;/span&gt;&lt;span class=&#34;si&#34;&gt;}&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/cua-driver-install.XXXXXX&amp;#34;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;)&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nb&#34;&gt;trap&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;rm -f &amp;#34;$driver_installer&amp;#34;&amp;#39;&lt;/span&gt; EXIT
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  curl -fsSL https://cua.ai/driver/install.sh -o &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$driver_installer&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  /bin/bash &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$driver_installer&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt; --no-connect --no-test
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Windows PowerShell:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-powershell&#34; data-lang=&#34;powershell&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nv&#34;&gt;$driverInstaller&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;Join-Path&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;$env:TEMP&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;cua-driver-install-&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;no&#34;&gt;guid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]::&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;NewGuid&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;+&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;.ps1&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;try&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;Invoke-WebRequest&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-Uri&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://cua.ai/driver/install.ps1&amp;#34;&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-OutFile&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;$driverInstaller&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-ErrorAction&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;Stop&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;$driverInstaller&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-NoConnect&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-NoTest&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;finally&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nb&#34;&gt;Remove-Item&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-LiteralPath&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;$driverInstaller&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;-ErrorAction&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;SilentlyContinue&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Stop on download, verification, or execution errors and retain the diagnostic. If PowerShell execution policy blocks the script, involve the device administrator. After installation, open a new terminal and run &lt;code&gt;cua-driver --version&lt;/code&gt;; it should report a version. If the command is missing, inspect the installer&amp;rsquo;s actual destination and PATH before proceeding.&lt;/p&gt;
&lt;p&gt;On macOS, also run:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver permissions grant
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver permissions status
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In System Settings, enable &lt;strong&gt;Accessibility&lt;/strong&gt; and &lt;strong&gt;Screen &amp;amp; System Audio Recording&lt;/strong&gt; for &lt;strong&gt;CuaDriver&lt;/strong&gt;; older macOS versions may call the latter Screen Recording. Quit and reopen Driver when prompted, then check permissions again. These grants allow it to read and operate interfaces. Complete missing grants before proceeding.&lt;/p&gt;
&lt;p&gt;On Windows and Linux, check the service in the current desktop session. If it is not running, start it in a separate terminal and leave that terminal open:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver serve
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then check from another terminal:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver status
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver doctor
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver call list_apps
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The service should be reachable, diagnostics should show no blocking desktop issue, and the list should contain a recognizable application in that session. If empty, open Calculator manually, retry, and resolve any permission or display-session error.&lt;/p&gt;
&lt;h3 id=&#34;3-connect-only-the-selected-agent&#34;&gt;3. Connect only the selected agent
&lt;/h3&gt;&lt;p&gt;This example uses Codex. Preview the changes, identify the configuration file from the output, and back up the existing file to a private local directory before applying:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver connect --client codex --dry-run
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver connect --client codex
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;For Claude Code or Cursor, replace &lt;code&gt;codex&lt;/code&gt; in both commands with &lt;code&gt;claude&lt;/code&gt; or &lt;code&gt;cursor&lt;/code&gt;. The result should report the selected client connected or already connected. If it uses another Driver installation, establish who manages it and preserve that connection instead of immediately using &lt;code&gt;--replace&lt;/code&gt;. For other agents, follow the corresponding &lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/guides/connect-your-agent&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;official connection guide&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&#34;4-verify-in-a-new-session&#34;&gt;4. Verify in a new session
&lt;/h3&gt;&lt;p&gt;Save your work, then reload MCP or open a fresh agent session as required by your client. Confirm that its &lt;code&gt;cua-driver&lt;/code&gt; tools or skill are available and send:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Use the connected Cua Driver to open this computer&amp;#39;s calculator and compute 6 × 7.
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Read the calculator window again after acting, report the displayed result,
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;and describe what you actually observed. Prefer background interaction;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;if foreground control is required, explain what you need me to do first.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The expected result is &lt;code&gt;42&lt;/code&gt; in the calculator, read back by the agent from a fresh observation. Record the actual OS, Driver version, client, and outcome. If the current session cannot load new tools, give this prompt to a new session and report installation/configuration complete with UI verification pending.&lt;/p&gt;
&lt;h3 id=&#34;troubleshooting-and-reversal&#34;&gt;Troubleshooting and reversal
&lt;/h3&gt;&lt;p&gt;For missing tools, check client reload and the executable path in its connection. For tools that cannot see windows, check permissions, the desktop session, and &lt;code&gt;doctor&lt;/code&gt;. Diagnose the failure before reinstalling or overwriting configuration.&lt;/p&gt;
&lt;p&gt;To undo the connection, remove only the &lt;code&gt;cua-driver&lt;/code&gt; registration and skill links added during this setup, preserving other configuration against the backup. On macOS, you can disable the two CuaDriver grants in System Settings. Stop the service only if this setup started it and no other task uses it:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;cua-driver stop
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This reverses the connection and current run; installed files and installer-created startup entries may remain. Before a full uninstall, establish ownership from your change record and follow the official instructions for that version. Preserve pre-existing installations if verification fails.&lt;/p&gt;
&lt;h2 id=&#34;check-component-licenses-and-current-installation-paths&#34;&gt;Check component licenses and current installation paths
&lt;/h2&gt;&lt;p&gt;Driver, Lume, and the SDK fall under the repository&amp;rsquo;s MIT licensing scope. Spaces and related components use &lt;strong&gt;FSL-1.1-MIT&lt;/strong&gt;, a source-available license with restrictions on competing hosted services; each release converts to MIT two years after publication. Consult the repository&amp;rsquo;s licensing section and individual directories for scope. Optional perception components also include third-party software with separate terms.&lt;/p&gt;
&lt;p&gt;The repository marks older packages including &lt;code&gt;cua-computer&lt;/code&gt; and &lt;code&gt;cua-agent&lt;/code&gt; as deprecated. It directs desktop users to Driver and sandbox users to the current &lt;code&gt;cua&lt;/code&gt; SDK. Use the corresponding replacement for a new installation.&lt;/p&gt;
&lt;h2 id=&#34;appendix-agent-execution-agreement&#34;&gt;Appendix: Agent execution agreement
&lt;/h2&gt;&lt;ol&gt;
&lt;li&gt;Use existing access to establish the target computer, OS, desktop session, Driver path and owner, and selected agent. Ask only for information you cannot determine.&lt;/li&gt;
&lt;li&gt;Explain the installation target, PATH/startup changes, client configuration, and required permissions before obtaining authorization. Back up the actual configuration and record additions. Reuse working setups; avoid upgrading, replacing connections, or connecting every client by default.&lt;/li&gt;
&lt;li&gt;Install standalone Driver only, skipping automatic connections and tests. Do not add Spaces, VMs, or perception extensions, change models/accounts/browser profiles/system execution policy, or select an approval-bypass mode.&lt;/li&gt;
&lt;li&gt;Provide specific manual steps when OS or agent sandbox permission is missing. The user handles macOS privacy grants unless they explicitly authorize the agent to handle CuaDriver&amp;rsquo;s own prompts on a host they own or administer. Never request plaintext secrets or reset permissions to bypass a problem.&lt;/li&gt;
&lt;li&gt;Stop dependent steps after installation, permission, or connection failures and explain why. If tools require a new session, supply completed steps, actual paths, and the verification prompt; pending reload is not a passed test.&lt;/li&gt;
&lt;li&gt;Report installation, reachable service, loaded client tools, and calculator UI verification separately. Include actual versions, changes and backup locations, manual actions, and incomplete items. Stop only a service exclusively started by this setup, preserving existing apps and tasks.&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;Sources checked on December 2, 2026 against the official repository, installer scripts, and documentation. These installation steps have not been tested on each OS; background input, VMs, and cross-computer connections were also not tested. Consult the official documentation for the platform support, component licenses, and installation paths of your chosen version.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Sources&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/trycua/cua&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;trycua/cua: overview, components, and licensing&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/concepts/how-cua-driver-works&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;How Cua Driver works&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/concepts/platform-support&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Platform support&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/quickstart&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Cua Driver Quickstart&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/guides/connect-your-agent&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Connect your agent&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-driver/reference/cli/serve-and-configure&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Serve, configure and update&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/driver/install.sh&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;macOS/Linux installer&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/driver/install.ps1&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Windows installer&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/spaces/quickstart&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Cua Spaces Quickstart&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/spaces/concepts/how-spaces-works&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;How Spaces works&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/lume/quickstart&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Lume Quickstart&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/trycua/cua/blob/main/libs/cua/README.md&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;cua SDK workspace&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://cua.ai/docs/cua-bench/quickstart&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Cua Bench Quickstart&lt;/a&gt; (Cua AI, checked 2026-12-02)&lt;/li&gt;
&lt;/ul&gt;
</description>
        </item>
        
    </channel>
</rss>
