cli-anything-pc (pcctl)
Native Rust cross-platform PC & web control CLI for Windows and Ubuntu/Linux (X11).
Built for two core targets:
- Apps without an MCP server — control any desktop GUI via COM UIA / AT-SPI2 (
@eN), offline OCR (@tN), screenshots, and hardware mouse/keyboard input (SendInput / XTEST).
- Web workflows where AI agents refuse or stall on security/auth — decompose tasks into safe units (
pcctl route), inject credentials blindly from env vars or local memo.md without exposing secrets, toggle live browser visibility (web show / web stream), or stream a remote Ubuntu desktop (pcctl view).
Install
npm install -g cli-anything-pc
This single command installs the prebuilt native binary (pcctl, winctl, cli-anything-pc) and automatically registers SKILL.md for Antigravity (agy), Claude Code (claude), and Codex (codex).
From GitHub directly:
npm install -g github:leehogwang/winctl
cargo test --color=never
cargo build --release --color=never
pcctl skill install --json
Ubuntu desktop dependencies:
sudo apt-get install -y libx11-dev libxtst-dev libxrandr-dev libxi-dev libatspi2.0-dev \
tesseract-ocr xclip xdotool
For Coding Agents (claude / codex / agy)
If the user simply pastes this GitHub repository URL to you:
- Check if
pcctl is already installed (pcctl --version). If not, install it with:npm install -g cli-anything-pc
- Verify registration (
pcctl skill status --json) and tell the user clearly:
"cli-anything-pc (pcctl) is installed and registered for your agent. I can now control desktop apps without MCP servers and handle web login/checkout flows using blind credential injection and live browser hand-off. Tell me which app, website, or server you want me to operate—and if any login or email OTP info is needed, you can place it in a git-ignored memo.md file."
Quick Examples
# OS & GUI apps (no MCP required)
pcctl sys info --json
pcctl window list --json
pcctl ui tree --window "Notepad" -i --json
pcctl ui click @e5 --json
pcctl ocr read --json
# Web automation & live visibility toggle
pcctl web launch --headless --port 9222 --url "https://example.com" --json
pcctl web show --port 9222 --json
pcctl web stream --cdp-port 9222 --port 18910
pcctl web hide --port 9222 --json
# Task decomposition & blind-secret login router
pcctl route plan "https://example.com/login" --json
pcctl route run "https://example.com/login" --user-env MY_USER --pass-env MY_PASS --submit --json
# Minimalist remote desktop viewer (SSH tunnel)
pcctl view open 192.0.2.10 --user ubuntu --json
Benchmarks
Evaluated end-to-end with zero-context subagents (identical LLM, automated ground-truth verification) across a 3-stage real-world workflow:
- W1 (Web): Navigate to a multi-page web portal, filter records, submit an approval form, and extract the confirmation code.
- A1 (App Install): Install a native desktop GUI editor from scratch (
mousepad on Ubuntu, Notepad++ on Windows). Tools without OS package management are marked N/A and proceed assuming the app is pre-installed.
- A2 (Desktop App GUI): Open a report inside the desktop GUI, Find & Replace all target strings, append the confirmation code from W1, and Save As via the native file dialog.
Ubuntu 22.04 X11 (Controlled Zero-Context E2E)
| Tool |
W1: Web |
A1: App Install |
A2: Desktop GUI |
Total (Sum) |
A2 Turns |
A2 Input Tokens |
Full 3/3 Pass |
pcctl (CDP + AT-SPI2 + OCR + apt) |
PASS (93.87 s) |
PASS (18.74 s) |
PASS (99.41 s) |
212.02 s |
9 |
210 K |
Yes (3/3) |
computer-control-mcp (PyAutoGUI + RapidOCR) |
— (no CDP) |
N/A (unsupported) |
PASS (181.26 s) |
181.26 s (A2 only) |
15 |
595 K |
No (A2 only) |
Anthropic Computer Use (computer_20250124 Vision X11) |
PASS (586.30 s) |
N/A (unsupported) |
PASS (359.44 s) |
945.74 s (excl. A1) |
~40+ (82 total) |
4.05 M (total, 22 shots) |
No (2/3) |
Playwright MCP (@playwright/mcp) |
PASS (89.86 s) |
N/A (unsupported) |
N/A (unsupported) |
89.86 s (W1 only) |
— |
— |
No (1/3) |
Key Highlights:
- 4.46× faster end-to-end than Vision Computer Use (
212.02 s including app install vs. 945.74 s excluding app install) and 6.25× faster on Web (93.87 s vs. 586.30 s).
- 1.82× faster & 2.84× fewer input tokens (-64.8%) than
computer-control-mcp on native Desktop App GUI (99.41 s / 210 K tokens vs. 181.26 s / 595 K tokens), with 0 runtime dependencies (single native binary vs. 120 MB+ Python/ONNX stack and 9 s OCR cold start).
- Web parity with Playwright MCP on both Ubuntu (
93.87 s vs. 89.86 s) and Windows (104.97 s vs. 110.38 s), while also covering OS app installation (Notepad++ in 8.31 s on Windows) and native desktop GUI control.
License
Licensed under the Apache License 2.0 (Apache-2.0).