Cookies

With your permission, we use Google Analytics cookies to measure visits and improve the site. Necessary cookies are always on. You can change your choice or withdraw consent anytime in the footer, under Cookie settings. Cookie Policy

Skip to content

Advanced Agents ·Intermediate

Windows Use Autonomous Agent

About this app

Windows-Use is a powerful automation agent that interact directly with the Windows at GUI layer. It bridges the gap between AI Agents and the Windows OS to perform tasks such as opening apps, clicking buttons, typing, executing shell commands, and capturing UI state all without relying on traditional computer vision models. Enabling any LLM to perform computer automation instead of relying on specific models for it.

  • Complete open-source code
  • Step-by-step tutorial
  • Runs on your computer

Technical sheet

Category
Advanced Agents
Difficulty
Intermediate
Models
Claude, Gemini, Llama, Mistral
Frameworks
LangChain
Runs locally?
Yes (Ollama)
Required keys
None

License Apache-2.0 · content curated and maintained by Doutor AI.

Full tutorial

<h1>🪟 Windows Use Autonomous Agent</h1>

<br>

<br>

Windows-Use is a powerful automation agent that interact directly with the Windows at GUI layer. It bridges the gap between AI Agents and the Windows OS to perform tasks such as opening apps, clicking buttons, typing, executing shell commands, and capturing UI state all without relying on traditional computer vision models. Enabling any LLM to perform computer automation instead of relying on specific models for it.

🛠️Installation Guide

Prerequisites

  • Python 3.12 or higher
  • UV (or pip)
  • Windows 10 or 11

Installation Steps

Install using uv:

uv pip install windows-use

Or with pip:

pip install windows-use

⚙️Basic Usage

# main.py
from langchain_google_genai import ChatGoogleGenerativeAI
from windows_use.agent import Agent
from dotenv import load_dotenv

load_dotenv()

llm=ChatGoogleGenerativeAI(model='gemini-2.0-flash')
agent = Agent(llm=llm,use_vision=True)
query=input("Enter your query: ")
agent_result=agent.invoke(query=query)
print(agent_result.content)

🤖 Run Agent

You can use the following to run from a script:

python main.py
Enter your query: <YOUR TASK>

🎥 Demos

PROMPT: Write a short note about LLMs and save to the desktop

<https://github.com/user-attachments/assets/0faa5179-73c1-4547-b9e6-2875496b12a0>

PROMPT: Change from Dark mode to Light mode

<https://github.com/user-attachments/assets/47bdd166-1261-4155-8890-1b2189c0a3fd>

Vision

Talk to your computer. Watch it get things done.

Roadmap

🤖 Agent Intelligence

  • [ ] Integrate memory : allow the agent to remember past interactions made by the user.
  • [ ] Optimize token usage : implement strategies like Ally Tree compression and prompt engineering to reduce overhead.
  • [ ] Simulate advanced human-like input : enable accurate and naturalistic mouse & keyboard interactions across apps.
  • [ ] Support for local LLMs : local models with near-parity performance to cloud-based APIs (e.g., Mistral, LLaMA, etc.).
  • [ ] Improve reasoning and planning : enhance the agent's ability to break down and sequence complex tasks.

🌳 Ally Tree Optimization

  • [ ] Improve UI element detection : automatically identify and prioritize essential, interactive components on screen.
  • [ ] Compress Ally Tree intelligently : reduce complexity by pruning irrelevant branches.
  • [ ] Context-aware prioritization : rank UI elements based on relevance to the task at hand.

💡 User Experience

  • [ ] Reduce latency : optimize to improve response time between GUI interaction.
  • [ ] Polish command interface : make it easier to write, speak, or type commands through a simplified UX layer.
  • [ ] Better error handling & recovery : ensure graceful handling of edge cases and unclear instructions.

🧪 Evaluation

  • [ ] LLM evaluation benchmarks - track performance across different models and benchmarks.

⚠️ Caution

Agent interacts directly with your Windows OS at GUI layer to perform actions. While the agent is designed to act intelligently and safely, it can make mistakes that might bring undesired system behaviour or cause unintended changes. Try to run the agent in a sandbox envirnoment.

Made with ❤️ by Jeomon George

Citation

@software{
  author       = {George, Jeomon},
  title        = {Windows-Use: Enable AI to control Windows OS},
  year         = {2025},
  publisher    = {GitHub},
  url={https://github.com/CursorTouch/Windows-Use}
}

From the same category

Advanced AgentsIntermediate

AI Agent Governance - Policy-Based Sandboxing

Policy-Based Sandboxing: Define what your AI agent can and cannot do using declarative policies - Action Interception: Catch and validate agent action…

  • OpenAI
Advanced AgentsIntermediate

AI Consultant Agent with Google ADK

A powerful business consultant powered by Google's Agent Development Kit that provides comprehensive market analysis, strategic planning, and actionab…

  • Gemini
Advanced AgentsIntermediate

AI Customer Support Agent

This Streamlit app implements an AI-powered customer support agent for synthetic data generated using GPT-4o. The agent uses OpenAI's GPT-4o model and…

  • OpenAI

Need a tailor-made solution?

Not sure where to start with AI in your business? Get a free assessment and a tailored plan - no commitment.

Save hours every week with AI, no hassle

Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.

See plans