# Windows Computer Use MCP Runtime for AI Agents — One-Click Setup by Okno [**English**](README.md) | [Русский](README.ru.md) | [简体中文](README.zh-CN.md) > Windows-native MCP runtime for AI agents > > **Computer Use for Windows** is Okno's first public capability for desktop > automation over `MCP` / `STDIO`. | Platform | Transport | Capability | Runtime | Core execution model | | --- | --- | --- | --- | --- | | Windows 11 | Local MCP over `STDIO` | `Computer Use for Windows` | C# / .NET 8 | UIA semantics + screenshot-backed verification | ## Why Okno Okno turns real Windows desktop apps into an operator surface for AI agents. It is built for cases where shell commands, browser-only automation, or app APIs are not enough. The current public capability, **Computer Use for Windows**, lets an agent inspect windows, read action-ready state, act on the target UI, and verify the result instead of assuming that a dispatched click or keystroke means success. This repository is not a generic Windows scripting toolkit and not a browser automation project in disguise. It is a Windows-native runtime for agentic GUI work, with a product-ready local transport based on `MCP over STDIO`. ## What Computer Use for Windows Can Do Today Today the shipped public surface can: - discover running desktop apps and windows through `list_apps`; - capture screenshot-backed state through `get_app_state`; - return an accessibility tree, geometry, `captureReference`, and a short-lived `stateToken`; - perform `click`, `press_key`, `set_value`, `type_text`, `scroll`, `perform_secondary_action`, and `drag`; - return `verify_needed` instead of pretending that a low-confidence action is semantically complete; - return `successorState` on supported actions through `observeAfter=true`; - work with both strong-UIA applications and weaker Qt / Electron / custom GUI targets through bounded physical fallback paths. ## How It Works Okno runs locally on Windows as an MCP runtime. The current product-ready transport is **local `STDIO`**, and the current polished integration path is the Codex plugin shipped in this repository. `Computer Use for Windows` is the current public capability layer. Under the hood, it uses the Okno runtime and internal `WinBridge` engine components, but the public UX stays focused on a quiet operator surface instead of exposing raw low-level `windows.*` tools as the main product story. The normal loop is: ```text list_apps -> get_app_state -> action -> verify ``` In practice, that means: 1. find the target window; 2. get fresh state with screenshot and accessibility data; 3. choose the strongest available action path; 4. verify the result through `observeAfter=true` or a follow-up `get_app_state`. ## Why It Is Different Okno is designed around four product rules. | Principle | What it means in practice | | --- | --- | | Strong semantic path | Prefer UIA-backed actions where the runtime can prove the target well. | | Screenshot-backed state | Screenshots are part of observation and verification, not a decorative extra. | | Bounded physical fallback | When UIA is weak, the runtime can still act through guarded physical input paths. | | Honest outcomes | Low-confidence actions return `verify_needed` instead of optimistic fake success. | This makes Okno a better fit for real Windows GUI work than tools that only dispatch coordinates, and a better fit for poor-UIA targets than tools that assume semantic automation is reliable everywhere. ## Where It Fits Best Okno is a strong fit if you need: - local Windows desktop automation for AI agents; - a Windows-native MCP runtime instead of a browser-only tool; - a Codex-friendly operator surface for real desktop apps; - a verification-oriented execution model for unstable or weak-semantic UI. Okno is not the primary tool to reach for if you need: - browser-first DOM automation; - one-click consumer distribution with no local setup; - full enterprise RPA orchestration and low-code workflow tooling. ## Quick Start The recommended installation path on Windows is now **Okno Setup**. ### Prerequisites - Windows 11 - Codex on Windows for the recommended `Codex` mode - network access if the installer needs to materialize runtime or plugin assets ### 1. Get the installer files Download the GUI installer package: - `okno-setup--win-x64.zip` These installation files are published together with the runtime and plugin bundle files. ### 2. Install for Codex or runtime-only GUI path: 1. Extract `okno-setup--win-x64.zip`. 2. Run `Okno Setup.exe`. 3. Choose `Install for Codex (Recommended)` or `Install runtime only (Advanced)`. ### 3. Restart Codex or use the runtime-only snippet `Codex` mode now: - installs the shared runtime under `%LocalAppData%\Okno\computer-use-win`; - installs the thin `computer-use-win` plugin under `/plugins/computer-use-win`; - updates `%USERPROFILE%\.agents\plugins\marketplace.json`; - asks only for a Codex restart. `runtime-only` mode installs the same shared runtime and returns a ready-to-paste MCP `command + args` snippet. After the first successful install, `Okno Setup.exe` also creates a stable per-user maintenance shell and registers `Okno` in Windows `Installed apps`. ### 4. Run the first loop 1. call `list_apps`; 2. choose a `windowId`; 3. call `get_app_state(windowId=...)`; 4. act; 5. verify with `observeAfter=true` or a new `get_app_state`. For generic MCP `STDIO` clients, the installer-first runtime-only path, and the source-based development workflow, see [docs/runbooks/computer-use-win-install.md](docs/runbooks/computer-use-win-install.md). Developers can still clone the repository and materialize a plugin-local bundle explicitly with `scripts/codex/publish-computer-use-win-plugin.ps1`. ### Update, repair, and remove For now, updates are installed by running a newer `Okno Setup.exe` package again: 1. download a newer `Okno Setup.exe` package; 2. run the newer `Okno Setup.exe`; 3. choose the same mode again to refresh that surface. The same `Okno Setup.exe` also handles: - reinstall/update when the selected mode is already present; - `Repair` for the selected mode; - `Remove Okno` for the whole local Okno install. Windows Settings uses the same maintenance shell as the uninstall entry, so `Installed apps -> Okno -> Uninstall` routes back into the same remove-all lifecycle. ## Public Tool Surface | Tool | Purpose | | --- | --- | | `list_apps` | Discover running desktop apps and windows. | | `get_app_state` | Return screenshot-backed state, bounds, tokens, and accessibility data. | | `click` | Activate a semantic target or confirmed point target. | | `press_key` | Send explicit keyboard input. | | `set_value` | Use semantic value-setting paths where supported. | | `type_text` | Enter text through semantic or guarded fallback typing paths. | | `scroll` | Perform scroll actions and verify the movement path when possible. | | `perform_secondary_action` | Run toggle / expand-collapse style secondary semantic actions. | | `drag` | Perform bounded drag operations with explicit source and destination proof. | Important runtime-facing fields: - `windowId` is a public selector for the current discovery state, not an eternal window identity. - `stateToken` is a short-lived proof artifact for the last observation state. - `executionFacts` is the public action-truth envelope: it exposes whether the runtime took a `semantic`, `expected_physical`, or `fallback_physical` path plus conservative proof/continuity markers. - `verify_needed` means the dispatch happened but the semantic outcome still needs observation. - `successorState` is the fresh post-action state when `observeAfter=true` succeeded. ## Trust, Safety, and Boundaries - The runtime works in a **real** Windows desktop session. - Physical mouse and keyboard input are shared system resources. - The project does not pretend to provide a second independent system cursor. - Weak-semantic or poor-UIA targets may require bounded physical fallback. - Blocked or sensitive targets still need explicit policy discipline. - Low-confidence actions should be treated as `dispatch + verify`, not as blind success. ## Status Okno is already usable today as a local Windows plugin/runtime for Codex and as a local MCP surface over `STDIO`. What is already strong: - the public capability is installable through the current Windows installer files; - the runtime contract for generic MCP clients is defined; - the shared runtime store, installer core, and WinUI setup shell already exist; - the public contract, smoke path, and verification loop are real; - the runtime is past the research-prototype stage. What is still intentionally honest: - the current Windows installer files are distributed without code signing; - source-based installation remains the developer fallback, not the main user story; - signed consumer distribution, `winget`, and `MSI` are still future distribution work; - publishing signed installer files is a separate step from the implementation work in this repository. ## License This repository is licensed under **GNU Affero General Public License v3.0 or later** (`AGPL-3.0-or-later`). Copyright © 2025–2026 Vlasov Vitaly - [LICENSE](LICENSE) - [LICENSES/AGPL-3.0-or-later.txt](LICENSES/AGPL-3.0-or-later.txt) - [REUSE.toml](REUSE.toml)