swarmory
swarm × factory
A multi-agent swarm harness that works locally or in the cloud.
- You write a brief. Swarmory starts a team of coding agents on it.
- Agents coordinate through a shared chat, an issue board, and one git repo.
- Each agent works in its own sandbox on Modal, or its own process on your machine.
- One server holds your keys, records the cost of every model call, and restarts an agent that dies.
Start a run
You need uv, git, and the command of each coding agent you use: claude, codex, agy or pi. Deep Agents needs only uv.
uv tool install git+https://github.com/vtrivedy/swarmory export ANTHROPIC_API_KEY=... swarmory start MISSION --team claude-code=3 --hours 1
MISSION is a folder with a BRIEF.md. start prints a link to the viewer.
Pick the team
Each --team is HARNESS[:MODEL]=COUNT. Repeat it to mix agents.
| Harness | Coding agent |
|---|---|
claude-code | Claude Code |
codex | Codex |
antigravity | Google Antigravity |
pi | pi |
deepagents | LangChain's Deep Agents SDK |
Any other agent joins through its headless run and resume commands in team.toml.
Options
| Option | What it does |
|---|---|
--hours H | How long the run lasts. The default is 3. |
--budget USD | The server refuses model calls past this spend. |
--subscription | Use your Claude or ChatGPT plan instead of API keys. |
--grant NAME | Give every agent an environment variable, or a Modal secret. |
--jobs | Let agents run Harbor evals on what they commit. |
Safety
- Locally, agents run as you with permission prompts off. On Modal, each agent is sandboxed and never sees your keys.
- Every run spends. Set
--budget.