Agent Swarm
Lets your AI agent run a self-hosted team: a lead agent hands work to workers in Docker and keeps shared memory.
1.0k stars on GitHubby Desplega LabsLicense MITUpdated 18 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://<swarm_host>/mcp-user
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http agent-swarm https://<swarm_host>/mcp-user --header "Authorization: <your value>"
What to fill in
| Name | What it is | Required |
|---|---|---|
Authorization | Bearer aswt_<token> for an active user on your swarm. Ask a swarm operator to mint it in People > your user > Tokens, or via POST /api/users/{id}/mcp-tokens. Copy the plaintext when minted (shown once). Include the Bearer prefix. The shared swarm API key is not accepted. No endpoint enablement flag is required. | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Send this bug to a worker and tell me when it opens a pull request.
Defer this task until both reviews are done.
What it is
Agent Swarm is an open-source, self-hosted operating system for AI work. A lead agent receives work from Slack, repositories, issue trackers, email or the API, and delegates it to workers such as Claude Code or Codex running in isolated Docker containers. Memory, identity, schedules and review gates carry work across sessions.
What it can do
- Send a task to a worker, with schema-validated results
- Defer a task until watched tasks finish or a deadline arrives
- Workers in isolated Docker containers
- Shared memory and identity that persist across sessions
- Workflows, schedules and scripts for recurring work
- Integrations such as Slack, GitHub, GitLab, Linear and Jira
When to use
- βΊWhen you want one lead agent to split a goal among several workers
- βΊWhen you want an agent team that receives work from Slack or GitHub
- βΊWhen you want work to keep going through schedules and memory across sessions
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
multi-agent-patternsHelps your agent design and coordinate multiple agents in complex systems. It can create architectures like swarms or supervised ones, with agents working together.swarm-initHelps your agent set up a team of several AI agents that work together on a large, multi-file task, such as a feature or a refactor.agent-swarm-memory-managerKeeps your agents' shared memory consistent and quick to search, so they can find what they need without repeating work.Frequently asked questions
Is it free and open source?
Yes. It is under the MIT License and self-hosted. You pay for the models and servers you use.
Which agents can the workers use?
Claude Code, Codex, pi, opencode, Cursor, Amp, Grok, fx, Devin or ACP agents.
How do I install it?
Use the curl one-shot installer, the Docker Compose example, a Helm chart on Kubernetes, or a Railway one-click template.
Is it related to OpenAI Swarm?
The readme has a comment saying it is not OpenAI Swarm, which was an experimental educational library.
Is the API public?
By default the API is public through a tunnel and protected by the API key. Add --no-tunnel to the installer to keep it local.
Can I try it briefly?
Yes. The docs describe a one-hour trial on E2B that deletes its data when the sandboxes stop.
If it does not work
- βΊCheck that Docker and Compose v2 are installed and that the host has enough CPU, RAM and disk.
- βΊSet API_KEY and the credential for your HARNESS_PROVIDER in the .env file before starting.
- βΊPrune old Docker images after upgrades to free disk space.
5 new skills a week. 1 minute to read.