Skip to main content

Legato

Open-source computer-use harness for any OpenAI-compatible model: Qwen, DeepSeek, Claude, or your own vLLM server. It drives a desktop with a computer tool, waits for the screen instead of sleeping, and bounds every model call.

pip install "legatolabs[e2b]"      # PyPI name: legatolabs. Import name: legato.
import os, legato
from e2b_desktop import Sandbox                       # needs E2B_API_KEY

agent = legato.Harness(model="qwen/qwen3.8-27b", base_url="https://openrouter.ai/api/v1",
                       api_key=os.environ["OPENROUTER_API_KEY"])
desk = Sandbox.create()
result = agent.run("Open the terminal and print the date", legato.attach(desk))
print(result.report())                                # where the time went
desk.kill()

Or from the shell: legato run "Open the terminal and print the date" --model qwen/qwen3.8-27b --base-url https://openrouter.ai/api/v1

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

How

  • Waits until the screen stops changing instead of a fixed 2 s sleep.
  • Up to 3 actions per turn, one screenshot after them.
  • Drops old screenshots in chunks so the prompt cache keeps hitting.
  • A wall-clock timeout and a token budget on every model call.

More

Apache-2.0. Hosted desktops and models: legato.computer.

Metadata

Release files for legatolabs 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for legatolabs 0.1.1
File Size Uploaded Provenance Actions
legatolabs-0.1.1.tar.gz 71.3 kB With provenance Details for legatolabs-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for legatolabs 0.1.1
File Interpreter ABI Platform Actions
legatolabs-0.1.1-py3-none-any.whl Python 3 none any Details for legatolabs-0.1.1-py3-none-any.whl

Total release size: 141.5 kB

Release files / legatolabs-0.1.1.tar.gz

Download URL legatolabs-0.1.1.tar.gz
Size 71.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6cdee31a4dc0700ae3ffb75c8f31d6fea02a978b2ecc8fdf437993c72f2eb495
BLAKE2b-256 checksum
How to use checksums
7adc2a173b992e2cafa44ec620074202a9604e9e1cef8d93d2d467c69cace4f9
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 13, 2026.

Transparency log

Release files / legatolabs-0.1.1-py3-none-any.whl

Download URL legatolabs-0.1.1-py3-none-any.whl
Size 70.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af1a0a1585b3b26d01e182314a821a36e9c18151b6ee75c24239c7805b13102d
BLAKE2b-256 checksum
How to use checksums
e656443041c572ce2bfd8d08028c8cf914c77ec4be871c1ed349be50b59692f3
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 13, 2026.

Transparency log

Security for legatolabs 0.1.1

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.

Select from 2 files

Attestation for legatolabs-0.1.1.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 13, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page