Wayhand

•
1
•

Enables AI models like Claude Code and Codex to see and operate a GNOME Wayland desktop environment.

Wayhand is a local server that provides advanced desktop automation capabilities for AI models. It allows agents like Claude Code and OpenAI Codex to interact with a GNOME Wayland desktop by capturing screenshots, simulating mouse clicks, typing, and drag actions using pixel coordinates. Users can choose between a secure, headless sandbox environment based on Sway for isolated operations, or directly control their real desktop via uinput for interacting with existing applications. Designed with safety in mind, it never opens network ports, prevents shell execution, and includes robust mechanisms to ensure user control and prevent unintended actions.

Key Features

01Wayland Desktop Automation: Capture screenshots and simulate clicks, typing, and drag actions on GNOME Wayland.
02AI Integration: Seamlessly connect with Claude Code and OpenAI Codex through stdio.
03Dual Target Modes: Operate either a private, headless Sway sandbox or your real desktop via uinput.
04Robust Safety Mechanisms: Includes input release on errors, a screenshot-based circuit breaker, and prevention of root execution.
05Easy Installation: A one-command script handles dependencies, uinput setup, screenshot authorization, and client registration.
060 GitHub stars

Use Cases

01Allow AI models to interact with and test Wayland applications in a sandboxed environment.
02Automate complex desktop workflows on a real GNOME Wayland session using AI agents.
03Develop and debug AI-driven UI automation scripts for Wayland-based systems.