injaneity/pi-computer-use

Let Pi control your apps on MacOS & Windows

What it solves

pi-computer-use allows AI agents to interact with desktop applications on macOS, Windows, and Linux by simulating human-like interaction. It is designed for scenarios where an application lacks a direct API or integration, enabling agents to "see" and "operate" software through the graphical user interface.

How it works

This package acts as an extension for Pi agents, providing a suite of tools to interface with the operating system's accessibility and window management APIs. It allows agents to find open windows, observe UI elements (like buttons and text), and execute actions such as clicking, typing, scrolling, and waiting for interface changes. It uses a state-scoped observation model to track UI changes and verify that actions have been successfully delivered.

Who it’s for

This tool is for developers building AI agents that need to perform tasks within desktop environments where traditional programmatic automation (like APIs or CLI tools) is unavailable or insufficient.

Highlights

  • Cross-platform support for macOS, Windows, and Linux.
  • Provides a comprehensive toolset for UI inspection, including find_roots, observe_ui, and search_ui.
  • Enables complex interaction flows like act_ui for multi-step inputs and wait_for to handle dynamic UI updates.
  • Designed for reliability by verifying action delivery and managing state-scoped observations.

Related

  • Project
  • Project
  • Project
  • Project
  • Project