Enable AI to control macOS and Windows desktop apps using semantic UI understanding, not fragile screen coordinates. An open source automation game changer.

By Meng Li

Published: 2026-07-15

URL: https://pythonlibraries.substack.com/p/enabling-ai-to-use-desktop-apps-like


Today, let me introduce pi-computer-use — a project that genuinely blew my mind.Image

It can control macOS and Windows desktop applications, and unlike traditional tools that rely on brittle screenshot-based coordinate clicking, it first reads the app’s accessibility tree, understands the interface, and then acts. Vision is only used as a fallback.

Project Overview

Before diving into pi-computer-use, let’s briefly talk about Pi.

Pi is an open-source AI coding agent that lets developers collaborate with AI using natural language to complete coding tasks. Unlike traditional AI assistants, Pi emphasizes tool use and autonomous execution — it can run commands, manipulate files, call APIs, and behave like a real programmer.

pi-computer-use is a custom-built extension for Pi. Its core goal is simple: enable AI to operate desktop applications just like a human.