injaneity/pi-computer-use
Summary
pi-computer-use is an extension for Pi agents that enables them to view and interact with desktop applications on macOS and Windows by clicking, typing, scrolling, and waiting for UI changes.
View Cached Full Text
Cached at: 07/16/26, 10:21 AM
injaneity/pi-computer-use
Source: https://github.com/injaneity/pi-computer-use
pi-computer-use
pi-computer-use lets AI agents use desktop apps on macOS and Windows.
The macOS helper requires macOS 14 or newer.
An agent can look at an app window, understand the buttons and text inside it, and perform actions like clicking, typing, scrolling, and waiting for something to change. This is useful when the agent needs to work with a normal desktop app instead of an API, a terminal command, or a file.
New to computer use? Start with: Wait, what exactly is Computer Use?
What this package does
This is a Pi extension. After installation, Pi agents get tools for:
- finding open apps and windows
- observing what is visible in a window
- searching the visible interface for text, buttons, and controls
- inspecting parts of the interface in more detail
- clicking, typing, scrolling, and pressing UI controls
- waiting for UI changes
In short: it gives an agent a controlled way to operate desktop software.
What this package is not
pi-computer-use is not a replacement for app APIs or MCP servers. If an app has a reliable direct integration, use that first.
Computer use is most helpful when the only available interface is the app on screen.
Install
pi install npm:@injaneity/pi-computer-use
Start Pi and complete the platform setup flow.
On macOS, grant permissions to:
/Applications/pi-computer-use.app
Required macOS permissions:
- Accessibility
- Screen Recording, shown as Screen and System Audio Recording on newer macOS versions
The macOS setup flow registers the helper first, so it should already appear in both Settings panes. Enable the toggles and choose Recheck.
On Windows, use an interactive desktop session. Windows support uses the platform accessibility APIs and does not use the macOS helper app or TCC permission flow.
Use /computer-use inside Pi to show the active configuration and where it came from.
Main tools
find_rootsobserve_uisearch_uiexpand_uiinspect_uiact_uiread_textwait_for
See docs/usage.md for the full tool reference.
Documentation
Development status
The architecture is centered on immutable, state-scoped observations. Desktop surfaces and CDP pages form one multi-root forest; progressive outline queries remain cached, while live work is ordered per physical resource so independent roots can run in parallel. act_ui accepts one or more intent steps, preserves focus across dependent input, verifies delivery, recovers safely, stores one complete successor state, and returns a compact diff when identity confidence allows. Older direct tools such as screenshot, click, set_text, and computer_actions are no longer part of the public extension surface.
License
MIT
Similar Articles
@injaneity: pi-computer-use v0.4.3 is here! an update to bring us to parity with codex (who to their credit, stepped up their game …
pi-computer-use v0.4.3 is released, bringing parity with Codex, adding a ghost cursor, parallel tasks for subagents, and improved batching, resulting in 50% latency improvement and better handling of complex use cases like Microsoft apps.
@injaneity: i reverse engineered @OpenAI's Codex Computer Use and built pi-computer-use: a model agnostic computer use tool for my …
A developer reverse-engineered OpenAI's Codex Computer Use to build pi-computer-use, an open-source, model-agnostic macOS automation tool featuring ax-first navigation and vision fallback for supported models.
can1357/oh-my-pi
Oh My Pi is an open-source coding agent built on Pi, offering a wired-in IDE, support for 40+ providers, built-in tools, and significant performance improvements across models.
Perplexity Personal Computer for Windows
Perplexity has launched a Personal Computer for Windows that lets users run AI agents across local files and apps.
Open Computer Use
Open Computer Use is an open-source MCP (Model Context Protocol) for AI agents to control computer interfaces.