What is computer-use-linux
maincomputer-use-linux is a Rust-based Model Context Protocol (MCP) server and CLI designed to provide full control of a Linux desktop to an AI agent. Unlike many Linux computer-use implementations that rely on X11 or OCR, this project is Wayland-first and uses semantic accessibility (AT-SPI) to interact with the desktop.
Key capabilities include:
- Desktop Interaction: Reading accessibility trees, listing/focusing windows, taking screenshots, clicking, dragging, scrolling, typing, and invoking semantic actions.
- Wayland Support: Uses
org.freedesktop.portal.RemoteDesktopfor pointer actions,wtypefor text input (preserving Unicode/layouts), and various DBus methods for screenshots. - Compositor Awareness: Supports GNOME, KDE/KWin, Hyprland, i3, and COSMIC via specialized window registry backends.
- Semantic Selectors: Allows agents to target UI elements using
role,name,text, orstatesinstead of relying solely on pixel coordinates. - MCP Integration: Can be spawned by any MCP host (e.g., Claude Desktop, Hermes Agent) to gain desktop control.