Legato
The fast, open-source computer-use agent. Bring any model.
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.
Start
Tell Claude Code, Codex or Cursor:
Set up Legato for me: https://legato.computer/setup
Or in a terminal:
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, 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) |
| 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) |
| Python | legato.run("..."), or legato.Harness(...).run(task, desktop) |
Your own agent, RL rollouts (docs) |
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).
Any computer (desktops):
- 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.
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.
| 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 · Mac app · Coding agents (MCP) · Terminal and Python · Desktops · Models · RL rollouts · Benchmarks · FAQ · Guides · Comparisons
For coding agents: llms.txt · AGENTS.md
Apache-2.0.
Metadata
Release files for legatolabs 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| legatolabs-0.3.0.tar.gz | 1.0 MB | With provenance | Details for legatolabs-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| legatolabs-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for legatolabs-0.3.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / legatolabs-0.3.0.tar.gz
| Download URL | legatolabs-0.3.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b55a0a6b97d04d7c1aa39e4ef9f388de2e0e9c26d979c694ee0797cfc8342282
|
|
BLAKE2b-256 checksum How to use checksums |
6b32bafdb7d493af0e4804b32196f63ea33a36c4e2ab81323bddde87fdc5e35a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / legatolabs-0.3.0-py3-none-any.whl
| Download URL | legatolabs-0.3.0-py3-none-any.whl |
|---|---|
| Size | 999.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
502a9330619d5e0d1807d269956242bbfb19f43c919690c9aac6b87c9c04be4e
|
|
BLAKE2b-256 checksum How to use checksums |
69b7e6efd8e9ef4894549ba35b8d7207c03d06953c5d74cb662e609537acfe71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for legatolabs 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for legatolabs-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.