Desktop Control for Openclaw

A comprehensive desktop automation skill that enables AI agents to control the mouse, keyboard, and screen across multiple operating systems.

chillybean
v1.3.2
Feb 24, 2026
0
663
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pipx-desktop-agent

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pipx-desktop-agent using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Desktop Control?

The Desktop Control skill is a powerful interface for Openclaw Skills that leverages PyAutoGUI to provide AI agents with full agency over a desktop environment. It allows for seamless interaction with graphical user interfaces by simulating human actions such as moving the cursor, typing text, and executing complex hotkey combinations.

Beyond basic input, this skill provides advanced computer vision capabilities, including screenshot analysis and OCR (Optical Character Recognition). This allows agents to 'see' the screen, locate specific UI elements by image or text, and interact with applications on Windows, macOS, and Linux with high precision and reliability.

Desktop Control Use Cases

  • Automating repetitive data entry tasks across legacy desktop applications.
  • Performing end-to-end testing of graphical user interfaces by simulating user workflows.
  • Orchestrating multi-app workflows, such as transferring data from a web browser to a local spreadsheet.
  • Assisting users with complex desktop configurations or troubleshooting via remote automation.
  • Capturing and analyzing screen content for automated reporting or monitoring.

How Desktop Control Works

  1. The AI agent initiates a command through the uvx desktop-agent CLI to perform a specific action.
  2. The skill identifies the target category: mouse, keyboard, screen, message, or app control.
  3. For visual tasks, the skill captures screen data or utilizes OCR to identify coordinates of buttons or text labels.
  4. Commands are executed via PyAutoGUI, simulating the physical input required to interact with the OS.
  5. The skill returns a structured JSON response to the agent, confirming success or providing detailed error codes for recovery.

Desktop Control Setup

To get started with this skill, ensure you have the necessary environment and run the following command to see available options:

# Show all available commands for desktop automation
uvx desktop-agent --help

# Install or run specific mouse commands
uvx desktop-agent mouse --help

Desktop Control Data Schema & Taxonomy

The skill utilizes a standardized JSON response schema for all operations, ensuring predictable programmatic interaction for Openclaw Skills.

Field Type Description
success Boolean Indicates if the command executed without errors.
command String The specific category and command executed (e.g., mouse.move).
timestamp ISO8601 The exact time the operation occurred.
duration_ms Number Execution time in milliseconds.
data Object Command-specific output (coordinates, window lists, etc.).
error Object Detailed error code and message if success is false.

Desktop Control Advanced Features

  • Image-based element location with adjustable confidence levels for high-precision clicking.
  • Integrated OCR support to locate and interact with specific text strings on the screen.
  • Cross-platform application management to open, focus, and list windows on Windows, macOS, and Linux.
  • Safety fail-safes that allow users to abort automated operations by moving the mouse to a screen corner.
  • Native support for complex hotkeys and modifier combinations (e.g., ctrl,shift,esc).

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*