Minion
io.github.ApophisssPublished by GitHub account Apophisssv1.1.1Updated Nov 6, 2026
Featherweight Linux desktops for AI agents: read the screen as text, click, type, run any app.
Overview
Gives an AI agent its own lightweight Linux desktop in a container, where it reads the screen as text, clicks, types and runs any app.
- What you can do
- Read the screen as text: list a window's controls with stable ids, with OCR for text accessibility misses, and take screenshots with ids drawn on
- Act on the desktop: click, type, fill fields, press keys, scroll, pick dropdown options, run menu commands and fill open/save dialogs
- Manage desktops: create, fork, freeze, snapshot and restore containers, run several in parallel, and run Python code inside one
- Work with apps and documents: open 130+ apps by name, install packages, read docx, xlsx, pptx and pdf as text, and convert documents
- Hand off to a human: open a live browser view for take-control, file transfer and clipboard, and wait for a sign-in to finish
- Record and replay: export a…
- When to use it
- Useful when an agent needs to drive real desktop software or websites that have no API, such as LibreOffice, an IDE, a terminal or a Windows program, and when you want that work isolated in a disposable container rather than on your own desktop.
- Requirements
- Runs as a local stdio process (uvx or npx minion-desktop mcp, or the Claude Desktop extension). Needs Docker, OrbStack or Podman, or native Linux, to host the desktop containers. Desktops are downloaded per profile (roughly 200 MB to 720 MB). No API keys or environment variables are declared.
Installation
In SourceWeft
- Open Minion in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[Minion: instant desktops for AI agents]
Give every AI agent its own computer.
Featherweight Linux desktops (office, dev, research, browser, data, Windows apps) that any agent can use:
Claude, ChatGPT, Gemini, Cursor, VS Code, LangChain, your own code, or a model running on your laptop.
Agents read the screen as text, act in batches or in code, and use any program or website.
[PyPI] [CI] [Python 3.11+] [Zero dependencies] [MCP] [MIT]
English · 简体中文 · 繁體中文 · 한국어 · 日本語 · עברית
Get started
All you need is Docker (or OrbStack or Podman). Then pick one:
1. One click in your AI app:
[Download the Claude Desktop extension] [Install in VS Code] [Add to Cursor] [Install in Visual Studio] [Add to LM Studio] [Install in Goose] [Add to Kiro]
Claude Code: claude plugin marketplace add apophisss/minion && claude plugin install minion@minion. Any other MCP
client: uvx minion-desktop mcp, or npx -y minion-desktop mcp. The buttons, uvx and npx start Minion with
uv (npx can use pipx instead); the Claude Desktop extension needs nothing else.
2. One line that installs Minion and connects every AI app on your computer (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf/Devin, Gemini CLI, Codex, LM Studio, Cline, Kiro):
It ends with minion setup, which checks Docker, prepares a desktop and runs minion connect. Run either one again
any time.
3. From ChatGPT, Claude.ai or Le Chat in the browser: run minion share and paste the URL it prints into the
app's connector settings (how).
Then just ask: "Create an office desktop, write a one-page brief about our Q3 numbers in Writer and save it as brief.docx." Every way to install is in docs/install.md.
▶ Watch the one-minute demo: an agent researches a trip on Wikipedia, makes a budget with a chart and writes the plan as a PDF. 12 tool calls and 2,372 tokens of text; the same steps with screenshots would cost about 36,855. Recorded live with python scripts/demo_video.py, which makes the calls an agent would make.
Why Minion
- 🖥️ Any program, any website. Every desktop is a real Linux computer: browsers, LibreOffice, IDEs, terminals,
file dialogs and installers, plus Windows programs through the
windows(Wine) profile. Open any app by name and it is installed the first time (open gimp,open vscode,open dbeaver, any Debian package), web apps open in the browser (open gmail), and the first open answers with a few tips for the app. 130+ apps by name. - 🧭 Shortcuts through every app.
see --menuslists every menu command with its keyboard shortcut, andmenu "File > Export as PDF"runs one without opening a menu.path ~/out.pdffills any Open/Save dialog. Right-click menus show up insee,button:Savepicks one kind of control, and a button below the fold is scrolled into view. Any document reads as text (read report.docx, xlsx with formulas, pptx, pdf) and converts in one call (convert report.docx pdf). - 🧠 Agents read the screen as text.
seeturns any window into a list of controls with stable@ids, taken from the accessibility tree with OCR as a fallback:@12 button "Save" (210,62). Web pages, editors (with line numbers), terminals, dropdowns with their options, and spreadsheets (row by row:row 2: A2 North · B2 120) all come out as exact text. When pixels matter, screenshots can draw the@idsfor you. - 🎯 Honest actions. Every action waits for the screen to settle (for web pages to load, and while an app says "Loading…") and reports what happened: windows, a page's alert or prompt, files saved or downloaded, a pop-up that took the click. Text targets must really be on screen: a miss fails with the closest candidates instead of clicking something else. Tested on 93 everyday tasks done by AI agents.
- 🪙 Built to save tokens. You get diffs instead of re-reads (
see(changes=true): about 80 tokens instead of about 900). Code mode runs a 50-step GUI loop in one call, crops and half-size screenshots cut image cost, a compact mode shrinks the tool definitions from about 3,300 tokens to 450, and the Agent Skill costs about 100 tokens until it is used. - 🪶 Featherweight. One small container per desktop (Xvfb, a 2-process window manager and taskbar, a small agent), with no VNC and no desktop environment. Desktops are ready in about 1.5 s and use about 60 MB when idle. Idle desktops are frozen automatically (0% CPU) and wake in about 0.2 s.
- 🔌 Works with every agent. One toolset everywhere: MCP (local or remote), function calling for OpenAI, Anthropic, Gemini and local models, HTTP with OpenAPI, a CLI and an Agent Skill for shell agents, Python and TypeScript SDKs, and native adapters for Claude, OpenAI and Gemini computer use.
- ⚡ Parallel by design.
create count=8starts a desktop per worker,forkclones one before a risky step, and sessions keep agents apart. - 🙋 Humans in the loop. A live view in the browser offers one-click take control, moves files both ways (drop them on the screen) and shares the clipboard. Agents can hand off ("please sign in") and wait for Done, and a sign-in saved once by hand starts new desktops signed in.
- 🎞️ Teach once, replay forever. Every action is recorded. Export an HTML timeline or GIF, or turn the session into a Python script that replays it with no model at all.
- 📦 Zero dependencies. The host side is pure Python standard library. Desktops run in Docker or Podman (macOS, Windows, Linux), or natively on Linux.
A quick tour from the shell
Any agent with a terminal (Claude Code, Codex CLI, Aider, Open Interpreter, Goose) can use the CLI directly, and
minion skill --install teaches it how:
Menus, file dialogs and apps by name: menu "File > Export As > Export Directly as PDF", path ~/Documents/report.pdf, then open gimp, which installed GIMP in 16 s. Recorded by the flight recorder.
Works with every agent
A complete agent with any OpenAI-compatible model ("anthropic", "gemini" and "openai-responses" work
the same way):
Python, and code mode
script runs Python inside the desktop with click · write · key · scroll · fill · see · elements · cells · wait_for · launch · run. Loops cost one call, and only what the code prints comes back. The Desktop API also
has screenshot · see · act · open · run · upload · download · clipboard · windows · freeze · fork · snapshot · restore · recording · create_many. See docs/python.md.
Native computer use (Claude, OpenAI, Gemini)
Minion is a ready environment for each vendor's computer-use model, with screenshot scaling and coordinate mapping handled for you:
Claude's computer_toolset_20260801 (all 17 actions) and the earlier computer_20251124 are covered in
docs/computer-use.md. OpenAI and Gemini computer use are covered in
docs/computer-use-openai-gemini.md.
Profiles
Your own profile is a 5-line TOML file in ~/.config/minion/profiles/. It is built automatically the first time you use it:
Or add software at runtime: minion run "minion-install gimp https://example.com/tool.AppImage pip:yt-dlp".
See docs/profiles.md.
How agents see the screen
see is the agent's main sense. Here it is on a LibreOffice window:
After an action, observe="changes" (or see(changes=true)) returns only the difference:
Text that accessibility doesn't expose (a slideshow, a canvas app, a picture of text, a remote screen, a program
without an accessibility tree) is read with OCR, only where it is missing and in the screen's own language: the scripts
in the window's titles and labels choose it. Hebrew, Arabic, Russian, Chinese, Japanese, Korean and Hindi are built in,
and other languages install on first use. Large text and light text on colour get passes of their own, and a picture
that hasn't changed is never read twice. On 24 photographed Hebrew slides, see reads 94% of the words. Here it is on
a web page that shows a slide as an image:
When pixels matter, screenshot --marks labels every control with its @id:
[Screenshot with @id marks on every clickable element]
Efficiency, measured
Five real tasks (a PDF report, a spreadsheet, a Wikipedia lookup, a web form, reading a document) cost an agent
8,668 tokens with Minion and 50,505 with screenshots: 5.8× fewer. The full table and method are in
docs/benchmarks.md; reproduce it with python scripts/bench_tasks.py.
These were measured on a 2-vCPU VM. Reproduce them with python scripts/bench.py.
Watch, take over, hand off
minion view (or the view tool) opens a live view of any desktop in your browser. Click Take control to use
your own mouse and keyboard. An agent can call view(message="Please sign in to your Google account"): you get a
banner, sign in, press Done, and the agent continues. Files downloads from the desktop and uploads to it
(or drop files on the screen), Copy brings the desktop's clipboard to yours, and Keys sends the ones your
browser keeps (Ctrl+W, Alt+Tab).
Sign in once and start desktops signed in: minion login github https://github.com/login opens a desktop there
in the live view, you sign in and press Done, and from then on minion up --login github (or
desktop(action="create", login="github")) starts desktops already signed in. The sign-in stays in your
computer's Docker (details). minion serve adds a dashboard with live thumbnails:
[The Minion dashboard with live desktop thumbnails]
How it works
Read docs/design.md for the reasoning behind each choice, and docs/architecture.md for the internals.
Security
Each desktop is an unprivileged container with no host mounts by default. Use --offline to cut network access,
or limit resources with --memory and --cpus. The HTTP server binds to 127.0.0.1, needs a random token, and refuses
cross-site and DNS-rebinding requests. File transfers to and from your computer stay inside one folder, and minion share URLs carry a fresh token and stop working when you stop sharing. The desktop user has passwordless sudo inside the container, so agents
can install software. Treat everything on a screen as untrusted input (prompt injection), and keep credentials
out of desktops unless a human hands off. Read SECURITY.md.
Documentation
Website · Install · Connect your apps · Remote MCP · Design · Agents & MCP · Integrations · CLI · Python · HTTP API · Claude computer use · OpenAI & Gemini computer use · Profiles · Apps by name · Windows apps · Architecture · FAQ
Contributing
Questions and ideas are welcome in Discussions, and bugs in issues. To help build Minion, pick a good first issue (translations, apps, agent apps, benchmark tasks), read CONTRIBUTING.md, and see where it's going in the roadmap.
License
MIT. The desktops contain open-source software under their own licenses (Debian, Firefox, LibreOffice, Wine, …).
Source: README.md at commit f63929e
Tools
0Version history
2- v1.1.1LatestOct 16, 2026
- v1.0.0Oct 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts