Installation
Install the agent-desktop npm package globally with npm, pnpm, Yarn, or Bun. It needs Node 18 or later and runs on macOS, Windows, and Linux.
Without -g, the command lands in ./node_modules/.bin instead of on your PATH. Run it with npx agent-desktop, or install globally.
What the package contains
The package carries native CLI executables for six targets, plus the helper each platform needs:
| Platform | Targets | Helper installed beside the CLI |
|---|---|---|
| macOS | arm64, x64 | agent-desktop-macos-helper |
| Linux (glibc) | x64, arm64 | agent-desktop-linux-clipboard-owner |
| Windows | x64, arm64 | none |
The C library is not in the npm package. It ships as a separate archive on each release.
Release archives
For a native executable without a JavaScript launcher, download the archive for your OS and architecture from GitHub Releases. Extract the executable and its helper together into a directory on your PATH. To upgrade, replace both with files from the same release.
Checksums catch corruption. Verify origin with the build attestation:
Blocked install scripts
The package's postinstall script replaces the Node launcher with a link to the native binary. If your package manager blocks install scripts, the Node launcher runs instead. It works, but every call starts Node first, which adds more than 100 ms. The launcher prints a one-time notice to stderr with the fix. Allow the script and reinstall:
Homebrew
On macOS and Linux, install from Homebrew's default catalog. Homebrew builds from the tagged source and installs the platform helper beside the CLI.
Scoop and older installs
There is no Scoop package. The custom Homebrew tap and Scoop bucket were removed in 1.0.1 (see the changelog). An older tap or bucket install stays pinned to its version and can shadow the npm or Homebrew command. Check which executable runs, and uninstall the old one with the package manager that installed it:
Build from source
You need the Rust toolchain pinned in rust-toolchain.toml (1.89.0), which rustup installs on first use, and a C toolchain: the Xcode command-line tools on macOS, the MSVC build tools on Windows, or build-essential on Linux.
Build the helper for your platform and keep it beside the CLI. A platform crate compiles only on its own OS:
Verify the install
version prints the CLI version, the architecture, and the OS:
status reports the platform, the permission state, the surfaces this OS can read, and the state root:
Grant permissions
- macOS: grant Accessibility permission with
agent-desktop permissions --guide. See macOS. - Windows: no grant is needed for apps at your terminal's integrity level. See Windows.
- Linux: run inside the user's graphical session with a running AT-SPI bus, then check
agent-desktop status. An emptysupported_surfacesmeans the bus did not answer. See Linux.
Next, run the quick start.