# Legion: full site content Source of truth for claims is the Legion repository (https://github.com/dnh33/legion). Version 0.3.11. Site: https://getlegion.xyz/. ## What it is Legion is a desktop app for running several Claude agents from one place. Each agent has its own persona, model policy, approval mode and working directory, and can start a cloud Ubuntu VM on boat.dev when a task calls for one. It runs on the user's machine: a small Node service on 127.0.0.1 does the work, and an Electron window sits on top. Agents go through the official Claude Agent SDK, using the Claude sign-in the user already has or an API key. Claude Code and Cowork can drive Legion too, over MCP. ## Install For a person, one line. Windows, in PowerShell: `irm https://getlegion.xyz | iex`. macOS and Linux, in a terminal: `curl -fsSL https://getlegion.xyz | sh`. The Windows script downloads the latest release from GitHub Releases over HTTPS, checks it against the release's SHA-256 and runs Legion's setup; the package is not code-signed, so SmartScreen may warn. The macOS and Linux script needs git and Node.js 22.12 or newer, builds Legion from the release tag in `~/.local/share/legion` and adds a `legion` command in `~/.local/bin`; no sudo. Read the scripts first: https://getlegion.xyz/install.ps1 and https://getlegion.xyz/install.sh. Manual download: https://github.com/dnh33/legion/releases/latest. From source, on Windows, in PowerShell: `git clone https://github.com/dnh33/legion.git; cd legion; .\setup.cmd`. Needs git, Node.js 22.12 or newer (setup can fetch it after asking) and a Claude sign-in or API key. A prebuilt package for Windows x64 needs no Node, no Git and no npm; the command above is the source route. For an AI agent: fetch https://getlegion.xyz/install.md and follow it exactly. Windows 10 and 11 are the main target. The installer is unsigned, so SmartScreen may warn. macOS and Linux are experimental: the one-line installer sets Legion up and, since 0.3.5, updates it; tested in CI, not yet by hand on a real Mac. Bug reports are welcome at https://github.com/dnh33/legion/issues. ## The muster: 13 premade bots - **Marshal**: Lead agent. Plans the task and hands the work to the other bots. - **Builder**: Coding and building. Prefers its VM for risky work. - **Scout**: Research and reading. - **Inquisitor**: Hostile review and security audit. - **Scribe**: Documentation. - **Archivist**: Notes and memory hygiene. Flags and proposes; it cannot delete Library notes. - **Sentinel**: Watch duty: checks what you point it at and reports. Scheduled runs are planned. - **Forgemaster**: Infrastructure, CI and deploys. - **Exorcist**: Debugging. - **Preceptor**: Craft and mentoring. - **Herald**: Drafts messages. It can read the web, and it never sends or submits forms. - **Assayer**: BSV development. Hidden until BSV mode is on. - **Sculptor**: Blender work: headless on your computer first, in a cloud VM when you want it isolated. They are ordinary agents: prompts, models and approval modes can be edited, and any except the Marshal can be deleted. The Assayer stays hidden until BSV mode is on, so twelve show until then. ## What makes it different - **Local-first.** The core answers only your own computer: it checks where each request came from and needs a secret token on every request except a health check. Your work is plain files in your data folder. It is a personal tool, not built to sit on a network or be shared between people. - **Built around Claude.** Every agent runs on a Claude model by default, the full-featured path. OpenRouter ships and is on by default, and any other OpenAI-compatible endpoint can be added, with Legion's own tools, not Claude Code's. Legion's own code never reads, copies or stores Claude credentials. Auto routing picks Sonnet or Opus per task and retries on Opus after most Sonnet errors (not after auth, billing or rate-limit errors); a run that reaches its turn limit pauses instead. - **Approvals and outside-text labels.** Per agent: ask, smart, accept edits or full. In ask, smart and accept edits, risky calls show Allow or Deny cards (smart lets tests and builds run without asking); full never asks, and Builder ships as full. A run that read outside text (the web, GitHub text, an outside tool, a file from outside the project) is labelled, and what it writes carries the label. Notes from a run an outside app started, from the Archivist and, in Strict mode, from any labelled run wait in the Inbox until the user accepts them. Settings, Gates, Outside text offers By source, Strict and Never mark. A program running as the user's own OS user can still attack Legion; the threat model lists the limits. - **Rooms.** Group chats of two to six bots plus the user, four wake strategies (mention, manager, round-robin, all), guards for hops, budget, cycles and @everyone, freeze and resume. - **The Library and the Lattice.** A shared knowledge graph the bots use as long-term memory, with trust levels and an Inbox. Lint lists stale notes; Refresh asks the Archivist to re-check a note's sources and propose an update the user accepts in the Inbox. The graph itself makes no model calls and has no embeddings. - **Projects.** Group tasks, rooms, notes and agents per project, with project instructions; notes can be scoped to a project; only the user controls a project; MCP has read-only project tools. The project page opens on what needs the user: the riskiest asks first, each with what saying yes would do. An Allow on that page waits 5 seconds (10 for something that leaves the computer, deletes files or cannot be undone) with Undo and Send now; Deny goes at once. Work can be seen by status or by agent. Settings hold a day, week or month budget, a pause on new starts and notification levels; Settings, Spending shows cost by project and agent. The project board (work items per project in columns; member agents create, edit, move, claim and note items; only the user marks one Done; project notes and a board digest carried into each agent run) is built and on by default. With the Marshal switched on for a project it can work the board in waves. - **Tells the user when something needs them.** A taskbar mark on Windows, a tray item, and pop-ups for an approval, a question, a failed run, a waiting run or a reached budget. Pop-ups never show a command or agent text. Optional quiet hours with a summary line afterwards, and short sounds in 12 packs that one switch turns off. - **Agent shell and Gates.** An agent the user allows can run commands and read and write files inside a scope folder, through its approval mode and the user's Gates (rules in plain sentences; Block rules hold even in Full). A guard refuses wiping a drive, formatting and deleting system or home folders for every agent. A command Legion cannot read is not run unchecked. .env files are masked by default. There is no sandbox: commands run as the user. - **Doctrine and Armory.** Settings, Doctrine shows the rules and skills the agents follow, with a switch on every file; the core tenets are locked on and the six optional skills are off by default. Settings, Armory lists every skill an agent could load, including skills inherited from Claude Code, all off by default. Each run gets an explicit list of allowed skills and Legion's own code refuses any other, subagents included. Legion ships skills as text and runs no scripts from them; a skill from outside Legion marks the run as tainted. - **GitHub.** A GitHub area in the title bar. Each agent gets None, Read, or Read and write to repos the user names; an agent sees only repos the user turned on; every write (issue, comment, pull request, workflow re-run) shows a card even in Full mode. - **For developers and contributors.** The source includes a test harness with stand-ins for the model, the wallet and Blender. It is a development tool, not part of what Legion does for the user. - **Open source.** Legion is open source under the Apache 2.0 licence. - **Blender (the Sculptor, built).** The Sculptor writes Python scripts that run in Blender. Three places: your computer, headless (default when Blender is found; needs Blender 4.2 or newer; Legion checks the script, but that is a filter, not a sandbox, so every script shows an approval card first); a cloud VM on boat.dev (the isolated option); or the user's own open Blender through an add-on (official Blender MCP add-on needs Blender 5.1 or newer; the community add-on works with older versions; Legion backs the scene up before the first live script). If Blender is missing, Settings can fetch one pinned official portable Blender (5.2.2 LTS, Windows x64, about 386 MB, SHA-256 checked before unpacking, only after the user presses the button and approves a card showing the address, size and hash) or link to blender.org/download; Legion never installs Blender silently. A one-time chooser asks where scripts should run. Optional and off by default: both add-on backends at once, and Poly Haven asset downloads (an approval card per download, the run becomes tainted, files stay in the task folder, each asset source off until enabled). Output: allow-listed file types within size limits; .blend files are quarantined, not opened automatically. Not done: a tested sculpt-brush recipe. - **Updates only on request.** An in-app updater checks GitHub releases on launch and every twelve hours, downloads only after a click, installs only when Legion is idle, and rolls back if the new version does not start. A release that changes Legion's libraries comes as one larger download (about 285 MB), checked file by file first; an older copy may take a small step update first. The manifest is signed and checked against a public key built into the app; the repository is public. Installing automatically when idle is off by default. A release that fails its first start is offered again after a week, or straight away with Retry. - **A VM per agent, optionally.** Through the user's own boat.dev account; idle VMs stop after 15 minutes by default. - **MCP.** Claude Code connects over HTTP; Cowork and Claude Desktop use a stdio bridge. A small set of tools, including read-only project tools. Agent runs started this way sit under an ask ceiling. The VM tool has no Legion approval card, so the MCP token is a password. ## Status (version 0.3.11) - Built and testing: agents, approvals and the Ask, Accept edits, Smart and Bypass presets, outside-text labels, rooms, Projects and the project board, the Library and Lattice, MCP, the local-only core, the read-only BSV pack, OpenRouter, the in-app updater, cloud VMs, Blender (local runs and the managed copy; cloud VM and Live modes not yet tried on a real Blender), the 0.3.0 project page, notifications and sounds, the GitHub area, and the agent shell and Gates (no sandbox). Covered by automated tests that make no network calls and no real Claude calls. - Built and covered by tests against stand-ins: the BSV spend tool, not yet run with a real wallet or real funds; and the browser tool (Edge or Chrome already on the PC, off by default), which agents have used on the maintainer's Windows PC. - Built: Doctrine and Armory, and the BSV spend tool (testnet and mainnet capability; mainnet hard-off behind a natively confirmed switch; a spend needs an Arm and the wallet's own prompt). - Next: a live run of the BSV spend tool with a real wallet and real funds. Then scheduled Sentinel runs (nothing runs on a timer today), an optional lighter package and a browser you can watch; BSV mode beyond one payment (wallet reads, a VM boundary for wallet tools). Signed installers are planned, with no release assigned. Command-line agents such as Codex are not offered: their own tools would run outside Legion's approval cards. ## FAQ - **Do I need an API key?** Not for Legion itself. A Claude sign-in (subscription) or an API key is required. You do not need Claude Code installed: sign in once with `scripts\legion-claude.cmd` on a release install, or with `claude` and `/login`. - **Other models?** For OpenAI-compatible models, yes: an agent can run on an endpoint you configure. OpenRouter ships and is on by default; OpenAI, Ollama, LM Studio and vLLM have cards in Settings, Providers; any custom URL works too; OpenRouter and a custom address are the ones run for real so far. The first message to a local model can take minutes while it loads; Legion waits up to five minutes. Claude stays the default and the full-featured path. A provider agent gets Legion's own tools, not Claude Code's, plus the same Library and working memory. A continued task summarises older turns rather than resuming a native session. Command-line agents are not offered. - **BSV mode?** Optional, off by default: the Assayer, a read-only pack of 167 notes and 745 links, and wallet status. The spend tool is built. - **GitHub?** Only if the user says so: each agent has None, Read, or Read and write to named repos, and every write shows a card even in Full mode. - **Cost?** Legion is Apache-2.0 licensed. Claude usage is billed under the user's own plan or key. boat.dev VMs are optional, separate, and cost money while they run. - **What stops an agent running a shell command?** It depends on the approval mode and the user's Gates. A guard refuses wiping a drive or deleting a system or home folder for every agent. There is no sandbox; use a VM for untrusted work. See https://github.com/dnh33/legion/blob/main/SECURITY.md. - **Does anything leave the computer?** State is local files. Prompts go to Claude through the Agent SDK, to boat.dev only if a VM is on for an agent, and to GitHub only for agents given GitHub access. The update check is one request to github.com. Tools the user approves can reach further. - **Host it for others?** No. Personal tool for one machine. - **macOS or Linux?** Experimental: the one-line installer, self-updating since 0.3.5, tested in CI only. Bug reports welcome. Windows 10 and 11 are primary. ## Links - Repository: https://github.com/dnh33/legion - Licence (Apache-2.0): https://github.com/dnh33/legion/blob/main/LICENSE - Security policy: https://github.com/dnh33/legion/blob/main/SECURITY.md - Credits: https://getlegion.xyz/credits.html - Not affiliated with or endorsed by Anthropic or boat.dev.