About Computer Use Linux
Computer Use Linux is an MCP server published by agent-sh in the Blockchain category: native Linux desktop control for AI agents (MCP, Pi, CLI): semantic AT-SPI trees, screenshots, window targeting, and input across GNOME, KDE, Hyprland, niri, COSMIC, i3, Sway, labwc and other wlroots compositors, and X11. Conduid read 24 tools from its source: activate_window, click, complete_interaction, doctor, drag, focused_window and 18 more. It is published to npm as @agent-sh/computer-use-linux and starts with npx.
The repository has 980 stars and 117 forks, is licensed MIT, and its last commit was on 27 Nov 2026. The latest release is v0.7.59 (20 Nov 2026). It follows v0.7.58 (20 Nov 2026), and the 5 most recent releases go back to v0.7.55 (16 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include cargo, computer-use, gnome, hermes, linux and npm.
Install
claude mcp add computer-use-linux -- npx -y @agent-sh/computer-use-linuxnpx -y @agent-sh/computer-use-linuxgit clone https://github.com/agent-sh/computer-use-linuxTools (24)
activate_windowFocus a window by `window_id`, `pid`, `app_id`, `wm_class`, `title`, or terminal selectors.clickClick by `element_index`, semantic selector (`role`/`name`/`text`/`states`), or desktop/window-relative coordinates (`left`/`right`/`middle`, `click_count`).complete_interactionParameter-free desktop completion notification (`notify-send`); registered only when `COMPUTER_USE_LINUX_NOTIFY_ON_COMPLETE=1`.doctorSingle-shot JSON readiness report (platform, portals, accessibility, windowing, input, readiness summary, and capability map).dragDesktop coordinate drag from `(start_x, start_y)` to `(end_x, end_y)`.focused_windowThe window currently holding keyboard focus.get_app_stateCombined screenshot + compacted AT-SPI accessibility tree with stable `element_index` handles. Scope with `app_name_or_bundle_identifier` or a window target (`window_id`, `pid`, `app_id`, `wm_class`, `title`).get_tree_pagePage through the latest cached tree by node offset, for trees too large to return inline when the host cannot read the spill file. Pass `snapshot_id` to refuse a page from a tree a later snapshot replaced. Search the snapshot instead of paging all of it with `query` (text in a node's name, text or description), `role` and `within` (an `element_index` subtree).jsA persistent Node.js REPL with a `desktop` API over the tools above, for multi-step scripts in one call. Registered only on stdio with `COMPUTER_USE_LINUX_ENABLE_REPL=1`, or alone with `COMPUTER_USE_LINUX_REPL_ONLY=1`; never over HTTP. Needs Node.js.js_resetA persistent Node.js REPL with a `desktop` API over the tools above, for multi-step scripts in one call. Registered only on stdio with `COMPUTER_USE_LINUX_ENABLE_REPL=1`, or alone with `COMPUTER_USE_LINUX_REPL_ONLY=1`; never over HTTP. Needs Node.js.list_appsRunning desktop applications visible to the AT-SPI registry.list_windowsCompositor windows with `window_id`, title, `app_id`, `wm_class`, PID, focus state, client type (`wayland`/`x11`), bounds, and terminal TTY/process metadata.move_windowReposition or resize a window in desktop coordinates (GNOME Shell extension and X11/EWMH backends).perform_actionInvoke any AT-SPI action exposed by an element (`Press`, `Activate`, `Toggle`, `Jump`, …); defaults to the primary action.press_keySingle keys or chords (`Ctrl+L`, `Alt+F4`, `Return`), optionally focusing a target window or terminal first, or with `delivery: "background"` to an element, browser tab or terminal without moving keyboard focus.resize_windowReposition or resize a window in desktop coordinates (GNOME Shell extension and X11/EWMH backends).run_batchRun 1 to 100 desktop tool calls (and `sleep_ms` pauses) in order in one call, passing the latest `snapshot_id` along. It cannot call `run_shell`, `js`, `complete_interaction` or itself.run_shellBounded non-login `/bin/sh -c` execution; registered only when `COMPUTER_USE_LINUX_ENABLE_SHELL=1` (absent by default).screenshotBounded PNG or JPEG capture of the full desktop (`full_screen: true` or no target), a raised and cropped target window (`window_id`, `pid`, `app_id`, `wm_class`, `title`, `raise_window`), or one monitor (`monitor`, a 0-based index in reading order: rows of monitors top to bottom, each row left to right) at its own resolution, with its origin in the caption for click coordinates.scrollPage-based vertical/horizontal scroll on an element, window, or pixel coordinate.set_valueWrite directly to a settable accessibility element (text fields, sliders, spinners).setup_accessibilityEnables and verifies GNOME's `org.gnome.desktop.interface toolkit-accessibility` setting so toolkit apps expose AT-SPI trees.setup_window_targetingInstalls and enables the bundled GNOME Shell extension. GNOME Wayland needs it for exact window activation and move/resize; every GNOME session needs it for the on-screen indicator.type_textLiteral text entry, optionally targeted at a window or terminal (`tty`, `terminal_pid`, `terminal_command`, `terminal_cwd`), or with `delivery: "background"` to an element, browser tab or terminal without moving keyboard focus.Security checks
- ✓README presentThe repository's README runs to about 16K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !No dynamic code executionScanned 64 source files and found 8 calls to eval or shell execution, in pi/extension/mcp-client.bundle.cjs among others. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
Releases
README
The repository's README runs to about 16K words, fetched 11 days ago. The original in the repository is authoritative.
Read full README