Legato

Run a computer-use agent with a local model

Serve an open vision model on your own GPU, point Legato at it, and run it on your own screen or in a desktop container. No API key, and no screenshot leaves your machine.

pip install "legatolabs[local]"
vllm serve Qwen/Qwen3.5-9B --enable-auto-tool-choice --tool-call-parser hermes --max-model-len 32768

legato run "Create a folder named reports on the desktop" --sandbox docker \
    --model Qwen/Qwen3.5-9B --base-url http://localhost:8000/v1

--sandbox docker runs the agent in a container, so it can't touch your own screen. --sandbox local drives your real screen, mouse and keyboard (setup and safety). From Python:

import legato

agent = legato.Harness(model="Qwen/Qwen3.5-9B", base_url="http://localhost:8000/v1")   # 0-1000 coordinates
print(agent.run("Create a folder named reports on the desktop", legato.local()).report())

Edit this page on GitHub · Markdown