Swarm
Status (November 2026): Swarm is no longer maintained.
Development has stopped and Swarm's hosted services are shut down. swarmagent.dev, its docs, the install command that downloads from it and the model catalog at models.swarmagent.dev no longer work. Past releases stay available on this page under Releases, and the code stays here under its Apache-2.0 license for anyone who wants to read it, fork it or run it themselves. Issues and pull requests are no longer reviewed.
Thank you to everyone who tried Swarm.
Swarm is a headless AI agent platform you self-host on Linux. It runs coding, research, design and media agents, workflows, schedules and monitoring across your machines. Drive it from your AI over MCP, or from your own code with the SDK, HTTP API or CLI.
Website · Docs · AI setup playbook
Install it on your Linux PC or server. Choose how to use it:
- MCP tools for your AI: Claude Code, Codex or ChatGPT.
- SDK for your own code:
@swarm-agent/sdk.
- HTTP API for your own client app: building a client, the way Swarm Console does it.
- CLI for command-line setup and control:
swarmctl.
Through MCP, your AI can get work done in your folders two ways:
- Delegate a goal to Swarm. It plans the work and splits it across its
coder, finder and designer.
- Give work directly to an agent: the coder (code), designer (UI
and HTML designs), finder (research and audits), or media (images,
video, sound). Use your own workers for jobs with standing instructions,
and add a reviewer step to a workflow to review completed work.
Coding tasks use isolated branches and return a report and cost information;
your AI reviews the changes before authorizing a merge. Research and media
return reports or files instead. When you want more:
- Workers: your own named workers with standing instructions.
- Schedules: a worker runs a job every N minutes or on cron.
- Automations: steps that run when a job ends: your script, another agent
(a reviewer, say), or sending the job back with feedback.
- Environments: a folder's own container (a base image plus setup) that its
agents' commands run in, with that folder's secrets. Agents see stand-ins;
the real value goes out only to the websites you allowed.
- Monitoring and alerts: your AI asks whether Swarm is all right and what
happened (jobs finished or failed, cost, workers blocked); signals go to a
webhook or Telegram.
By default agents run on the machine as Swarm's own user, without permission
prompts and without a sandbox; install.sh sandbox on runs every command in
one container per project. No dashboard is required: use your AI over MCP,
or integrate Swarm into your own apps and scripts. The headless setup page
lets you enter provider keys; scripted setup is available too.
This repository is under active development; this README describes what the
current code does.
This is swarm-agent/swarm at
swarmagent.dev, not OpenAI's Swarm framework,
Docker Swarm, or kyegomez/swarms.
When to use Swarm
- Run coding agents in parallel in the background while you keep working,
within your configured concurrency and approval limits.
- Run a self-hosted agent fleet on your own Linux machines. Commands and
checkouts stay there; configured model providers still receive model requests.
- Let Claude Code, Codex or ChatGPT delegate work through MCP tools, wait for
the result, and read reported token usage and estimated cost.
- Build apps and scripts that call Swarm directly through the SDK or HTTP API,
including sealed agents whose tools are
answered by your own application.
- Use your ChatGPT plan, your Claude plan through Claude Code, or provider
API keys to run agents.
- Reach agents across several machines as one fleet through the
tailnet MCP server.
- Give agents folder-scoped secrets through environments: agents see stand-ins,
and real values are sent only to allowed websites.
Install
For AI assistants: when asked to set up Swarm, read
the AI setup playbook and follow it.
Ubuntu 24.04, x86_64. From your own account:
curl -fsSL https://swarmagent.dev/install | sudo bash