Is agent-desktop safe to install? Install audit of agent-desktop 1.3.0 (npm)
Audited on 2026-11-13 against version 1.3.0, upstream commit a776595. Package: agent-desktop on npm. Repository: github.com/vercel-labs/agent-desktop.
We ran npm install -g agent-desktop in a throwaway Ubuntu 24.04 container and recorded what it downloaded, what it wrote, what it printed and what the first commands returned. Everything below marked as our result comes from those logs. Upstream claims are labelled as such.
Quick verdict
- Install risk: Low
- Low install risk: the npm install downloaded only from registry.npmjs.org, postinstall checked the bundled binaries against .sha256 files shipped in the same tarball (detects corruption, not tampering), and apart from the command symlink the only file written outside the package was npm's own.
- Runtime risk: depends on your agent
- The real risk is runtime capability. Once you connect agent-desktop to an agent, the agent can read and operate any app that exposes an accessibility tree, plus the clipboard. The optional jev scripts send screen descriptions to a remote decision API.
Installing agent-desktop 1.3.0 from npm looked low risk in our Ubuntu 24.04 container. The only downloads were from the npm registry, the bundled binaries were checked against .sha256 files shipped in the same tarball (detects corruption, not tampering), the install added no daemon or service, no shell profile was edited, and npm uninstall removed it cleanly. Treat it like giving your agent your keyboard and screen. The risk depends on which agent you connect and which apps are open, not on the installer.
Supported platforms (README): macOS 13+, Windows 10 1809+, Linux (Ubuntu 24.04+). We tested Linux only. Jump to the D-Bus / PERM_DENIED fix or does it send data anywhere?
What we ran
Docker ubuntu:24.04 (Ubuntu 24.04.5 LTS), started with docker run --rm --cpus 2 --memory 2g. Node v18.19.1 and npm 9.2.0 from Ubuntu apt. No host mounts except the read-only test script, and no host secrets or environment variables. Three separate runs, each in a fresh container.
docker run --rm --cpus 2 --memory 2g ubuntu:24.04apt-get install -y -qq nodejs npm curl ca-certificates binutils filenpm install -g agent-desktop --foreground-scripts --loglevel=infofind / -xdev -newer /tmp/marker -type fagent-desktop version
agent-desktop status
agent-desktop snapshot --app Finder -i
agent-desktop permissionsfile <each executable>; ldd <each executable>; strings <each binary> | grep -oE 'https?://[a-zA-Z0-9./_-]+'apt-get install -y -qq nodejs npm strace dbus at-spi2-core xvfb x11-appsnpm install -g agent-desktop@1.3.0 --foreground-scriptsagent-desktop skills list
agent-desktop skills get <each skill> | grep typesafestrace -f -qq -e trace=connect agent-desktop statusdbus-run-session -- agent-desktop statusXvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
dbus-run-session -- bash -c '/usr/libexec/at-spi-bus-launcher --launch-immediately & sleep 2; xeyes & sleep 1; agent-desktop status; agent-desktop list-apps; strace -f -qq -e trace=connect agent-desktop list-apps'npm uninstall -g agent-desktopapt-get install -y -qq nodejs npm dbus at-spi2-core xvfb ca-certificatesXvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status
XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop list-appskill <Xvfb pid>; unset DISPLAY
XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status
XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop list-appsnpm view agent-desktop@1.3.0 dist --json # on the host
npm install agent-desktop@1.3.0 && npm audit signatures # temp project in the containernpm install --ignore-scripts agent-desktop@1.3.0
AGENT_DESKTOP_SKIP_DOWNLOAD=1 npm install agent-desktop@1.3.0 --foreground-scripts
./node_modules/.bin/agent-desktop version # after each, in separate temp projectsWe keep the raw logs on file. See how we run install audits for the full checklist.
What the installer does
The package
- Package agent-desktop@1.3.0, unpacked size 31,967,702 bytes (32M on disk after install).
- engines node>=18; os darwin, win32, linux; cpu arm64, x64. License Apache-2.0.
- The only lifecycle script is postinstall: node scripts/postinstall.js.
- The package files are bin/, lib/ and scripts/ (plus README and package.json). scripts/ contains only postinstall.js.
- The tarball already bundles native binaries for Linux, macOS and Windows (x64 and arm64), each with a .sha256 sidecar file inside the same tarball.
Postinstall, explained
We read scripts/postinstall.js in full. In the order the code runs, it:
- If AGENT_DESKTOP_SKIP_DOWNLOAD=1 is set, it prints one line and returns at the top of main(). AGENT_DESKTOP_SKIP_DOWNLOAD=1 skips everything postinstall does: none of the steps below run, so there is no checksum check, no helper copy and no linking.
- On a platform with no released binary, it prints a notice and stops.
- On Linux, removes group and world write permission from bin/.
- If AGENT_DESKTOP_BINARY_PATH is set, it installs that binary instead and stops after linking and printing. On Linux it also needs agent-desktop-linux-clipboard-owner beside the custom binary (same directory); if that helper is missing, postinstall prints an error and the install fails. AGENT_DESKTOP_MACOS_HELPER_PATH sets the helper path on macOS.
- Copies the bundled platform helper (on Linux, agent-desktop-linux-clipboard-owner-linux-x64 to agent-desktop-linux-clipboard-owner), if the bundled copy matches its .sha256 file.
- Checks the bundled binary for this platform, and the helper, against the .sha256 sidecar files shipped in the same tarball. That catches a corrupted or partial file. It does not prove who built the binary: a tampered tarball could carry matching .sha256 files. On a mismatch it falls back to the GitHub download described below.
- Hard-links bin/agent-desktop to the native binary, so each call skips the Node launcher.
- On macOS only, runs agent-desktop version once to stop command hosts left by older versions. This did not apply in our Linux run.
- Prints suggestions for agent-desktop skills get and npx skills add. It only prints them. It does not run npx.
> agent-desktop@1.3.0 postinstall
> node scripts/postinstall.js
agent-desktop: Native executables ready: agent-desktop-linux-x64, agent-desktop-linux-clipboard-owner
agent-desktop: Native binary linked: each call runs without the Node launcher.
agent-desktop:
agent-desktop: Claude Code skills available for agent-desktop!
agent-desktop: The binary serves its own skills:
agent-desktop: agent-desktop skills get desktop
agent-desktop: agent-desktop skills get platform
agent-desktop: Or install a skill with:
agent-desktop: npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop
agent-desktop: npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop-ffi
agent-desktop: npx skills add https://github.com/vercel-labs/agent-desktop --skill agent-desktop-linux
agent-desktop:
npm info run agent-desktop@1.3.0 postinstall { code: 0, signal: null }
added 1 package in 1sChecksums vs authenticity
- What the .sha256 check proves: the bundled binaries are checked against .sha256 files shipped in the same tarball (detects corruption, not tampering). Anyone able to alter the tarball could alter those .sha256 files too.
- Registry signatures and provenance: npm view agent-desktop@1.3.0 dist --json, run on 2026-11-13, shows a signatures field with two registry signatures (keyid SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U) and an attestations field (https://registry.npmjs.org/-/npm/v1/attestations/agent-desktop@1.3.0) with an SLSA provenance v1 predicate.
- npm audit signatures, run in a throwaway project that installed agent-desktop@1.3.0 (npm 9.2.0, run 3), printed: audited 1 package in 0s, then 1 package has a verified registry signature. That npm version printed nothing about the attestation, and we did not verify the provenance attestation (its source repository and build workflow) ourselves.
- To check it yourself: run npm view agent-desktop@1.3.0 dist and look for the signatures and attestations fields, then run npm audit signatures in a project that installs it. For the GitHub release archives, postinstall's own manual-download instructions suggest gh attestation verify <downloaded-archive> --repo vercel-labs/agent-desktop.
Network during install
- npm's info log showed exactly two downloads: GET https://registry.npmjs.org/agent-desktop and GET https://registry.npmjs.org/agent-desktop/-/agent-desktop-1.3.0.tgz.
- postinstall downloaded nothing in 1.3.0, because the binaries ship inside the npm tarball.
- Only if the bundled binary is missing or does not match its .sha256 sidecar does postinstall fall back to curl -fsSL from https://github.com/vercel-labs/agent-desktop/releases/download/v<version>/ (the release archive plus checksums.txt). It checks the sha256 and the exact archive entry list before extracting. We read this code path but did not trigger it.
Files written, and no daemon
- Package directory: /usr/local/lib/node_modules/agent-desktop (bin/, lib/, scripts/, README.md, package.json), 32M.
- Command symlink: /usr/local/bin/agent-desktop -> ../lib/node_modules/agent-desktop/bin/agent-desktop.
- Outside the package, the only new file was npm's own /root/.npm/_update-notifier-last-checked (plus npm's cache and logs).
- No service, daemon, cron job or systemd unit at install time, and no shell profile edits. (At runtime, clipboard-set on Linux does leave a helper process running; see the checklist below.)
- ~/.agent-desktop was not created by status or list-apps in our runs. status only reports it as state_root.
First run: exact outputs
These are the outputs in a headless container with no desktop session, copied from our log. Each command printed one JSON envelope.
{"version":"2.6","ok":true,"command":"version","data":{"os":"linux","target":"x86_64","version":"1.3.0"}}The binary runs. The outer "version":"2.6" is the JSON envelope format; the tool version is data.version, 1.3.0.
{"version":"2.6","ok":true,"command":"status","data":{"permissions":{"accessibility":{"state":"denied","suggestion":"No D-Bus session bus is reachable. Run inside a desktop session, or start one with 'dbus-run-session -- <command>'."},"automation":{"state":"not_required"},"screen_recording":{"state":"unknown"}},"platform":"linux","ref_count":null,"session_id":null,"snapshot_id":null,"state_root":"/root/.agent-desktop","supported_surfaces":[],"tracing":false,"version":"1.3.0"}}status itself succeeds ("ok":true), but accessibility is "denied" and supported_surfaces is empty. Nothing can be read or clicked yet.
{"version":"2.6","ok":false,"command":"snapshot","error":{"code":"PERM_DENIED","message":"Accessibility permission not granted","suggestion":"No D-Bus session bus is reachable. Run inside a desktop session, or start one with 'dbus-run-session -- <command>'.","disposition":{"delivery":"not_delivered","retry":"safe"}}}On Linux, PERM_DENIED here means the session bus is missing, not that a permission dialog was refused. Our log captured the exit status through a pipe, so we do not report a process exit code for this command.
{"version":"2.6","ok":true,"command":"permissions","data":{"accessibility":{"state":"denied","suggestion":"No D-Bus session bus is reachable. Run inside a desktop session, or start one with 'dbus-run-session -- <command>'."},"automation":{"state":"not_required"},"screen_recording":{"state":"unknown"}}}Same diagnosis as status, without the session fields.
Upstream docs/json-output.md documents exit code 1 for structured errors. We did not capture the process exit code ourselves, so check "ok" in the JSON rather than relying on it.
Fix: No D-Bus session bus is reachable / PERM_DENIED Accessibility permission not granted
On Linux, both messages had the same cause in our run: agent-desktop could not reach a D-Bus session bus, so it could not reach the AT-SPI accessibility bus either.
No D-Bus session bus is reachable. Run inside a desktop session, or start one with 'dbus-run-session -- <command>'.Linux. Shown as the "suggestion" in agent-desktop status and agent-desktop permissions, with "accessibility":{"state":"denied"}. Verified: we reproduced it and the fix.
Cause. There is no D-Bus session bus in the environment, as in our headless container. Sessions without a desktop, such as SSH logins, CI runners or cron jobs, can lack one too. In our trace, agent-desktop tried to connect to /run/user/0/bus and got ENOENT.
Fix. Run agent-desktop inside your desktop session. In a container or CI with no desktop, install dbus and at-spi2-core and run it under a private session bus: XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status. Starting at-spi-bus-launcher by hand is optional. We also started Xvfb, but in run 3 status reported "accessibility":{"state":"granted"} with and without a display. Over SSH to a machine with a logged-in desktop, don't start a new bus: see the SSH case below (upstream guidance, not tested by us).
"code":"PERM_DENIED","message":"Accessibility permission not granted"Linux. Returned by agent-desktop snapshot --app Finder -i, with the same D-Bus suggestion. Verified: we reproduced it and the fix.
Cause. On Linux in our run, this was the same missing session bus. No permission prompt was involved. Upstream bus-and-permissions.md documents PLATFORM_NOT_SUPPORTED for commands when the bus is unavailable; for snapshot we observed PERM_DENIED, so the error code may differ by command. Check status rather than matching one code.
Fix. Same fix as above: install at-spi2-core and use XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status in a container or CI, or your own desktop session otherwise. Check with agent-desktop status first; it should show "state":"granted" before you try snapshot again.
Container or CI with no desktop (what we tested)
- This is what we ran. In a fresh ubuntu:24.04 container (run 3), XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status printed accessibility "granted" and supported_surfaces ["window","sheet","alert","menu"], exit 0. We did not start at-spi-bus-launcher by hand: the session bus auto-activated org.a11y.Bus and org.a11y.atspi.Registry on the first call.
- We also started Xvfb. With Xvfb stopped and DISPLAY unset, the same command still printed accessibility "granted" and the same four surfaces; only screen_recording changed from "not_required" to "unknown". list-apps returned {"apps":[]} both ways. We did not test snapshot, click or screenshots without a display.
- The private XDG_RUNTIME_DIR (mktemp -d makes it mode 0700) keeps the new bus launcher away from any existing bus socket. Each dbus-run-session bus ends with its command, and upstream says the target app must run on the same session bus, so start the apps you want agent-desktop to see inside the same dbus-run-session.
# Container or CI with no desktop (what we tested). Packages:
sudo apt-get update && sudo apt-get install -y dbus at-spi2-core
# Private session bus in a private runtime directory (upstream's form; run 3: accessibility "granted")
XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status
# Optional: a virtual display. We also started Xvfb, but in run 3 status and list-apps
# reported the same result without any display.
# sudo apt-get install -y xvfb
# Xvfb :99 -screen 0 1024x768x24 &
# export DISPLAY=:99
# Optional: start the accessibility bus by hand, as our run 2 did inside the container.
# Not required: in run 3 the first call auto-started org.a11y.Bus.
# dbus-run-session -- bash -c '/usr/libexec/at-spi-bus-launcher --launch-immediately & sleep 2; agent-desktop status'$ XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status # Xvfb running, DISPLAY=:99
{"version":"2.6","ok":true,"command":"status","data":{"permissions":{"accessibility":{"state":"granted"},"automation":{"state":"not_required"},"screen_recording":{"state":"not_required"}},"platform":"linux","ref_count":null,"session_id":null,"snapshot_id":null,"state_root":"/root/.agent-desktop","supported_surfaces":["window","sheet","alert","menu"],"tracing":false,"version":"1.3.0"}}
$ XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status # no Xvfb, DISPLAY unset
{"version":"2.6","ok":true,"command":"status","data":{"permissions":{"accessibility":{"state":"granted"},"automation":{"state":"not_required"},"screen_recording":{"state":"unknown"}},"platform":"linux","ref_count":null,"session_id":null,"snapshot_id":null,"state_root":"/root/.agent-desktop","supported_surfaces":["window","sheet","alert","menu"],"tracing":false,"version":"1.3.0"}}SSH into a machine with a logged-in desktop (upstream guidance, not tested by us)
- Not tested by us. This is upstream guidance from skills/agent-desktop-linux/references/bus-and-permissions.md.
- Run agent-desktop as the user who owns the session (the account logged in to the desktop), with that session's bus and display. Upstream says the target app must run on the same session bus, and a process of another user or session is not matched.
- Don't wrap it in a fresh dbus-run-session. A fresh private bus answers, so status can report "granted", but the desktop's apps are registered on the desktop session's bus, so it cannot see any of them.
- Don't start a second bus launcher (at-spi-bus-launcher, or a restart of at-spi-dbus-bus.service) while a live session owns the bus. Upstream warns that a second launcher sharing the live session's runtime directory can delete the live bus socket and break every other client. If you need a scratch bus on that machine, use the private form, XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status, and expect it not to see the desktop's apps.
# Not tested by us. As the user who owns the desktop session, over SSH:
# point at that session's bus (the systemd default path is shown; check yours)
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
# and that session's display: DISPLAY on X11, WAYLAND_DISPLAY on Wayland (read the values from the session)
export DISPLAY=<the session's display>
agent-desktop status
agent-desktop list-apps # should list the desktop's appsOur earlier run 2 started the accessibility bus by hand and an xeyes test window, neither of which is needed. Its outputs:
{"version":"2.6","ok":true,"command":"status","data":{"permissions":{"accessibility":{"state":"granted"},"automation":{"state":"not_required"},"screen_recording":{"state":"not_required"}},"platform":"linux","ref_count":null,"session_id":null,"snapshot_id":null,"state_root":"/root/.agent-desktop","supported_surfaces":["window","sheet","alert","menu"],"tracing":false,"version":"1.3.0"}}After the fix: accessibility is "granted" and four surfaces are supported.
{"version":"2.6","ok":true,"command":"list-apps","data":{"apps":[]}}Works, but empty: no accessible GUI app was running. The xeyes test window does not expose AT-SPI.
On macOS (from upstream docs, not tested)
"code":"PERM_DENIED","message":"Accessibility permission not granted"macOS. Per the upstream macOS troubleshooting guide; we did not test macOS.
Cause. The app that launched agent-desktop (your terminal or IDE) has no Accessibility grant, or no Screen Recording grant for screenshot commands. The grant belongs to the launching app, not the shell.
Fix. Run agent-desktop permissions --guide, turn on the launching app in System Settings > Privacy & Security > Accessibility, then run agent-desktop permissions to confirm granted.
Does agent-desktop send data anywhere?
Short answer: not in the commands we traced, but the scope matters. Here is the trace, then what each finding means.
$ strace -f -qq -e trace=connect agent-desktop status # no desktop session
[pid 9068] connect(6, {sa_family=AF_UNIX, sun_path="/run/user/0/bus"}, 18) = -1 ENOENT (No such file or directory)
[pid 9068] connect(6, {sa_family=AF_UNIX, sun_path="/run/user/0/bus"}, 18) = -1 ENOENT (No such file or directory)
$ strace -f -qq -e trace=connect agent-desktop list-apps # inside dbus-run-session with the accessibility bus
[pid 9139] connect(6, {sa_family=AF_UNIX, sun_path="/tmp/dbus-P2xoa8xLJ1"}, 23) = 0
[pid 9139] connect(6, {sa_family=AF_UNIX, sun_path="/root/.cache/at-spi/bus_99"}, 29) = 0- We ran strace -e trace=connect on agent-desktop status and agent-desktop list-apps. We saw only local Unix socket connections: the D-Bus session bus (/run/user/0/bus, /tmp/dbus-*) and the accessibility bus (~/.cache/at-spi/bus_99). We saw no AF_INET or AF_INET6 (internet) connections for these commands.
- Scope: only those two commands were traced. We did not trace snapshot, click, type, screenshot, mcp or any other command against a real desktop.
- strings on the binary shows two remote API endpoints (plus mesu.apple.com and documentation/DTD links): https://api.typesafe.ai/v1/systemone and https://openrouter.ai/api/alpha/decisions. It also contains http://127.0.0.1. Both API endpoints come from the embedded jev-desktop skill text. The binary serves that text through agent-desktop skills get jev-desktop. It is the only embedded skill that mentions typesafe.
- The jev scripts that use those endpoints (scripts/jev/run.mjs and act.mjs, with the request in policy.mjs) live in the GitHub repository. They are not in the npm package; the package's scripts/ folder contains only postinstall.js.
- Per the upstream jev-desktop skill: when you run those scripts, each turn posts a description of the screen to the decision endpoint (TYPESAFE_BASE_URL, default https://api.typesafe.ai/v1/systemone). That includes element roles, accessible names, up to 60 characters of field values, the window title and recent actions. It needs a TYPESAFE_API_KEY. Secure text fields are withheld, and --no-values withholds other field values.
- The mesu.apple.com URL in the binary belongs to the macOS sandbox provider, which downloads Apple's IPSW catalog. It only matters for the sandbox command on macOS.
- We found no analytics or crash-reporting SDK strings (posthog, sentry, segment) in the Linux binary. The "telemetry" matches were internal tracing event names.
- Data on disk is a separate question. The upstream FAQ says snapshots, window titles, clipboard reads, notifications, screenshots and command results contain the desktop content you asked for. --debug --screenshot PATH.html writes a local HTML page with a screenshot and accessibility data.
So the npm package itself does not ship the code that calls the TypeSafe or OpenRouter endpoints. The URLs are in the binary because it serves the jev-desktop skill text, which documents those scripts.
The data you should guard is local: whatever the agent reads from your screen ends up in snapshots, traces and your agent's transcript, and, if your agent uses a hosted model, in the requests it sends to that provider.
Permissions and how to limit risk
What agent-desktop needs on each platform, according to the README, and what we saw on Linux:
- macOS 13 or later: needs an Accessibility grant (agent-desktop permissions --guide). The README also lists a Screen Recording state for screenshots. From the README; not tested by us.
- Windows 10 1809 or later: uses UI Automation. From the README; not tested by us.
- Linux (Ubuntu 24.04 or later, X11 or Wayland): uses the AT-SPI accessibility bus. In our container no grant was needed, only a D-Bus session bus and the accessibility bus, as shown above.
- Headless by default: ref actions use the accessibility API without moving the pointer or taking focus. The global --headed flag allows physical mouse and keyboard input (README).
- agent-desktop mcp serves every command as an MCP tool over stdio. Any MCP client you connect gets the same desktop access (README).
Checklist before you connect an agent
- Pass secrets with --stdin. type, set-value and clipboard-set accept --stdin so the text stays out of process arguments. Run secret steps as separate commands, because batch JSON text appears in process arguments (README).
- Keep snapshots, traces, --debug --screenshot HTML files and agent transcripts private. They contain whatever was on screen.
- Don't use the jev scripts with private documents or filled-in forms unless you accept that screen descriptions go to the remote decision endpoint. If you do use them, pass --no-values.
- Close apps you don't want the agent to read before you start a session. agent-desktop sees every app that exposes an accessibility tree.
- Use --headed only when you need physical input. Without it, ref actions do not move your pointer or take focus (README).
- Treat launch --cdp as handing the app to every local process. It opens a DevTools port with no authentication; upstream skills/agent-desktop/references/commands-system.md says that while the port is open any local process, including processes of other accounts on the same machine, can control the app's web contents. Request it only for the step that needs it; close-app ends the exposure.
- Clear the clipboard after copying anything sensitive. On Linux (X11), clipboard-set hands the content to a detached agent-desktop-linux-clipboard-owner process that keeps serving it after the CLI exits, until another client takes the selection or you run agent-desktop clipboard-clear (upstream capture-and-clipboard.md). So "no daemon" is an install-time finding only.
- Expect prompt injection. Text on screen (web pages, emails, documents, notifications) reaches the agent through snapshots and can try to steer the actions it takes. Close untrusted content and review destructive steps.
- If you use the jev scripts: on macOS, when an app refuses a direct value write, they type text by putting it on the clipboard and pasting with cmd+v (the clipboard is put back when the run ends). act.mjs keeps its exact argv in stdout, so a value passed with --text can appear in its output. Keep secrets out of --text and keep that output private (upstream jev-desktop SKILL.md).
- To control which binary runs: AGENT_DESKTOP_BINARY_PATH installs a binary you built or verified yourself; on Linux it needs agent-desktop-linux-clipboard-owner beside that binary, or the install fails. AGENT_DESKTOP_SKIP_DOWNLOAD=1 skips everything postinstall does, including the .sha256 check, the helper copy and the linking; npm install --ignore-scripts has the same effect. In run 3, after either one, bin/agent-desktop stayed the Node launcher, which printed a notice and then ran the bundled binary.
- Pin the version (npm install -g agent-desktop@1.3.0) if you want to match this audit.
Uninstall
- npm uninstall -g agent-desktop printed removed 1 package.
- /usr/local/bin/agent-desktop was gone afterwards.
- No ~/.agent-desktop directory was left behind in our runs. If you used sessions, traces or screenshots on a real desktop, check ~/.agent-desktop and any paths you passed yourself.
$ npm uninstall -g agent-desktop
removed 1 package in 77ms
$ ls /usr/local/bin/agent-desktop
ls: cannot access '/usr/local/bin/agent-desktop': No such file or directory
$ ls -d /root/.agent-desktop
ls: cannot access '/root/.agent-desktop': No such file or directoryNot tested
This audit covers one npm install on Ubuntu 24.04 (x86_64). We did not test:
- macOS installs and the macOS Accessibility / Screen Recording grant flow.
- Windows installs (UI Automation).
- Homebrew (brew install agent-desktop).
- Bun, pnpm and Yarn installs.
- GitHub release archives (manual download), including the postinstall download fallback.
- Controlling real GUI apps: no accessible app was running, so snapshot, click and type were not exercised against an app.
- The jev scripts (scripts/jev/run.mjs, act.mjs) and their remote decision endpoint.
- The sandbox command.
- npx skills add (postinstall only prints it).
- Network tracing of any command other than status and list-apps.
Sources
- vercel-labs/agent-desktop repository (README, docs/faq.md, docs/json-output.md, skills/) · Read at commit a776595 (2026-11-12). Apache-2.0, written in Rust.
- README: supported platforms, headless mode, --stdin, MCP
- docs/faq.md: what data can contain private information
- skills/jev-desktop/SKILL.md: what the jev scripts send to the decision endpoint
- skills/agent-desktop-linux/references/bus-and-permissions.md: bus states, private-runtime command, session requirements
- skills/agent-desktop-linux/references/capture-and-clipboard.md: the detached clipboard owner process
- skills/agent-desktop/references/commands-system.md: launch --cdp and the unauthenticated DevTools port
- npm registry metadata for agent-desktop@1.3.0 · Fetched by npm during our install; package.json and scripts/postinstall.js read from the installed 1.3.0 package.
- Our raw logs: install run, dbus/strace run and the private-runtime / signatures run, Docker ubuntu:24.04, 2026-11-13.
Frequently asked questions
Is agent-desktop safe to install?
In our Ubuntu 24.04 container, npm install -g agent-desktop (1.3.0) downloaded only from registry.npmjs.org. Its postinstall checked against .sha256 files shipped in the same tarball (detects corruption, not tampering), installed no daemon or service, edited no shell profile, and npm uninstall removed it cleanly. npm audit signatures reported a verified registry signature. We rate the install risk low. The bigger question is runtime: agent-desktop lets the agent you connect read and operate any accessible app on your desktop.
Does the agent-desktop postinstall script download anything?
Not in 1.3.0 in our run. The npm tarball already contains the native binaries, so postinstall only compared them with the .sha256 files in the same tarball, copied the platform helper and linked the binary. It downloads from the project's GitHub releases only if the bundled binary is missing or does not match. AGENT_DESKTOP_SKIP_DOWNLOAD=1 skips everything postinstall does, including the checksum check, the helper copy and the linking; npm install --ignore-scripts has the same effect. After either one, in our test, the Node launcher ran the bundled binary.
How do I fix "No D-Bus session bus is reachable" in agent-desktop?
Run agent-desktop inside your desktop session. In a container or CI with no desktop, run sudo apt-get update && sudo apt-get install -y dbus at-spi2-core, then XDG_RUNTIME_DIR=$(mktemp -d) dbus-run-session -- agent-desktop status. In our Ubuntu 24.04 container that reported accessibility granted, with or without Xvfb, and without starting at-spi-bus-launcher by hand. Over SSH to a machine with a logged-in desktop, don't start a new bus: run agent-desktop as the session's user with that session's bus and display. A fresh private bus can report granted but cannot see the desktop's apps (upstream guidance; we did not test SSH).
Does agent-desktop send my data anywhere?
For status and list-apps we traced only local Unix socket connections and no internet connections. We did not trace other commands. The binary contains api.typesafe.ai and openrouter.ai URLs from its embedded jev-desktop skill text. The jev scripts that use them are not in the npm package. When you run them from a repository clone, they send screen descriptions to that remote decision endpoint.
How do I uninstall agent-desktop?
Run npm uninstall -g agent-desktop. In our test it printed removed 1 package, removed /usr/local/bin/agent-desktop and left no ~/.agent-desktop directory. If you used it on a real desktop, also check ~/.agent-desktop and any trace or screenshot paths you chose.
