English | 简体中文
AUV means **Application Use Via ...**. - Apple Music Application Use Via [`auv-apple-music`](https://github.com/moeru-ai/auv/tree/main/supported/apps/auv-apple-music)... - macOS Media Control Use Via [`auv-media-macos`](https://github.com/moeru-ai/auv/tree/main/crates/auv-media-macos)... - [Balatro](https://www.playbalatro.com/) (yes the game [Balatro](https://www.playbalatro.com/)) Application Use Via [`auv-game-balatro`](https://github.com/moeru-ai/auv/tree/main/supported/games/auv-game-balatro)... - ... more, waiting for your implementation. > Think of it as a programmable computer use, without agents. ## Table of Contents - [Getting Started](#getting-started) - [Understand AUV](#understand-auv) - [Why even build AUV?](#why-even-build-auv) - [Capability Matrix](#capability-matrix) - [Development](#development) - [Related](#related) - [Acknowledgements](#acknowledgements) - [Special Thanks](#special-thanks) - [Star History](#star-history) - [License](#license) ## Getting Started ### Install Install a prebuilt release: #### macOS ```sh brew install moeru-ai/tap/auv auv --version ``` Alternatively, without [Homebrew](https://brew.sh/): ```sh curl -fsSL https://auv.moeru.ai/install.sh | sh ``` #### Linux ```sh curl -fsSL https://auv.moeru.ai/install.sh | sh auv --version ``` > [!NOTE] > > Set `AUV_VERSION` or `AUV_INSTALL_DIR` to change the release version or the > install directory (default: `~/.local/bin`). #### Windows ##### Scoop ```powershell scoop bucket add auv https://github.com/moeru-ai/auv scoop install auv/auv auv --version ``` ##### Manual installation Download the archive for your architecture: - [x86-64](https://github.com/moeru-ai/auv/releases/latest/download/auv-x86_64-pc-windows-msvc.zip) - [ARM64](https://github.com/moeru-ai/auv/releases/latest/download/auv-aarch64-pc-windows-msvc.zip) Extract the archive to a permanent directory. Add that directory to your user `PATH`. The archive contains a single `auv.exe`; the Windows helper is embedded. ### Install with proto Install and configure [proto](https://moonrepo.dev/docs/proto) first. Then add the AUV plugin and install the latest release: ```sh proto plugin add auv "https://raw.githubusercontent.com/moeru-ai/auv/main/toolchain/proto/auv.toml" --to global proto install auv latest --config-mode global --pin global auv --version ``` > [!NOTE] > > `AUV Helper.app` for macOS is included in the `proto` installation. On > Windows, `auv-helper.exe` is embedded in `auv.exe` and extracted only by the > elevated helper setup command. > [!WARNING] > > Linux musl is not supported. (But PRs are welcomed!) ### Install with Nix Install [Nix](https://nixos.org/download/) 2.27 or later and enable the `nix-command` and `flakes` experimental features. On macOS, install Apple's build tools first: ```sh xcode-select --install ``` Then install the default AUV package from this repository: ```sh nix profile install 'git+https://github.com/moeru-ai/auv#default' auv --version ``` The `git+https` transport is required so Nix fetches AUV's Git submodules. The flake defines source-built packages for Apple Silicon and Intel macOS and for x86-64 and ARM64 Linux. The package does not support Windows or Linux musl. The Nix package does not embed the signed `AUV Helper.app`. On macOS, use Homebrew, proto, or a direct release download if you need to run `auv setup macos-helper install` with the official helper. ### Install with Cargo Prerequisites: [Rust](https://www.rust-lang.org/tools/install) and the platform build tools below. AUV includes the Protobuf sources, so Buf is not required. > [!WARNING] > `cargo install` does not include AUV Helper. Use an install method above if > you need it. #### macOS Install the Xcode Command Line Tools: ```sh xcode-select --install cargo install --git https://github.com/moeru-ai/auv auv-cli --bin auv auv --version ``` #### Linux On Ubuntu or Debian, install the native build dependencies: ```sh sudo apt-get update sudo apt-get install -y \ pkg-config libclang-dev libxcb1-dev libxrandr-dev libdbus-1-dev \ libpipewire-0.3-dev libwayland-dev libxkbcommon-dev libegl-dev \ libleptonica-dev libtesseract-dev cargo install --git https://github.com/moeru-ai/auv auv-cli --bin auv auv --version ``` > [!NOTE] > Other Linux distributions can use different package names. #### Windows Install Rust with the MSVC toolchain, Visual Studio Build Tools, and the Windows SDK. ```powershell cargo install --git https://github.com/moeru-ai/auv auv-cli --bin auv auv --version ``` ### Setup #### macOS Official macOS releases include the signed `AUV Helper.app`. On macOS 13 or later, install it for the current user: ```sh auv setup macos-helper install auv setup macos-helper status ``` > [!TIP] > The installation does not require `sudo` or an administrator password. If macOS requests approval, open the Background Items and Accessibility settings: ```sh auv setup macos-helper open-background-items-settings auv setup macos-helper open-accessibility-settings ``` > [!NOTE] > Projects that integrate AUV can rebrand `AUV Helper.app`. They can change its > name, icon, bundle identifier, and Apple Developer signing identity. See > [Shipped helper identity](crates/auv-device-helper-macos/README.md#shipped-helper-identity) > for packaging options. Grant these permissions to the application that starts AUV, usually your terminal application: | Permission | Needed for | | --- | --- | | Accessibility | AX tree reads, focused element control, keyboard/pointer automation. | | Screen Recording | Screenshots, OCR, visual inspection, and evidence capture. | | Automation | AppleScript/System Events app activation and foreground fallback paths. | After you change the permissions, restart the terminal. Then run: ```sh auv doctor auv invoke app.probePermissions ``` #### Windows > [!IMPORTANT] > The Windows setup commands require an elevated PowerShell. ```powershell auv setup windows-helper install auv setup windows-helper status ``` > [!NOTE] > The setup command extracts the `auv-helper.exe` that is embedded in `auv.exe` > into `%ProgramFiles%\AUV`. Then it registers that file as the LocalSystem > `AuvHelper` service. The Helper does not listen on the network. Lock and > unlock work through an ordinary `auv serve` that runs as the logged-in user. > To accept paired Devices from the network, start that daemon with > `--listen http://0.0.0.0:9847`. If a 0.0.28 Helper is installed, run > `auv setup windows-helper uninstall` first, then install again and pair > clients again. > > Evidence level: one installed lock and unlock gate on one Windows 11 host. > This is not a general support claim. See the > [Windows Helper and daemon split](docs/ai/references/session-api/2026-10-06-windows-helper-daemon-split.md#evidence). ### Uninstall Use the instructions that match your installation method. If a platform Helper is installed, remove it first. #### macOS ```sh auv setup macos-helper uninstall brew uninstall auv ``` > [!NOTE] > Helper removal keeps the enrollment data in the login Keychain. It also keeps > other AUV data in the Application Support directory. #### Linux ```sh rm "$HOME/.local/bin/auv" ``` #### Windows Run these commands from an elevated PowerShell: ```powershell auv setup windows-helper uninstall scoop uninstall auv ``` > [!NOTE] > Helper removal keeps the enrolled PINs in `%ProgramData%`. The daemon's own > pairing and policy data stays in its store. If you installed the ZIP manually, remove its directory from the file system. Then remove that directory from `PATH`. #### Cargo ```sh cargo uninstall auv-cli ``` ## Understand AUV For [Cua](https://github.com/trycua/cua), [`agent-browser`](https://github.com/vercel/agent-browser), and similar computer-use projects, it is common to execute `screenshot`, `read image`, `click`, `type`, `wait`, and follow-up verification steps in sequence, then ask LLMs or agents to judge the next move. ```mermaid flowchart LR A[Agent] --> B[screenshot] B --> C[read image] C --> D[decide next step] D --> E[click] E --> F[wait] F --> G[type] G --> H[verify] H --> D ``` Many of those repeated sequences can be squashed into reusable GUI operations. Opening an app, waiting for readiness, filling a form, and checking the result should be callable as one command instead of spending tokens on the same step-by-step loop every time. Modern agents often use [skills](https://developers.openai.com/api/docs/guides/tools-skills) or project instructions to orchestrate tool calls, CLIs, and scripts. But built-in computer-use surfaces, such as [OpenAI Computer Use](https://developers.openai.com/api/docs/guides/tools-computer-use) or [Claude Computer Use](https://docs.anthropic.com/en/docs/agents-and-tools/computer-use), are still primarily interactive model-tool loops, not scriptable GUI automation libraries. Similar to [Playwright](https://playwright.dev/), what if we could organize those actions into executable scripts, reusable?| Tool-call loop | Rust scripts |
|---|---|
| ```text • Ran screenshot └ saved screen.png • Ran read image screen.png └ form is visible • Ran click "Email" └ clicked • Ran type "user@example.com" └ typed • Ran screenshot └ saved after.png • Ran verify form state └ ready ``` |
```rust
pub fn open_and_fill_form(
app: &mut AppSession,
data: FormData,
) -> AuvResult |
| ```text • Ran screenshot └ saved page-1.png • Ran OCR visible rows └ 12 rows • Ran scroll └ scrolled down • Ran OCR visible rows └ 10 rows, 4 repeated • Ran guess when to stop └ uncertain ``` |
```rust
pub fn scan_visible_rows(
region: &mut WindowRegion,
) -> AuvResult |
| ```text • Ran click target └ clicked • Ran screenshot └ saved after-click.png • Ran semantic check └ mismatch • Ran retry manually └ repeated tool loop ``` |
```rust
pub fn verify_and_retry |