agent-swarm

desplega-aiMIT活跃维护

把多个 AI 编码代理组织成可协作的团队,统一调度与运行时管理,让 Claude Code 等代理像公司部门一样分工干活。

Your Company Agentic Operating System

v2.10.0发布于 2026-11-10 03:10 UTC1,038star +12 / 7 天164fork同步于 2026-11-10 23:51 UTC

怎么上手

由 README 提炼,执行前请确认
curl -fsSL https://agent-swarm.dev/install.sh | bash
硬件要求按 README 说明

自托管建议至少 4 vCPU、8 GB 内存、40 GB 空闲磁盘,升级后需清理旧 Docker 镜像;README 未提及 GPU 或显存要求。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

自托管的 AI 公司操作系统,由 lead agent 把目标拆给 Claude Code 等 worker 执行

把多个 AI 编码代理组织成可协作的团队,统一调度与运行时管理,让 Claude Code 等代理像公司部门一样分工干活。

核心能力

  • lead agent 接收 Slack、仓库、工单、邮件或 API 的任务并分派
  • worker 跑在隔离 Docker 容器里,带开发环境
  • 记忆与身份跨会话持久化,含向量检索与引用评分
  • 支持延迟任务,等被观察任务出结果或到截止时间再唤醒
  • 可接 Claude Code、Codex、Cursor、Grok 等多种 harness 与模型

容易踩的坑

一键安装脚本会检查 Docker 与 Compose v2,缺 Bun 时会自动安装;手动 Compose 部署前需复制 .env.docker.example 并设置 API_KEY 与对应 HARNESS_PROVIDER 的凭据,还要生成 encryption_key;API 默认通过隧道对外公开(由 API key 保护),想只留本地需加 --no-tunnel。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v2.10.0
  1. v2.10.0最新正式版2026-11-10 · 2026-11-10 03:10 UTC

    Install & Run

    npm:

    npx @desplega.ai/[email protected]
    # or install globally
    npm i -g @desplega.ai/[email protected]
    

    bun:

    bunx @desplega.ai/[email protected]
    # or install globally
    bun i -g @desplega.ai/[email protected]
    

    Docker:

    # Server
    docker pull ghcr.io/desplega-ai/agent-swarm:2.10.0
    # Worker
    docker pull ghcr.io/desplega-ai/agent-swarm-worker:2.10.0
    # Dashboard
    docker pull ghcr.io/desplega-ai/agent-swarm-ui:2.10.0
    

    E2B templates:

    # API
    agent-swarm-api-2-10-0
    agent-swarm-api-latest
    
    # Worker / lead runtime
    agent-swarm-worker-2-10-0
    agent-swarm-worker-latest
    

    agent-fs

    Ships agent-fs 0.18.24 (bumped from 0.18.23).

    agent-swarm pins agent-fs via the chart image tag and npm packages @desplega.ai/agent-fs and @desplega.ai/agent-fs-just-bash; each agent-fs release needs a chore(deps): bump agent-fs pins PR here.


    What's Changed

  2. v2.9.12026-11-09 · 2026-11-09 02:59 UTC
    查看更新说明

    Install & Run

    npm:

    npx @desplega.ai/[email protected]
    # or install globally
    npm i -g @desplega.ai/[email protected]
    

    bun:

    bunx @desplega.ai/[email protected]
    # or install globally
    bun i -g @desplega.ai/[email protected]
    

    Docker:

    # Server
    docker pull ghcr.io/desplega-ai/agent-swarm:2.9.1
    # Worker
    docker pull ghcr.io/desplega-ai/agent-swarm-worker:2.9.1
    # Dashboard
    docker pull ghcr.io/desplega-ai/agent-swarm-ui:2.9.1
    

    E2B templates:

    # API
    agent-swarm-api-2-9-1
    agent-swarm-api-latest
    
    # Worker / lead runtime
    agent-swarm-worker-2-9-1
    agent-swarm-worker-latest
    

    agent-fs

    Ships agent-fs 0.18.23.

    agent-swarm pins agent-fs via the chart image tag and npm packages @desplega.ai/agent-fs and @desplega.ai/agent-fs-just-bash; each agent-fs release needs a chore(deps): bump agent-fs pins PR here.


    What's Changed

  3. v2.9.02026-11-08 · 2026-11-08 03:06 UTC
    查看更新说明

    Install & Run

    npm:

    npx @desplega.ai/[email protected]
    # or install globally
    npm i -g @desplega.ai/[email protected]
    

    bun:

    bunx @desplega.ai/[email protected]
    # or install globally
    bun i -g @desplega.ai/[email protected]
    

    Docker:

    # Server
    docker pull ghcr.io/desplega-ai/agent-swarm:2.9.0
    # Worker
    docker pull ghcr.io/desplega-ai/agent-swarm-worker:2.9.0
    # Dashboard
    docker pull ghcr.io/desplega-ai/agent-swarm-ui:2.9.0
    

    E2B templates:

    # API
    agent-swarm-api-2-9-0
    agent-swarm-api-latest
    
    # Worker / lead runtime
    agent-swarm-worker-2-9-0
    agent-swarm-worker-latest
    

    agent-fs

    Ships agent-fs 0.18.23 (bumped from 0.18.22).

    agent-swarm pins agent-fs via the chart image tag and npm packages @desplega.ai/agent-fs and @desplega.ai/agent-fs-just-bash; each agent-fs release needs a chore(deps): bump agent-fs pins PR here.


    What's Changed

  4. v2.8.32026-11-07 · 2026-11-07 02:55 UTC
    查看更新说明

    Install & Run

    npm:

    npx @desplega.ai/[email protected]
    # or install globally
    npm i -g @desplega.ai/[email protected]
    

    bun:

    bunx @desplega.ai/[email protected]
    # or install globally
    bun i -g @desplega.ai/[email protected]
    

    Docker:

    # Server
    docker pull ghcr.io/desplega-ai/agent-swarm:2.8.3
    # Worker
    docker pull ghcr.io/desplega-ai/agent-swarm-worker:2.8.3
    # Dashboard
    docker pull ghcr.io/desplega-ai/agent-swarm-ui:2.8.3
    

    E2B templates:

    # API
    agent-swarm-api-2-8-3
    agent-swarm-api-latest
    
    # Worker / lead runtime
    agent-swarm-worker-2-8-3
    agent-swarm-worker-latest
    

    agent-fs

    Ships agent-fs 0.18.22.

    agent-swarm pins agent-fs via the chart image tag and npm packages @desplega.ai/agent-fs and @desplega.ai/agent-fs-just-bash; each agent-fs release needs a chore(deps): bump agent-fs pins PR here.


    What's Changed

  5. v2.8.22026-11-06 · 2026-11-06 03:02 UTC
    查看更新说明

    Install & Run

    npm:

    npx @desplega.ai/[email protected]
    # or install globally
    npm i -g @desplega.ai/[email protected]
    

    bun:

    bunx @desplega.ai/[email protected]
    # or install globally
    bun i -g @desplega.ai/[email protected]
    

    Docker:

    # Server
    docker pull ghcr.io/desplega-ai/agent-swarm:2.8.2
    # Worker
    docker pull ghcr.io/desplega-ai/agent-swarm-worker:2.8.2
    # Dashboard
    docker pull ghcr.io/desplega-ai/agent-swarm-ui:2.8.2
    

    E2B templates:

    # API
    agent-swarm-api-2-8-2
    agent-swarm-api-latest
    
    # Worker / lead runtime
    agent-swarm-worker-2-8-2
    agent-swarm-worker-latest
    

    agent-fs

    Ships agent-fs 0.18.22 (bumped from 0.18.18).

    agent-swarm pins agent-fs via the chart image tag and npm packages @desplega.ai/agent-fs and @desplega.ai/agent-fs-just-bash; each agent-fs release needs a chore(deps): bump agent-fs pins PR here.


    What's Changed

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    [!TIP] This repo evolves every single day. Watch now →

    agent-swarm.dev is an open-source operating system for AI work. A lead agent delegates goals to workers such as Claude Code or Codex. Isolated containers, shared memory, tools, schedules, and review gates preserve work across sessions.

    What you get

    • A lead agent that receives work from Slack, repositories, issue trackers, email, or the API
    • Schema-validated task results for callers that need structured JSON output
    • Deferred tasks that wake when all or any watched tasks reach an outcome, or a deadline arrives
    • Inline tool-result images in task logs, with previews that open at full size
    • Dashboard file attachments by paste, drag-and-drop, or file picker
    • Workers in isolated Docker containers with development environments
    • Memory and identity that persist across sessions, with citation ratings and self-rating hints enabled by default
    • Workflows, schedules, scripts, and apps for recurring work
    • Extensions for trusted TypeScript hooks, installed as agent-owned inert drafts and activated by a trusted lead, operator, or dashboard user
    • Realtime rooms for shared page state, presence, and live channels
    • Your choice of harness and models: Claude Code, Codex, pi, opencode, Cursor, Amp, Grok, fx, Devin, or ACP agents
    flowchart LR
        subgraph IN["Tasks come in"]
            direction TB
            S["Slack"]
            G["GitHub / GitLab"]
            E["Email"]
            A["API / CLI"]
        end
    
        LEAD(["Lead Agent<br/>plans &amp; delegates"])
    
        subgraph WORKERS["Workers in Docker"]
            direction TB
            W1["Worker"]
            W2["Worker"]
            W3["Worker"]
        end
    
        subgraph BRAIN["Persistent brain"]
            direction TB
            MEM["Memory<br/>(vector search)"]
            ID["Identity<br/>(SOUL, CLAUDE.md)"]
        end
    
        subgraph OUT["Work ships"]
            direction TB
            PR["Pull Requests"]
            REPLY["Slack replies"]
            EMAIL["Email replies"]
        end
    
        IN --> LEAD --> WORKERS
        WORKERS -->|reads context| BRAIN
        WORKERS -->|writes learnings| BRAIN
        WORKERS --> OUT
    

    Quick Start

    Give your coding agent the operator skill for Docker Compose or Kubernetes:

    npx skills add desplega-ai/agent-swarm
    

    Or install it as a plugin in your harness:

    HarnessCommand
    Claude Code/plugin marketplace add desplega-ai/agent-swarm then /plugin install agent-swarm@agent-swarm
    Codexcodex plugin marketplace add desplega-ai/agent-swarm && codex plugin add agent-swarm@agent-swarm (or use npx skills above)
    Cursor/add-plugin desplega-ai/agent-swarm
    Gemini CLIgemini extensions install https://github.com/desplega-ai/agent-swarm
    Antigravity / Factory Droiddroid plugin marketplace add https://github.com/desplega-ai/agent-swarm then droid plugin install agent-swarm@agent-swarm
    OpenCode, pi, Devin, Kimi, othersnpx skills add desplega-ai/agent-swarm

    The plugin's privacy and terms links describe the Agent Swarm website and Cloud service. The self-hosted software remains covered by the MIT License.

    Or self-host. docker-compose.example.yml is the reference deployment: deploy every agent in it by default (1 lead and 11 workers on the official templates), and remove agents only when you have a reason to.

    Plan for at least 4 vCPU, 8 GB RAM and 40 GB of free disk, and prune old Docker images after upgrades. See Host requirements & disk cleanup.

    The one-shot installer checks Docker and Compose v2, installs Bun when missing, runs agent-swarm onboard --yes --preset full (every official template; it runs one coder where the example runs two), and prints the dashboard /setup link:

    curl -fsSL https://agent-swarm.dev/install.sh | bash
    

    The raw GitHub URL (https://raw.githubusercontent.com/desplega-ai/agent-swarm/main/install.sh) serves the same script. The API is public through a tunnel by default, protected by the API key. Add bash -s -- --no-tunnel to keep it local.

    No server yet? Deploy the Railway template in one click:

    Deploy on Railway

    Or deploy one on any VPS: paste deploy/cloud-init.yaml as the user data of a new 4 vCPU / 8 GB Ubuntu server (Hetzner, DigitalOcean, Lightsail, Vultr). It installs Docker and Caddy, serves the API over HTTPS on <ip>.sslip.io or your domain, and shows the /setup link to root at login. To look first, try it for an hour on E2B; that trial deletes its data when the sandboxes stop.

    Or use the examples directly:

    git clone https://github.com/desplega-ai/agent-swarm.git && cd agent-swarm
    cp .env.docker.example .env  # Set API_KEY and the credential for your HARNESS_PROVIDER.
    openssl rand -base64 32 > encryption_key
    chmod 600 .env encryption_key
    docker compose -f docker-compose.example.yml --env-file .env up -d
    

    Agent ID variables are optional. Each container generates a UUID on first boot and keeps it in its personal volume, so identity survives restarts. Pin *_AGENT_ID in .env only to keep an existing identity or to survive removing volumes.

    Read the Compose checklist before starting. API: http://localhost:3013, with /docs and /openapi.json. Next, open the dashboard and connect it to your API with API_KEY. A new install lands on /setup, a guided first run that covers providers, agents, memory, integrations, and a first task. Kubernetes: install the OCI Helm chart.

    Integrations

    Slack · GitHub · GitLab · Azure DevOps · Linear · Jira · AgentMail · WhatsApp (Kapso) · Telegram, Teams and Discord (Chat SDK) · Composio · Sentry · Devin · Serply search. Integration guides.

    AgentMail archives verified inbound deliveries before acknowledging them and retains the archive for 30 days, including mail excluded from task routing. See the contact inbox triage runbook for retention, coverage limits, and rollout instructions.

    Learn more

    Contributing

    Read CONTRIBUTING.md, fork the repository, create a branch, and open a PR. Discuss ideas on Discord.

    Are you an agent? Run npx skills add desplega-ai/agent-swarm or read the operator skill.

    Star History

    License

    MIT · 2025-2026 desplega.sh

    Feature defaults

    Fresh deployments enable Slack thread renderer v2, queued Slack steering to the lead, task steering, multi-runtime workers, RBAC, and task-tool preloading. Hybrid memory search and graph expansion are also enabled. Explicit environment/config overrides remain supported; see the environment reference. When upgrading older workers, keep MULTI_RUNTIME_ENABLED=false until they support runtime identities. Slack delegation rendering remains opt-in, and database retention continues to default to dry-run.