Metadata-Version: 2.4
Name: legatolabs
Version: 0.3.0
Summary: A fast, open-source computer-use agent for any model: your Mac in the background, your screen, any sandbox, or your coding agent (MCP).
Author: Legato authors
License-Expression: Apache-2.0
Project-URL: Homepage, https://legato.computer
Project-URL: Documentation, https://legato.computer/docs
Project-URL: Benchmarks, https://legato.computer/docs/benchmarks
Project-URL: Source, https://github.com/legatolabs/legato
Project-URL: Issues, https://github.com/legatolabs/legato/issues
Project-URL: Changelog, https://github.com/legatolabs/legato/blob/main/CHANGELOG.md
Keywords: computer-use,computer use agent,gui agent,desktop agent,desktop automation,mcp,mcp server,claude code,cursor,osworld,qwen,openrouter,vllm,local llm,e2b,docker,sandbox,llm agents,reinforcement learning,rollouts
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Desktop Environment
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: httpx>=0.27
Requires-Dist: Pillow>=10
Requires-Dist: mcp>=1.2
Requires-Dist: mss>=9
Requires-Dist: pyautogui>=0.9.54
Requires-Dist: pyperclip>=1.8
Requires-Dist: pyobjc-framework-ApplicationServices>=10; sys_platform == "darwin"
Requires-Dist: pyobjc-framework-Vision>=10; sys_platform == "darwin"
Provides-Extra: e2b
Requires-Dist: e2b-desktop>=2.7; extra == "e2b"
Provides-Extra: office
Requires-Dist: python-pptx>=1.0; extra == "office"
Requires-Dist: openpyxl>=3.1; extra == "office"
Provides-Extra: mcp
Provides-Extra: local
Provides-Extra: video
Requires-Dist: imageio>=2.30; extra == "video"
Requires-Dist: imageio-ffmpeg>=0.5; extra == "video"
Requires-Dist: numpy; extra == "video"
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: mcp>=1.2; extra == "dev"
Requires-Dist: python-pptx>=1.0; extra == "dev"
Requires-Dist: openpyxl>=3.1; extra == "dev"
Requires-Dist: imageio>=2.30; extra == "dev"
Requires-Dist: imageio-ffmpeg>=0.5; extra == "dev"
Requires-Dist: numpy; extra == "dev"
Dynamic: license-file

# Legato

The fast, open-source computer-use agent. Bring any model.

![Legato enters three invoices from a text file into a Windows desktop app](https://legato.computer/media/invoice-desk-2x.gif)

<sub>A real run on a Windows desktop, shown at 2x with the real-time clock: Legato reads three invoices from Notepad and
enters them into a desktop app that has no API.</sub>

## Start

Tell Claude Code, Codex or Cursor:

> Set up Legato for me: https://legato.computer/setup

Or in a terminal:

```bash
pip install legatolabs
legato setup          # your model, where it works, your coding agents; then a first task
```

Or on a Mac, with no code: [download Legato for Mac](https://github.com/legatolabs/legato/releases/latest/download/Legato.dmg),
hold Fn and say what to do.

## One agent, four ways in

Choose your model once. Every way in runs the same agent with it.

| | How | What for |
|---|---|---|
| **Mac app** | Hold Fn, say the task | Your own apps, no code ([docs](https://legato.computer/docs/mac)) |
| **Terminal** | `legato run "Find the next Caltrain from SF to Palo Alto"` | One task at a time, scripts, cron |
| **Your coding agent** | Claude Code, Codex or Cursor gets a computer (MCP); `legato setup` adds it | Test the app you are building, do the GUI part of a task ([docs](https://legato.computer/docs/mcp)) |
| **Python** | `legato.run("...")`, or `legato.Harness(...).run(task, desktop)` | Your own agent, RL rollouts ([docs](https://legato.computer/docs/python)) |

**Any model** with an OpenAI-compatible API and vision: Qwen, Claude, GPT, Gemini, Grok, through OpenRouter or the
maker's own API, or on your own GPU (vLLM, Ollama, LM Studio), where nothing leaves your machine
([models](https://legato.computer/docs/models)).

**Any computer** ([desktops](https://legato.computer/docs/sandboxes)):

- **In the background on your Mac** (the default there): it works in one app's window while you keep using the Mac.
  Your mouse and keyboard stay yours.
- **Your whole screen** on macOS, Windows or Linux.
- **A desktop container** (Docker), a cloud desktop (E2B), or any sandbox or VM you can run a command in.

```python
import legato

result = legato.run("On Wikipedia, look up the Eiffel Tower and tell me how tall it is")
print(result.answer)      # The Eiffel Tower is 330 metres (1,083 ft) tall.
print(result.report())    # done or failed, the turns, and where the time went
```

## Results

Same model, same desktops, 24 office tasks per run. [Method and raw data](https://legato.computer/docs/benchmarks).

| Model | Compared with | Time | Success |
|---|---|---|---|
| Claude Sonnet 5.5 | Anthropic's reference loop | 1.48x faster | 48/48 vs 48/48 |
| Qwen3.8-27B | OSWorld's Qwen agent | same | 71/96 vs 53/96 |

## Why it's fast

Most of a computer-use agent's time goes to waiting: on the model, and on the screen.

- It waits until the screen stops changing, not a fixed 2 s after every action.
- Up to three actions per turn, with one screenshot after them; on a Mac, one plan per turn, with a shell and
  AppleScript beside the screen where they are faster.
- Screenshots go as JPEG, and old ones are dropped in chunks so the prompt cache keeps hitting.
- A wall-clock timeout and a token budget on every model call, so nothing hangs.

## Docs

[Set up](https://legato.computer/setup) · [Mac app](https://legato.computer/docs/mac) ·
[Coding agents (MCP)](https://legato.computer/docs/mcp) · [Terminal and Python](https://legato.computer/docs/python) ·
[Desktops](https://legato.computer/docs/sandboxes) · [Models](https://legato.computer/docs/models) ·
[RL rollouts](https://legato.computer/docs/rl) · [Benchmarks](https://legato.computer/docs/benchmarks) ·
[FAQ](https://legato.computer/docs/faq) · [Guides](https://legato.computer/docs/guides) ·
[Comparisons](https://legato.computer/docs/compare)

For coding agents: [llms.txt](https://legato.computer/llms.txt) · [AGENTS.md](AGENTS.md)

Apache-2.0.

<!-- mcp-name: io.github.legatolabs/legato -->
