Welcome to UFO³ Documentation

November 17, 2025 · View on GitHub

UFO³ UFO logo : Weaving the Digital Agent Galaxy

A Multi-Device Orchestration Framework for Cross-Platform Intelligent Automation

arxiv arxiv Python Version License: MIT GitHub YouTube


UFO³ Evolution

📖 About This Documentation

Welcome to the official documentation for UFO³, Microsoft's open-source framework for intelligent automation across devices and platforms. Whether you're looking to automate Windows applications or orchestrate complex workflows across multiple devices, this documentation will guide you through every step.

What you'll find here:


🎯 Choose Your Path

UFO³ consists of two complementary frameworks. Choose the one that best fits your needs, or use both together!

FrameworkBest ForKey StrengthGet Started
🌌 Galaxy
✨ NEW & RECOMMENDED
Cross-device workflows
Complex automation
Parallel execution
Multi-device orchestration
DAG-based planning
Real-time monitoring
Quick Start →
🪟 UFO²
⚡ STABLE & LTS
Windows automation
Quick tasks
Learning basics
Deep Windows integration
Hybrid GUI + API
Stable & reliable
Quick Start →

🤔 Decision Guide

QuestionGalaxyUFO²
Need cross-device collaboration?
Complex multi-step workflows?⚠️ Limited
Windows-only automation?✅ Optimized
Quick setup & learning?⚠️ Moderate✅ Easy
Stable & reliable?🚧 Active Dev✅ LTS

🌟 What's New in UFO³?

UFO³ is a scalable, universal cross-device agent framework that enables you to develop new device agents for different platforms and applications. Through the Agent Interaction Protocol (AIP), custom device agents can seamlessly integrate into UFO³ Galaxy for coordinated multi-device orchestration.

Evolution Timeline

%%{init: {'theme':'base', 'themeVariables': { 'primaryColor':'#E8F4F8','primaryTextColor':'#1A1A1A','primaryBorderColor':'#7CB9E8','lineColor':'#A8D5E2','secondaryColor':'#B8E6F0','tertiaryColor':'#D4F1F4','fontSize':'16px','fontFamily':'Segoe UI, Arial, sans-serif'}}}%%
graph LR
    A["<b>🎈 UFO</b><br/><span style='font-size:14px'>February 2024</span><br/><span style='font-size:13px; color:#666'><i>GUI Agent for Windows</i></span>"] 
    B["<b>🖥️ UFO²</b><br/><span style='font-size:14px'>April 2025</span><br/><span style='font-size:13px; color:#666'><i>Desktop AgentOS</i></span>"]
    C["<b>🌌 UFO³ Galaxy</b><br/><span style='font-size:14px'>November 2025</span><br/><span style='font-size:13px; color:#666'><i>Multi-Device Orchestration</i></span>"]
    
    A -->|Evolve| B
    B -->|Scale| C
    
    style A fill:#E8F4F8,stroke:#7CB9E8,stroke-width:2.5px,color:#1A1A1A,rx:15,ry:15
    style B fill:#C5E8F5,stroke:#5BA8D0,stroke-width:2.5px,color:#1A1A1A,rx:15,ry:15
    style C fill:#A4DBF0,stroke:#3D96BE,stroke-width:2.5px,color:#1A1A1A,rx:15,ry:15

🚀 UFO³ = Galaxy (Multi-Device Orchestration) + UFO² (Device Agent)

UFO³ introduces Galaxy, a revolutionary multi-device orchestration framework that coordinates intelligent agents across heterogeneous platforms. Built on five tightly integrated design principles:

  1. 🌟 Declarative Decomposition into Dynamic DAG - Requests decomposed into structured DAG with TaskStars and dependencies for automated scheduling and runtime rewriting

  2. 🔄 Continuous Result-Driven Graph Evolution - Living constellation that adapts to execution feedback through controlled rewrites and dynamic adjustments

  3. ⚡ Heterogeneous, Asynchronous & Safe Orchestration - Capability-based device matching with async execution, safe locking, and formally verified correctness

  4. 🔌 Unified Agent Interaction Protocol (AIP) - WebSocket-based secure coordination layer with fault tolerance and automatic reconnection

  5. 🛠️ Template-Driven MCP-Empowered Device Agents - Lightweight toolkit for rapid agent development with MCP integration for tool augmentation

AspectUFO²UFO³ Galaxy
ArchitectureSingle Windows AgentMulti-Device Orchestration
Task ModelSequential ReAct LoopDAG-based Constellation Workflows
ScopeSingle device, multi-appMulti-device, cross-platform
CoordinationHostAgent + AppAgentsConstellationAgent + TaskOrchestrator
Device SupportWindows DesktopWindows, Linux, macOS, Android, Web
Task PlanningApplication-levelDevice-level with dependencies
ExecutionSequentialParallel DAG execution
Device Agent RoleStandaloneCan serve as Galaxy device agent
ComplexitySimple to ModerateSimple to Very Complex
Learning CurveLowModerate
Cross-Device Collaboration❌ Not Supported✅ Core Feature
Setup Difficulty✅ Easy⚠️ Moderate
Status✅ LTS (Long-Term Support)⚡ Active Development

🎓 Migration Path

For UFO² Users:

  1. Keep using UFO² – Fully supported, actively maintained
  2. 🔄 Gradual adoption – Galaxy can use UFO² as Windows device agent
  3. 📈 Scale up – Move to Galaxy when you need multi-device capabilities
  4. 📚 Learning resourcesMigration Guide

✨ Capabilities at a Glance

🌌 Galaxy Framework – What's Different?

🌟 Constellation Planning

User Request

ConstellationAgent

  [Task DAG]
   /   |   \
Task1 Task2 Task3
(Win) (Linux)(Mac)

Benefits:

  • Cross-device dependency tracking
  • Parallel execution optimization
  • Cross-device dataflow management

🎯 Device Assignment

Selection Criteria
  • Platform
  • Resource
  • Task requirements
  • Performance history

  Auto-Assignment

  Optimal Devices

Smart Matching:

  • Capability-based selection
  • Real-time resource monitoring
  • Dynamic reallocation

📊 Orchestration

Task1 → Running  ✅
Task2 → Pending  ⏸️
Task3 → Running  🔄

   Completion

   Final Report

Orchestration:

  • Real-time status updates
  • Automatic error recovery
  • Progress tracking with feedback

🪟 UFO² Desktop AgentOS – Core Strengths

UFO² serves dual roles: standalone Windows automation and Galaxy device agent for Windows platforms.

FeatureDescriptionDocumentation
Deep OS IntegrationWindows UIA, Win32, WinCOM native controlLearn More
Hybrid ActionsGUI clicks + API calls for optimal performanceLearn More
Speculative Multi-ActionBatch predictions → 51% fewer LLM callsLearn More
Visual + UIA DetectionHybrid control detection for robustnessLearn More
Knowledge SubstrateRAG with docs, demos, execution tracesLearn More
Device Agent RoleCan serve as Windows executor in Galaxy orchestrationLearn More

As Galaxy Device Agent:

  • Receives tasks from ConstellationAgent through Galaxy orchestration layer
  • Executes Windows-specific operations using proven UFO² capabilities
  • Reports status and results back to TaskOrchestrator
  • Seamlessly participates in cross-device workflows

🏗️ Architecture

UFO³ Galaxy – Multi-Device Orchestration

UFO³ Galaxy Architecture
ComponentRole
ConstellationAgentPlans and decomposes tasks into DAG workflows
TaskConstellationDAG representation with TaskStar nodes and dependencies
Device Pool ManagerMatches tasks to capable devices dynamically
TaskOrchestratorCoordinates parallel execution and handles data flow
Event SystemReal-time monitoring with observer pattern

📖 Learn More →

UFO² – Desktop AgentOS

UFO² Architecture
ComponentRole
HostAgentDesktop orchestrator, application lifecycle management
AppAgentsPer-application executors with hybrid GUI–API actions
Knowledge SubstrateRAG-enhanced learning from docs & execution history
Speculative ExecutorMulti-action prediction for efficiency

📖 Learn More →


🚀 Quick Start

Ready to dive in? Follow these guides to get started with your chosen framework:

🌌 Galaxy Quick Start (Multi-Device Orchestration)

Perfect for complex workflows across multiple devices and platforms.

# 1. Install dependencies
pip install -r requirements.txt

# 2. Configure agents (see detailed guide for API key setup)
copy config\galaxy\agent.yaml.template config\galaxy\agent.yaml
copy config\ufo\agents.yaml.template config\ufo\agents.yaml

# 3. Start device agents
python -m ufo.server.app --port 5000
python -m ufo.client.client --ws --ws-server ws://localhost:5000/ws --client-id device_1 --platform windows

# 4. Launch Galaxy
python -m galaxy --interactive

📖 Complete Galaxy Quick Start Guide →
⚙️ Galaxy Configuration Details →

🪟 UFO² Quick Start (Windows Automation)

Perfect for Windows-only automation tasks with quick setup.

# 1. Install
pip install -r requirements.txt

# 2. Configure (add your API keys)
copy config\ufo\agents.yaml.template config\ufo\agents.yaml

# 3. Run
python -m ufo --task <task_name>

📖 Complete UFO² Quick Start Guide →
⚙️ UFO² Configuration Details →


📚 Documentation Navigation

🎯 Getting Started

Start here if you're new to UFO³:

GuideDescriptionFramework
Galaxy Quick StartSet up multi-device orchestration in 10 minutes🌌 Galaxy
UFO² Quick StartStart automating Windows in 5 minutes🪟 UFO²
Linux Agent Quick StartAutomate Linux systems🐧 Linux
Mobile Agent Quick StartAutomate Android devices via ADB📱 Mobile
Choosing Your PathDecision guide for selecting the right frameworkBoth

🏗️ Core Architecture

Understand how UFO³ works under the hood:

TopicDescriptionFramework
Galaxy OverviewMulti-device orchestration architecture🌌 Galaxy
UFO² OverviewDesktop AgentOS architecture and concepts🪟 UFO²
Task ConstellationDAG-based workflow representation🌌 Galaxy
ConstellationAgentIntelligent task planner and decomposer🌌 Galaxy
Task OrchestratorExecution engine and coordinator🌌 Galaxy
AIP ProtocolAgent communication protocol🌌 Galaxy

⚙️ Configuration & Setup

Configure your agents, models, and environments:

TopicDescriptionFramework
Agent ConfigurationLLM and agent settingsBoth
Galaxy DevicesDevice pool and capability management🌌 Galaxy
Model ProvidersSupported LLMs (OpenAI, Azure, Qwen, etc.)Both

🎓 Tutorials & Examples

Learn through practical examples in the documentation:

TopicDescriptionFramework
Creating App AgentsBuild custom application agents🪟 UFO²
Multi-Action PredictionEfficient batch predictions🪟 UFO²
Knowledge SubstrateRAG-enhanced learning🪟 UFO²

🔧 Advanced Topics

Deep dive into powerful features:

TopicDescriptionFramework
Multi-Action PredictionBatch actions for 51% fewer LLM calls🪟 UFO²
Hybrid DetectionVisual + UIA control detection🪟 UFO²
Knowledge SubstrateRAG-enhanced learning🪟 UFO²
Constellation AgentTask planning and decomposition🌌 Galaxy
Task OrchestratorExecution coordination🌌 Galaxy

🛠️ Development & Extension

Customize and extend UFO³:

TopicDescription
Project StructureUnderstand the codebase layout
Creating Custom Device AgentsBuild device agents for new platforms (mobile, web, IoT, etc.)
Creating App AgentsBuild custom application agents
Contributing GuideHow to contribute to UFO³

❓ Support & Troubleshooting

Get help when you need it:

ResourceWhat You'll Find
FAQCommon questions and answers
GitHub DiscussionsCommunity Q&A
GitHub IssuesBug reports and feature requests

📊 Feature Matrix

FeatureUFO² Desktop AgentOSUFO³ GalaxyWinner
Windows Automation⭐⭐⭐⭐⭐ Optimized⭐⭐⭐⭐ SupportedUFO²
Cross-Device Tasks❌ Not supported⭐⭐⭐⭐⭐ Core featureGalaxy
Setup Complexity⭐⭐⭐⭐⭐ Very easy⭐⭐⭐ ModerateUFO²
Learning Curve⭐⭐⭐⭐⭐ Gentle⭐⭐⭐ ModerateUFO²
Task Complexity⭐⭐⭐ Good⭐⭐⭐⭐⭐ ExcellentGalaxy
Parallel Execution❌ Sequential⭐⭐⭐⭐⭐ Native DAGGalaxy
Stability⭐⭐⭐⭐⭐ Stable⭐⭐⭐ Active devUFO²
Monitoring Tools⭐⭐⭐ Logs⭐⭐⭐⭐⭐ Real-time vizGalaxy
API Flexibility⭐⭐⭐ Good⭐⭐⭐⭐⭐ ExtensiveGalaxy

🎯 Use Cases & Examples

Explore what you can build with UFO³:

🌌 Galaxy Use Cases (Cross-Device)

Perfect for complex, multi-device workflows:

  • Cross-Platform Data Pipelines: Extract from Windows Excel → Process on Linux → Visualize on Mac
  • Distributed Testing: Run tests on Windows → Deploy to Linux → Update mobile app
  • Multi-Device Monitoring: Collect logs from multiple devices → Aggregate centrally
  • Complex Automation: Orchestrate workflows across heterogeneous platforms

🪟 UFO² Use Cases (Windows)

Perfect for Windows automation and rapid task execution:

  • Office Automation: Excel/Word/PowerPoint report generation and data processing
  • Web Automation: Browser-based research, form filling, data extraction
  • File Management: Organize, rename, convert files based on rules
  • System Tasks: Windows configuration, software installation, backups

🌐 Community & Resources

📺 Media & Videos

Check out our official deep dive of UFO on YouTube.

Media Coverage:

💬 Get Help & Connect


📚 Research & Citation

UFO³ is built on cutting-edge research in multi-agent systems and GUI automation.

Papers

If you use UFO³ in your research, please cite:

UFO³ Galaxy Framework (2025)

@article{zhang2025ufo3,
  title={UFO$^3$: Weaving the Digital Agent Galaxy}, 
  author = {Zhang, Chaoyun and Li, Liqun and Huang, He and Ni, Chiming and Qiao, Bo and Qin, Si and Kang, Yu and Ma, Minghua and Lin, Qingwei and Rajmohan, Saravan and Zhang, Dongmei},
  journal = {arXiv preprint arXiv:2511.11332},
  year    = {2025},
}

UFO² Desktop AgentOS (2025)

@article{zhang2025ufo2,
  title   = {{UFO2: The Desktop AgentOS}},
  author  = {Zhang, Chaoyun and Huang, He and Ni, Chiming and Mu, Jian and Qin, Si and He, Shilin and Wang, Lu and Yang, Fangkai and Zhao, Pu and Du, Chao and Li, Liqun and Kang, Yu and Jiang, Zhao and Zheng, Suzhen and Wang, Rujia and Qian, Jiaxu and Ma, Minghua and Lou, Jian-Guang and Lin, Qingwei and Rajmohan, Saravan and Zhang, Dongmei},
  journal = {arXiv preprint arXiv:2504.14603},
  year    = {2025}
}

Original UFO (2024)

@article{zhang2024ufo,
  title   = {{UFO: A UI-Focused Agent for Windows OS Interaction}},
  author  = {Zhang, Chaoyun and Li, Liqun and He, Shilin and Zhang, Xu and Qiao, Bo and Qin, Si and Ma, Minghua and Kang, Yu and Lin, Qingwei and Rajmohan, Saravan and Zhang, Dongmei and Zhang, Qi},
  journal = {arXiv preprint arXiv:2402.07939},
  year    = {2024}
}

📖 Read the Papers →


🗺️ Roadmap & Future

UFO² Desktop AgentOS (Stable/LTS)

  • ✅ Long-term support and maintenance
  • ✅ Windows device agent integration
  • 🔜 Enhanced device capabilities
  • 🔜 Picture-in-Picture mode

UFO³ Galaxy (Active Development)

  • ✅ Constellation Framework
  • ✅ Multi-device coordination
  • 🔄 Mobile, Web, IoT agents
  • 🔄 Interactive visualization
  • 🔜 Advanced fault tolerance

Legend: ✅ Done | 🔄 In Progress | 🔜 Planned



🚀 Ready to Start?

Choose your framework and begin your automation journey:

🌌 Start with Galaxy

For multi-device orchestration

Galaxy Quick Start

🪟 Start with UFO²

For Windows automation

UFO² Quick Start

📖 Explore the Documentation

Core Concepts | Configuration | FAQ | GitHub


UFO logo
From Single Agent to Digital Galaxy
UFO³ - Weaving the Future of Intelligent Automation