Desktop Use logo

Desktop Use

Organization
Factory-AI
desktop-use

Background knowledge for droid-control workflows -- not invoked directly. Desktop-use driver mechanics for native GUI app automation via trycua cua-driver.

Overview

PublisherFactory-AI
Repositoryfactory-plugins
Skill namedesktop-use
Stars
111
Forks
15
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Factory-AI on GitHub. Read the source before you install it.

Installation

Install the Desktop Use AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Factory-AI/factory-plugins.git /tmp/factory-plugins
mkdir -p .claude/skills
cp -r /tmp/factory-plugins/plugins/droid-control/skills/desktop-use .claude/skills/desktop-use
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Desktop Use in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Desktop Use on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Desktop Use is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Desktop Use

One controller operates an exact GUI target, observes each effect, and stops when the user's postcondition is proved.

Act

GoalCommand / tool
Discovercua-driver list_apps; use launch_app when launch is requested, then select the intended window from its response or list_windows
Observeget_window_state with observed pid, window_id, and the run's session; use query, max_elements, or max_depth to bound large trees
Actclick / type_text with an exact target and fresh element_token; use x,y only from a valid target screenshot
Menu / geometryPrefer invoke_menu with an observed menu path, or set_window_frame; verify the resulting window state
VerifyFresh get_window_state / get_desktop_state, or verify_state for an expressible exact-window postcondition
FinishFinalize any owned recording, then end_session; leave personal apps and shared services running unless closure was requested

Use the CLI by default or an existing MCP connection. Replace example IDs, tokens, coordinates, and RUN_ID with current observations and a unique run label:

bash
cua-driver get_window_state '{"pid":844,"window_id":10725,"session":"RUN_ID"}'
cua-driver click '{"target":{"kind":"window","pid":844,"window_id":10725},"element_token":"s0000002a:14","session":"RUN_ID"}'
# Observe again and verify the requested effect before another action.

Detect and setup

bash
command -v cua-driver
cua-driver --version
cua-driver status
cua-driver doctor
cua-driver describe click

No separate Cua skill installation is required. Preserve existing executable wrappers and service ownership. If the binary is missing, obtain approval before using the official macOS/Linux installer or Windows installer. Inspect unfamiliar live schemas; a client version does not identify an already-running daemon.

HostRequired setup
macOSThe responsible app/host needs Accessibility and Screen Recording grants; let the user run cua-driver permissions grant and approve prompts
WindowsThe runtime must run in the interactive desktop session, not Session 0; user/host handles installation and security prompts
LinuxRun as the graphical user on its display/session bus; native Wayland may require CUA_DRIVER_RS_ENABLE_WAYLAND=1 in the service environment. Compositor capture/input/video support varies

Rules

  1. Never substitute methods. Cua-only/native-input excludes CDP, DOM, application APIs, and shell/media shortcuts, including for Electron.
  2. Never share desktop control. Keep interactive observation, input, permission waits, and cleanup in the parent. Reuse one run label and artifact directory; repeat session on each supported CLI call. Labels do not isolate focus, app state, or snapshot caches.
  3. Never reuse stale or ambiguous targets. A new snapshot invalidates old handles. Do not combine target with flat targeting fields; observation and semantic-only tools keep their own schemas. Re-resolve cold launches or vanished windows with bounded discovery, not repeated launches.
  4. Never infer pixels from absent evidence. Read the actual image and its dimensions; account for resized previews/crops. Tree-only capture cannot ground pixel input. capture_mode does not repair capture failures.
  5. Never escalate implicitly. Window background input is the default. Foreground delivery, temporary menu activation, desktop capture/input, service changes, and OS approvals require the appropriate user/host authorization.
  6. Never equate delivery with completion. Reobserve after uncertain, partial, or interrupted input before retrying. Check the task's postcondition: selection is not playback; an unchanged frame is not proof of a freeze; a closed window is not proof of process exit.

Failure map

SymptomNext action
Missing binary, permission, or capabilityReport the step BLOCKED (verify vocabulary) and resolve setup with the user rather than silently installing, restarting, or changing security settings
Interrupted cua-driver install or updateBefore retrying, inspect what exists: cua-driver --version, cua-driver status, and any running service or wrapper; with approval, retry only the step that did not complete
Sparse treeInspect degraded_reason; retry once for lazy initialization. Use pixels only if a valid image exists
Missing image / surface_identity_unprovenUse returned semantics if sufficient; otherwise request desktop scope or report the step BLOCKED. Do not relabel a crop as verified window capture
Timeout or opaque capture/input failureLook for a pending permission dialog: read authorized desktop state, or ask the user what appeared. Let them approve or deny; after approval reacquire fresh state instead of replaying the timed-out action
background_unavailableReobserve; retry only the necessary action with delivery_mode:"foreground" if visible control is authorized

For an authorized desktop loop, use get_desktop_state → input with target:{"kind":"desktop","display_id":"primary"} → fresh desktop state. Keyboard input follows visible focus: stop if the user or another controller changes it.

Recording

Only when requested. Preflight the connection first: the recording tools are reachable through cua-driver call as well as MCP, but start_recording states that video lasts for the client connection that started it, so recording runs on one persistent MCP connection. If no get_recording_state MCP tool is callable in this session, the recording step is BLOCKED: hand the user the droid mcp add … line printed by cua-driver mcp-config --client droid, do not add the server or start services yourself, and resume once they reconnect.

On that connection: get_recording_state({})start_recording({"output_dir":"/absolute/unused/run-dir","record_video":true}) → authorized actions → stop_recording({}).

These recording tools have no public session parameter. Video is off by default; check video_active and last_error. The recorder is shared within its runtime, and manual stop is unconditional: coordinate with an existing owner rather than taking over. Finalize before disconnecting; inspect last_video_path, decode the video, and check its scope/dimensions/duration. A working PNG does not prove Wayland video support.

Evidence handoff

Report ordinary task results directly. Load capture for recorded or multi-step evidence, verify for formal proof/QA, and compose only for a produced artifact. Include driver/host, exact target/input route, observed postcondition, raw evidence paths, and any limitation. Preserve partial recordings as incomplete evidence; review private content before sharing.

Frequently asked questions

What does the Desktop Use AI skill do?

Background knowledge for droid-control workflows -- not invoked directly. Desktop-use driver mechanics for native GUI app automation via trycua cua-driver.

Why use Desktop Use on TypingMind?

Because you install it once and use it with any model. Desktop Use is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Desktop Use in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Factory-AI/factory-plugins/tree/master/plugins/droid-control/skills/desktop-use. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Desktop Use?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Desktop Use?

As many as you like. As long as a model supports skills, you can use Desktop Use with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Desktop Use AI skill free?

It is published on GitHub by Factory-AI. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇