Most AI agents are trapped inside chat interfaces, generating code they can’t execute on your actual desktop. Dictator-Win closes that loop by giving LLMs direct, scriptable control over Windows GUI automation.
TL;DR: Dictator-Win is an open-source Windows AI agent that translates natural-language intent into desktop actions (UIA, Win32, COM) without brittle RPA. It runs locally, supports multiple LLM backends, and gained 751 stars in under a week.
The Problem With Current AI Workflows
Current AI workflows suffer from the “chat-to-desktop gap.” An LLM can write a Python script to manipulate Excel, but getting it to click a button in a legacy ERP, format a PowerPoint slide, or move data between a browser and a local .NET application usually requires brittle RPA tools, custom COM scripting, or manual copy-paste. Most agents are browser-bound or API-only; they lack a trusted execution layer for local Windows GUI automation. The result is context switching, broken state, and automation that breaks whenever a window resizes or a dialog appears.
How the Architecture Actually Works
+----------------+ +----------------------+ +--------------------------+ | User / LLM |----->| Intent Parser |----->| Action Planner | | (natural | | (dictator-win core) | | (task decomposition) | | language) | +----------------------+ +--------------------------+ +----------------+ | v +----------------------+ | Windows Automation | | Execution Engine | | - UI Automation (UIA)| | - Win32 API | | - COM / OLE | | - SendInput | +----------------------+ | +----------------------+ | Target Desktop App | | (Excel, ERP, etc.) | +----------------------+ Intent Parser
Converts user prompts into structured intent: target application, action type, and parameters. It normalizes variations like “open the spreadsheet” and “launch Excel” into the same execution target.
Action Planner
Decomposes intent into atomic desktop operations: click coordinates or element IDs, keyboard input, wait states, clipboard read/write, and window focus changes.
Execution Engine
Windows-native backends rather than cross-platform abstractions:
- UIA for modern WPF/UWP/WinUI apps and browsers with accessibility trees.
- Win32 API for legacy window handles, menus, and controls.
- COM / OLE for Microsoft Office automation.
- SendInput for low-level mouse/keyboard injection when higher-level APIs fail.
Safety Layer
Confirmation prompts for destructive actions (file delete, send email), allow-listed processes, and screenshot-based state verification before executing the next step.
Telemetry
Local action logs with success/failure states so the LLM can self-correct on the next turn instead of blindly retrying.
Quick Start (Copy-Paste Setup)
Requires Windows 10/11, Python 3.10+, and an LLM API key (OpenAI, Anthropic, or compatible local endpoint).
git clone https://github.com/sarvarbekabdupattoyev/dictator-win.git cd dictator-win python -m venv .venv .venv\Scripts\Activate.ps1 # PowerShell # .venv\Scripts\activate.bat # CMD pip install -r requirements.txt # PowerShell $env:OPENAI_API_KEY="sk-..." # CMD # set OPENAI_API_KEY=sk-... python -m dictator_win --task "Open Excel, create a new workbook, and save it to C:\temp\budget.xlsx" Example config.yaml:
llm: provider: openai model: gpt-4o api_key: ${OPENAI_API_KEY} automation: backend: uia confirm_destructive: true screenshot_verify: true default_timeout_ms: 10000 Run with a config file:
python -m dictator_win --config config.yaml --task "Extract rows from the ERP grid and paste them into the open Excel sheet" Real-World Use Cases & Honest Trade-Offs
Wins
- Legacy app automation – Drive Windows desktop apps that expose no API (older ERP systems, internal VB6 utilities, proprietary reporting tools) by targeting UIA and Win32 directly.
- Cross-app orchestration – Chain actions across Excel, Outlook, and a browser in a single natural-language task without writing glue code between them.
- Unattended desktop workflows – Execute overnight reconciliation or report generation on a Windows session, provided the workstation is unlocked or configured for autologon.
Limitations
- Windows-only – No native macOS or Linux support; the execution layer is tightly coupled to UIA, Win32, and COM.
- Fragile UI targeting – Automation breaks on DPI scaling changes, theme updates, or dynamic element IDs. Stable accessibility trees or image-based fallbacks are required, which adds maintenance overhead.
Direct Links & Daily Open-Source Drops
- dictator-win: https://github.com/sarvarbekabdupattoyev/dictator-win
- Issues & Discussions: https://github.com/sarvarbekabdupattoyev/dictator-win/issues
Tip
VibeNode AI — daily open-source AI drops, Claude Code hooks, and ready-to-import n8n JSON workflows. Join the Telegram channel: https://t.me/vibenode_ai. Search
#Drop11inside the channel for the latest release.
Have you bridged an LLM to local desktop GUI automation before, and what was the biggest blocker—UIA fragility, session permissions, or something else?
Need a fast fixed-price build (24–72h)? I build turnkey landing pages, Telegram bots/Mini Apps, and Python scrapers — test 8 live interactive demos here or DM
@vlad256bakon Telegram.