DeskPilot
# DeskPilot
**A low-token Windows computer-use MCP server.** Let Claude, Codex, Cursor, Copilot or any other MCP agent use your real Windows PC the way you do: desktop apps, File Explorer, Settings, and websites in your own browser. You watch everything it does and can stop it at any moment.
[](LICENSE)



[](https://glama.ai/mcp/servers/iamtahiralvi/DeskPilot)
> **Platform note:** DeskPilot controls a **Windows** desktop and has been tested on **Windows 11 only**. Windows 10 will probably work but is untested.
>
> The server *installs and starts* on Linux and macOS, so MCP registries can check it there. But it can't control anything on those systems: every tool replies that DeskPilot only runs on Windows. It's built on Windows UI Automation, Win32 input and Windows OCR, which those systems don't have.
**Listed on [Glama](https://glama.ai/mcp/servers/iamtahiralvi/DeskPilot)**, the MCP server directory.
---
## Screenshots
<p align="center">
<img src="docs/screenshots/overlay-working.png" alt="DeskPilot working on a screen: thin border, status chip at the top and a Claude tag next to the real mouse pointer" width="820">
<br><sub>The agent at work: a thin border marks its screen, the chip says what's happening, and a small tag follows your <b>real</b> mouse pointer.</sub>
</p>
<table>
<tr>
<td align="center" width="50%">
<img src="docs/screenshots/panel-working.png" alt="Control panel with live status, activity log and Pause / Take over / Stop buttons" width="300"><br>
<sub><b>Control panel</b>: live step, activity log, token count, and Pause / Take over / Stop.</sub>
</td>
<td align="center" width="50%">
<img src="docs/screenshots/permission.png" alt="Permission dialog asking to allow a click on Submit" width="400"><br>
<sub><b>Ask-first permissions</b>: risky steps wait for your OK and are auto-denied after 60 s.</sub>
</td>
</tr>
<tr>
<td align="center" width="50%">
<img src="docs/screenshots/picker.png" alt="Screen picker with Screen 1, Screen 2 and All screens" width="400"><br>
<sub><b>Screen picker</b>: give the agent one display (or all) and keep the others for yourself.</sub>
</td>
<td align="center" width="50%">
<img src="docs/screenshots/overlay-paused.png" alt="Paused state with a dashed border" width="400"><br>
<sub><b>Paused</b>: the border turns dashed. Resume with Ctrl+Alt+Esc or from the panel.</sub>
</td>
</tr>
</table>
---
## Why DeskPilot
Most computer-use tools send a screenshot to the model on every step, which is slow and costs a lot of tokens. DeskPilot reads the screen as **text**:
```
e12 button "Install"
b31 link "Create app"
e40 edit "Search" ="hello"
```
The agent clicks by reference (`e12`) or by visible text (`"Install"`). After each batch of actions it gets back **only what changed**. Screenshots are a last resort.
**It looks before it acts.** If the agent hasn't looked at the screen (or acted) in the last minute, or you paused it or took over since, its next action is held back: it gets the current screen instead and must send steps that fit what is really there, not what it assumed. (`look_before_acting: false` in the policy turns this off; `look_fresh_seconds` sets the minute.)
**It says what each step really did.** After a batch, the agent gets one line per step: whether the screen changed, where keyboard focus went, how many characters were pasted, and whether typed text was verified. If a click brings a different app to the front than the window clicked, that step says so, so the agent doesn't go on typing into the wrong app. A batch where nothing changed is flagged with a warning instead of "ok", so the agent doesn't carry on as if it had worked. Screenshots and results wait until the screen has stopped changing, ignoring a video or animation that never stops.
Snapshots are trimmed without losing anything the agent can use: an element nested inside an identical wrapper is listed once, a row that only repeats part of its parent row is folded into it, empty unnamed rows are skipped, and the browser's bookmarks bar becomes one line (`find()` and clicking by text still reach every bookmark). On a WhatsApp Web window this cut a snapshot from about 1,400 to about 860 tokens.
## Features
- **π₯οΈ Pick a display.** With more than one monitor, you choose which one the agent may see and control. It can't touch the others. You can also allow all screens.
- **π±οΈ One cursor.** The agent drives your real mouse pointer, so there is no second, fake cursor. A small "Claude" tag follows the pointer while the agent acts.
- **π² Clear on-screen status.** A thin black-and-white border marks the controlled screen (dashed when paused), with a status chip and click ripples.
- **ποΈ Control panel.** A floating panel shows the current step, recent activity and token use, with **Pause / Take over / Stop** buttons and a **Kill switch**. When you have a second monitor, it sits there so it never covers the agent's work.
- **βΉοΈ Always interruptible.** **Ctrl+Alt+Esc** pauses or resumes at any time. **Ctrl+Alt+Backspace** (or **Kill switch** on the panel) ends DeskPilot at once, even mid-action: the server process is terminated, held keys and mouse buttons are released, and the AI has no desktop tools left. If the AI restarts DeskPilot later, it must ask you first (or run `deskpilot unlock`). If you grab the mouse while the agent works, it steps aside, waits until you let go, then carries on (and tells the AI the screen may have changed).
- **π» Gets out of your way.** When a task finishes, the border, tag and panel disappear.
- **π Precise web control.** In Chrome, Edge or Brave, pages are read through the DevTools protocol (`b12 button "Create app"`), including off-screen elements. Clicks and typing still use the real mouse and keyboard.
- **π¨ Canvas apps.** Apps drawn on a canvas (Flutter web apps, design tools, games) have no readable elements, so DeskPilot reads them by OCR: click text with `{"click": {"ocr": "Save"}}`, wait with `{"wait_ocr": "Save"}` or `{"wait_stable": "window"}`, check a value with `{"read": β¦}`, and type with `"verify": true`, which reads the field back and retypes slower when keys were dropped. `act(β¦, observe="screenshot")` acts and looks in one call.
- **π Your clipboard stays yours.** Typing uses real keystrokes, never the clipboard. Long text and files go in with `{"paste": β¦}` / `{"paste_file": β¦}`, which put back whatever you had copied and keep the pasted text out of Win+V history. `{"navigate": url}` opens a URL through the address bar without touching the clipboard either.
- **π Routines.** Record a task once, add `{{placeholders}}`, and replay it with one call.
- **π‘οΈ Admin mode, only when you allow it.** Windows blocks normal programs from clicking or typing into programs that run as administrator (installers, Task Manager, regedit, hardware tools like OCCT or HWiNFO). DeskPilot spots these windows and says so, instead of clicking blindly. When the agent needs one, it can ask for **admin mode**: you confirm, then approve a Windows UAC prompt. See [Admin windows](#admin-windows-and-admin-mode).
- **π Ask-first permissions.** Deleting, paying, sending, installing, signing out, closing windows, typing into password fields and opening terminals all show an **Allow once / Allow for session / Deny** dialog. An unanswered dialog is denied after 60 s. Everything is logged to `~/.deskpilot/audit.jsonl`.
- **π¦ One AI at a time.** If you run several AI sessions, only one can use the mouse and keyboard at a time. The first to act holds the computer until its task ends; the others are told "BUSY: another AI session (claude in my-project) is using this computer" instead of fighting over the cursor. Reading the screen never waits. A lock left by a crashed or killed session is taken over automatically.
- **πΌ Step log.** Every step is logged with a small picture of the screen right after it (private windows blacked out). Click **What did it do?** on the panel, or run `deskpilot timeline`, to review it, even after a kill. Kept for 7 days.
- **π Privacy.**
- API keys, tokens, card numbers and IBANs are redacted before the model sees them.
- Password fields show as `***`.
- Password-manager and security windows are never read, captured or clicked.
- Hidden text is stripped before the model sees it: invisible Unicode (including "tag" characters that can spell out a whole hidden sentence), and in precise browser mode, text with a tiny font or the same colour as its background. When hidden instructions are found, the AI is warned that the page is suspicious.
## Requirements
- Windows 11 (tested), 64-bit. Not Linux or macOS (see the platform note above).
- [uv](https://docs.astral.sh/uv/), which installs Python 3.11+ for you
- An MCP-capable AI client (see [Connect your AI tool](#connect-your-ai-tool))
## Install
### Claude Code plugin (recommended)
In Claude Code, run:
```text
/plugin marketplace add iamtahiralvi/DeskPilot
/plugin install deskpilot@deskpilot
```
On Claude Code 2.1.275 or later, one command does both: `/plugin install deskpilot --marketplace iamtahiralvi/DeskPilot`.
The plugin includes everything:
- **the MCP server**, run through [uv](https://docs.astral.sh/uv/). The first start takes about a minute while uv sets it up.
- **the DeskPilot skill**, which teaches Claude the cheap, safe way to use the tools.
- **a hook that auto-approves the read-only tools** (snapshot, find, screenshot, screen info, done), so you aren't asked every time Claude reads the screen. Tools that click, type or launch still ask as usual.
Requirements: Windows and `uv`. If you don't have uv: `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"`.
> Use the plugin **or** the options below, not both. Otherwise Claude Code runs two DeskPilot servers. If you
> installed DeskPilot before, remove the old registration first: `claude mcp remove deskpilot --scope user`.
### Let Claude install it for you
Open **Claude Code** (the terminal app, the **Code** tab in the Claude desktop app, or the VS Code extension; it works with a Pro plan). Paste this prompt:
```text
Install the DeskPilot MCP server on this Windows PC from https://github.com/iamtahiralvi/DeskPilot
1. If `uv` is not installed, install it:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
2. Install DeskPilot:
uv tool install --python 3.13 git+https://github.com/iamtahiralvi/DeskPilot
3. Register it with Claude Code for all projects:
claude mcp add deskpilot --scope user -- "%USERPROFILE%\.local\bin\deskpilot.exe" serve
(expand %USERPROFILE% to the real path)
4. Install the skill: download these files from
https://raw.githubusercontent.com/iamtahiralvi/DeskPilot/main/skills/deskpilot/
(SKILL.md, reference/act-steps.md, reference/web.md, reference/troubleshooting.md, reference/routines.md)
into %USERPROFILE%\.claude\skills\deskpilot\, keeping the reference\ folder
5. If the Claude desktop app is installed (%APPDATA%\Claude\claude_desktop_config.json exists), also add
"deskpilot": { "command": "<full path to deskpilot.exe>", "args": ["serve"] } under "mcpServers",
keeping every existing entry.
6. Run `deskpilot doctor` and show me the output.
Then tell me to restart Claude (or run /mcp) so the new tools load.
```
Claude runs the commands and asks your permission for each one. When it's done, restart Claude. Then try something like *"Open Notepad and type hello"*. The screen picker appears the first time.
> Claude Desktop's chat on its own can't run install commands, so do the install from Claude Code, as above. After that, the DeskPilot tools also work in Claude Desktop chats (step 5).
### Option A: installer script
```powershell
git clone https://github.com/iamtahiralvi/DeskPilot.git
cd DeskPilot
powershell -ExecutionPolicy Bypass -File install.ps1
```
The script:
- installs `uv` if it's missing
- installs the `deskpilot` command
- creates the default permission rules
- registers DeskPilot with **Claude Code**
- installs the Claude Code skill
- prints config snippets for other tools
### Option B: install with uv yourself
```powershell
uv tool install --python 3.13 git+https://github.com/iamtahiralvi/DeskPilot
```
This puts `deskpilot.exe` in `%USERPROFILE%\.local\bin`. Run `uv tool update-shell` once if that folder isn't on your `PATH`.
Then check that it works:
```powershell
deskpilot doctor # lists your screens and checks Windows OCR
```
### Option C: run without installing (uvx)
You can use `uvx --from git+https://github.com/iamtahiralvi/DeskPilot deskpilot serve` as the command in any client below. The first start is slower because uv builds it.
---
## Connect your AI tool
DeskPilot is a standard **stdio** MCP server. In every client, the command is `deskpilot` with the argument `serve`.
> **Tip:** Desktop apps such as Claude Desktop and Cursor sometimes don't see your `PATH`. If the server doesn't start, use the full path instead: `C:\Users\<you>\.local\bin\deskpilot.exe` (in JSON: `C:\\Users\\<you>\\.local\\bin\\deskpilot.exe`).
### Claude Code
```powershell
claude mcp add deskpilot --scope user -- deskpilot serve
```
Optional: install the bundled skill, which teaches Claude the cheapest way to use the tools.
```powershell
mkdir "$env:USERPROFILE\.claude\skills\deskpilot" -Force
Copy-Item skills\deskpilot\* "$env:USERPROFILE\.claude\skills\deskpilot\" -Recurse -Force
```
Restart Claude Code, or run `/mcp` to reconnect.
### Claude Desktop
Edit `%APPDATA%\Claude\claude_desktop_config.json`:
```json
{
"mcpServers": {
"deskpilot": { "command": "deskpilot", "args": ["serve"] }
}
}
```
Restart Claude Desktop.
### OpenAI Codex CLI
```powershell
codex mcp add deskpilot -- deskpilot serve
```
Or add it to `~/.codex/config.toml`:
```toml
[mcp_servers.deskpilot]
command = "deskpilot"
args = ["serve"]
startup_timeout_sec = 30
tool_timeout_sec = 300
```
### Cursor
Add it to `%USERPROFILE%\.cursor\mcp.json` (global) or `.cursor/mcp.json` (one project):
```json
{
"mcpServers": {
"deskpilot": { "command": "deskpilot", "args": ["serve"] }
}
}
```
### VS Code (GitHub Copilot agent mode)
```powershell
code --add-mcp '{\"name\":\"deskpilot\",\"command\":\"deskpilot\",\"args\":[\"serve\"]}'
```
Or create `.vscode/mcp.json` in your workspace:
```json
{
"servers": {
"deskpilot": { "type": "stdio", "command": "deskpilot", "args": ["serve"] }
}
}
```
### Windsurf
Edit `%USERPROFILE%\.codeium\windsurf\mcp_config.json`:
```json
{
"mcpServers": {
"deskpilot": { "command": "deskpilot", "args": ["serve"] }
}
}
```
### Gemini CLI
```powershell
gemini mcp add deskpilot deskpilot serve
```
Or add the same `mcpServers` block to `%USERPROFILE%\.gemini\settings.json`.
### Any other MCP client
Use a stdio server with command `deskpilot` and args `["serve"]`. Allow a generous tool timeout (about 300 s), because permission dialogs wait for you.
---
## First run: choose your display
The first time the agent uses DeskPilot, a **screen picker** opens:
1. Pick the monitor the agent may control: **Screen 1**, **Screen 2**, β¦ or **All screens**.
2. Pick a permission mode:
- **Normal** asks only before risky actions.
- **Strict** asks before every batch of actions.
3. Tick **Remember my choice** to skip the picker next time.
With two or more displays, a good setup is to give the agent one screen and keep working on the other. The control panel then appears on your screen, not the agent's.
To change the screen later:
- run `deskpilot pick`, or
- ask the agent to call `screen_info(op="pick")`.
## Using it
Just ask your agent, for example:
> Open the Microsoft Store and show me the About page of WhatsApp.
> In File Explorer, create a folder called "Invoices 2026" on my Desktop.
> Go to my dashboard in Chrome and download last month's report.
While it works:
| You want to⦠| Do this |
|---|---|
| Pause / resume | **Ctrl+Alt+Esc**, or **Pause** on the panel |
| Do something yourself | **Take over**, then **Give back** |
| End the task | **Stop** (click **Unlock** later to allow it again) |
| Something is going wrong | **Ctrl+Alt+Backspace** or **Kill switch**: DeskPilot is terminated at once |
| Approve a risky step | **Allow once** / **Allow for session** in the dialog |
## Browsers
**By default, no setup is needed.** DeskPilot reads your everyday Chrome, Edge or Brave through the screen, using Windows accessibility, the same way screen readers do. It never connects to the browser's developer tools, so you never see Chrome's **"Allow remote debugging?"** prompt.
For more precise web control (`b12` refs, elements outside the visible area), there are two options:
1. **The DeskPilot browser (recommended).** Ask the agent to open `agent browser https://example.com`. It's a separate Chrome profile that DeskPilot starts itself, so it has precise control with no prompt. Sign in once and it stays signed in.
2. **Your everyday Chrome or Edge (opt-in).**
1. Set `use_my_browser: true` in the policy file.
2. Open `chrome://inspect/#remote-debugging` and turn remote debugging on.
3. The first time DeskPilot reads a page in each session, the browser asks **"Allow remote debugging?"**. **You** click Allow. DeskPilot will never click it for you, because that prompt protects your logged-in sessions and cookies from being taken over.
## Tools
10 tools, about 2k tokens of definitions:
| Tool | What it does |
|---|---|
| `screen_info` | Screens, the controlled screen, mode. `pick` reopens the picker; `switch` changes the screen (asks you); `admin` asks you to turn on admin mode, `admin_off` ends it |
| `snapshot` | Text list of elements with refs. Scopes: `window`, `page`, `screen`, `taskbar`, `ocr` (clickable OCR refs). `region` reads just one area by OCR |
| `find` | Find elements by text or role, across the web page, the accessibility tree and OCR |
| `act` | A batch of steps (see below). Returns one line per step and what changed; `observe="screenshot"` also returns an image |
| `launch` | Open an app, URL, URI, file or folder, or `agent browser <url>`. Switches to it if it's already open |
| `window` | list, focus, minimize, maximize, restore, close, move_here |
| `clipboard` | Get or set clipboard text, or set it from a text file. What you had copied is saved and put back when the task ends (or with `restore`) |
| `routine` | list, run, start, save, show or delete saved routines |
| `screenshot` | See the screen when text isn't enough: whole screen, one window (`ref="window"`/`"w3"`), an element or a region; click what you see by `[x, y]`. Waits until the screen stops changing, and warns when the image is black (wrong or locked screen) |
| `done` | Task finished: hides the border, tag and panel, and returns the steps taken plus a link to the step log |
### act steps
| Step | Example |
|---|---|
| Click, double-click, right-click, hover | `{"click": "e12"}`, `{"dblclick": "Report.pdf"}`, `{"click": {"ocr": "Save"}}`, `{"click": [640, 360]}` |
| Type (real keystrokes) | `{"type": "hello", "into": "Message", "clear": true, "enter": true}`; `"verify": true` checks the text arrived and retypes slower if keys were dropped; `"delay_ms": 60` types slower |
| Paste text or a file | `{"paste": "β¦", "into": "e5", "clear": true}`, `{"paste_file": "C:\\work\\notes.txt"}` (your clipboard is put back) |
| Go to a URL | `{"navigate": "https://example.com"}`, `"new_tab": true` |
| Keys | `{"key": "ctrl+s"}`, `{"key": "tab", "repeat": 3}`, `{"key_down": "shift"}`, `{"key_up": "shift"}` |
| Scroll, drag | `{"scroll": "down", "amount": 5, "at": "e3"}`, `{"drag": "e4", "to": "e9"}` |
| Wait | `{"wait": "Inbox"}`, `{"wait_ocr": "Save"}`, `{"wait_stable": "window"}`, `{"sleep": 1}` |
| Read a value | `{"read": [400, 220, 300, 40]}` (OCR text of that area) |
| Windows and apps | `{"focus": "w3"}`, `{"launch": "Calculator"}` |
Targets are a ref (`e12`, `b12`), visible text, text found by OCR (`{"ocr": "Save"}`), or `[x, y]` pixels of the latest screenshot.
## Admin windows and admin mode
Windows gives every program an *integrity level*. DeskPilot runs at your normal level, like your browser. Programs that ran after a UAC prompt run at the **administrator** level. That includes installers, Task Manager, regedit, Device Manager, and tools such as OCCT, HWiNFO, DDU or MSI Afterburner. Windows silently drops clicks and keystrokes from normal programs into admin programs, and hides their buttons and fields too. This is called *User Interface Privilege Isolation* (UIPI). It stops malware from clicking "Yes" inside an admin tool.
What DeskPilot does about it:
- **It tells the agent.** Admin windows are marked `admin` in `window("list")`. A snapshot of one says what's going on. A click, typing or a key aimed at one is **not sent**, and the agent gets an `ADMIN WINDOW` message instead of a vague "no visible change". This also stops a dropped click from landing on the window behind it.
- **Screenshots and OCR keep working**, so the agent can still read an admin window and guide you through it.
- **Admin mode, if you want it.** The agent calls `screen_info(op="admin")`:
1. DeskPilot asks you: **Allow once / Allow for session / Deny**.
2. Windows shows a **UAC prompt**. It names *Python*, the program DeskPilot runs on. Click **Yes**.
3. A small DeskPilot **admin helper** starts. Until the task ends (`done()`), DeskPilot's mouse and keyboard input, window commands and screen reading go through the helper, so they reach admin windows too. If the agent goes quiet for 5 minutes (`admin_idle_minutes`), admin mode turns off by itself. A shorter pause, while the agent thinks, doesn't cost you another UAC prompt.
Apps the agent opens with `launch()` still start at the normal level. The helper only talks to the DeskPilot process that started it, over a private pipe. It quits when admin mode turns off, when the AI session closes, or when you hit the kill switch. Before quitting, it lets go of any key or mouse button that is still held down.
- **UAC prompts themselves can't be clicked**, not even in admin mode. Windows shows them on a separate secure desktop, so they're always yours to answer. DeskPilot notices when that desktop is showing. It tells the agent a prompt is waiting for you, rather than handing it a black screenshot, and runs none of its steps until you've answered.
- **Apps that ask for admin rights are flagged at launch.** DeskPilot reads an app's manifest before starting it (HWiNFO, GPU-Z, msconfig, Registry Editor, most installers). It tells the agent a UAC prompt is coming that only you can answer, and waits up to 2 minutes for you rather than giving up after 10 seconds.
- **An admin window in front blocks the mouse everywhere.** While an admin window is the active window, Windows won't let DeskPilot move the pointer at all, even over other windows. DeskPilot says so, rather than mistaking the pointer that won't move for you grabbing the mouse. The agent can bring the window it needs to the front first, or ask for admin mode.
Set `admin_mode` in the policy file:
| Value | Behaviour |
|---|---|
| `ask` (default) | The agent can ask. You confirm, then approve UAC. Admin mode ends at `done()`, or after `admin_idle_minutes` (default 5) without a call |
| `always` | One UAC prompt at the agent's first call, then admin mode stays on until the AI session ends |
| `off` | Never. Admin windows can be read, but never clicked or typed into |
Admin mode gives the agent the same reach into admin windows that you have. Turn it on only for tasks you're watching.
## Configuration
Rules live in `~/.deskpilot/policy.yaml`. `deskpilot policy` prints its path. Edit the file, then restart your agent.
| Key | Meaning |
|---|---|
| `ask_click_words`, `ask_click_words_extra` | Click targets that need your OK (delete, pay, send, installβ¦) |
| `deny_click_words` | Click targets that are always refused |
| `ask_keys` | Key combos that need your OK (`alt+f4`, `ctrl+w`β¦) |
| `ask_launch` | Programs that need your OK (terminals, regeditβ¦) |
| `ask_close_window`, `ask_password_typing`, `ask_switch_screen` | Ask before these actions |
| `confirm_timeout_seconds` | Auto-deny an unanswered dialog after this long (default 60) |
| `private_windows` | Windows that are never read, captured or clicked |
| `redact_secrets` | Redact keys, tokens and card numbers from what the model sees |
| `use_my_browser` | Default `false`: your everyday browser is read through the screen, with no prompt. `true` = also use DevTools on it (you approve Chrome's prompt) |
| `timeline`, `timeline_keep_days` | Keep the step log with screen pictures (default `true`, 7 days) |
| `look_before_acting` | Hold back an action when the agent hasn't looked at the screen recently (default `true`) |
| `look_fresh_seconds` | How recent "recently" is: a look or action within this many seconds counts (default `60`) |
| `token_budget_per_task` | Pause the agent once one task (until it calls `done()`) has received this many tokens from DeskPilot, so a stuck loop can't burn tokens unseen. **Resume** on the panel allows another budget's worth (default 100000, `0` = no limit) |
| `hide_overlay_after_idle_seconds` | Hide the overlay when the agent goes quiet (default 30, `0` = never) |
| `admin_mode` | `ask` (default), `always` or `off`: whether the agent may use windows that run as administrator, after a UAC prompt. See [Admin windows](#admin-windows-and-admin-mode) |
| `admin_idle_minutes` | In `ask` mode, also end admin mode after this many minutes without a call (default 5, `0` = only at `done()`) |
| `wait_for_user_mouse_seconds`, `user_mouse_idle_seconds` | When you grab the mouse, the agent waits for it to be still this long (default 1.5 s), for up to 60 s per call |
Other files in `~/.deskpilot/`:
- `session.json`: the chosen screen and mode
- `routines/*.json`: saved routines
- `audit.jsonl`: the action log
- `timeline/`: the step log and its pictures (`deskpilot timeline` opens it)
## CLI
```
deskpilot serve run the MCP server over stdio (your AI client runs this)
deskpilot pick choose the screen and permission mode
deskpilot policy create or print the path of the rules file
deskpilot doctor list screens and check that OCR works
deskpilot timeline open the step log: what the agent did, with a picture after each step
deskpilot unlock allow DeskPilot again after you used the kill switch
```
## Safety
DeskPilot controls your **real** mouse and keyboard. Before you let an agent run unattended:
- Give it a screen with nothing sensitive open, or use **Strict** mode.
- Keep the ask-first rules on, and add your own words to `ask_click_words_extra`.
- Remember that **Ctrl+Alt+Esc** always pauses it, and **Ctrl+Alt+Backspace** ends it at once.
- Review what it did afterwards with `deskpilot timeline` or **What did it do?** on the panel.
AI agents make mistakes. You are responsible for what you let them do on your computer.
## Development
```powershell
git clone https://github.com/iamtahiralvi/DeskPilot.git
cd DeskPilot
uv sync
uv run --group dev pytest
uv run deskpilot doctor
```
The `Dockerfile` exists only so MCP registries such as Glama can build the server and check that it starts and lists its tools. Inside a Linux container, DeskPilot can't control a desktop.
After you change the code, reinstall the global command (`--reinstall` makes uv rebuild instead of reusing a cached build):
```powershell
uv tool install --force --reinstall --python 3.13 .
```
Built with:
- the official [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk)
- the raw UI Automation COM API, with cache requests so a whole window is read in one call
- the Chrome DevTools Protocol
- `mss` and `Pillow`
- `pywin32`
- Windows OCR through `winrt`
- `customtkinter` for the picker, dialogs and control panel
Issues and pull requests are welcome.
## License
[MIT](LICENSE). Free to use, change and share for any purpose, including commercial use.
TDQS
Scored across 10 tools
Most tools target clearly distinct desktop-automation concerns: acting, finding elements, screenshots, snapshots, windows, clipboard, routines, and screen management. There is minor overlap between act and launch because act can also launch apps/URLs, and find vs. snapshot both help locate UI elements, but descriptions mostly clarify when to use each.
Names are consistently lowercase and mostly single words or snake_case, with no chaotic casing. However, the set mixes action verbs (act, find, launch, done) and resource nouns (clipboard, routine, screenshot, snapshot, window), so there is no strong predictable verb_noun pattern.
Ten tools is well scoped for a desktop automation agent. Each tool has a clear role and the set avoids being either thin or bloated.
The surface covers the core desktop-control loop: inspect screen/UI, interact, manage windows, launch apps, clipboard, reusable routines, and finish cleanly. Minor gaps remain around explicit window closing/killing and standalone waiting, though waits are available inside act steps.