# Agent S

> Open framework for AI agents that use your computer like a human

- Category: Agents & Automation / Computer & Browser Use
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/simular-ai/Agent-S
- Website: https://www.simular.ai
- Canonical page: https://ai-tldr.dev/tools/agent-s/

## In short

Agent S is an open-source framework from Simular for building autonomous agents that interact with a computer through its graphical interface, the same way a person does. It looks at a screenshot of the screen, decides what to do, and produces actions such as clicks and keystrokes to carry out a task. It sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in Python and licensed Apache-2.0.

## Overview

Agent S is an open-source framework from Simular for building autonomous agents that interact with a computer through its graphical interface, the same way a person does. It looks at a screenshot of the screen, decides what to do, and produces actions such as clicks and keystrokes to carry out a task.

The project ships as the `gui-agents` Python library and runs on Linux, macOS, and Windows. Its latest version, Agent S3, reported a 72.60% score on the OSWorld benchmark, which the authors describe as the first result to pass human-level performance on that test.

A core idea in Agent S is splitting the work between a main reasoning model that plans the task and a separate grounding model that turns those plans into precise on-screen coordinates and executable actions. This lets you mix and match different model providers for each role.

## What it does

- Controls real desktop applications by reading screenshots and issuing mouse and keyboard actions through an Agent-Computer Interface
- Splits work between a main planning model and a dedicated grounding model (such as UI-TARS-1.5-7B) for accurate clicking
- Cross-platform support for Linux, macOS, and Windows from a single `gui-agents` install
- Works with many model providers, including OpenAI, Anthropic, Gemini, Azure OpenAI, Open Router, and self-hosted vLLM endpoints
- Optional local coding environment that lets the agent run Python and Bash for tasks like file manipulation and data processing
- Usable from a command-line tool (`agent_s`) or directly through the Python SDK for custom inference loops

## Getting started

Agent S installs as the gui-agents Python package. You need a main model API key, a grounding model endpoint, and Tesseract installed. The agent runs Python code to control your machine, so use it carefully on a single-monitor setup.

1. Install the library

   Install the published package, then install the Tesseract OCR engine that the grounding pipeline depends on.

```bash
pip install gui-agents
brew install tesseract
```

2. Set your API keys

   Export the keys for the providers you plan to use. You can put these in your shell profile or set them in a script.

```bash
export OPENAI_API_KEY=<YOUR_API_KEY>
export ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>
export HF_TOKEN=<YOUR_HF_TOKEN>
```

3. Run the CLI agent

   Start Agent S3 from the command line, giving it a main model plus a grounding model endpoint. The recommended pairing is a strong reasoning model with UI-TARS-1.5-7B for grounding.

```bash
agent_s \
    --provider openai \
    --model gpt-5-2025-08-07 \
    --ground_provider huggingface \
    --ground_url http://localhost:8080 \
    --ground_model ui-tars-1.5-7b \
    --grounding_width 1920 \
    --grounding_height 1080
```

4. Or drive it from Python

   Import the agent and grounding classes, capture a screenshot, and call predict to get the next action to run.

```python
from gui_agents.s3.agents.agent_s import AgentS3
from gui_agents.s3.agents.grounding import OSWorldACI

instruction = "Close VS Code"
info, action = agent.predict(instruction=instruction, observation=obs)
exec(action[0])
```

## When to use it

- Automating multi-step desktop workflows across real applications without writing app-specific scripts
- Building and researching computer-use agents that are benchmarked on OSWorld, WindowsAgentArena, and AndroidWorld
- Letting an agent operate GUI software that has no API, by clicking and typing through the interface
- Adding an optional local coding environment so the agent can run Python or Bash for file and data tasks
