简介
让自主智能体在Base链上用USDC雇佣、协调并支付其他专业智能体,通过XMTP通信完成任务。
原始描述
Enables autonomous agents to hire, coordinate, and pay other specialized agents for tasks using USDC on Base and XMTP communication.
通过你的 Agent 添加
安装目录:agent-swarm/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: agent-swarm
description: Install, self-host, deploy, operate, or use agent-swarm. Covers Docker Compose, Kubernetes, configuration, coding agents, the admin UI, integrations, and connections.
Install and use agent-swarm
The repository at main is the authority. Re-fetch referenced files before acting because this installed skill is a snapshot.
Use the current examples when commands or options change. Mark completed checklist items. Record skipped optional items and the reason.
Install
- Required: establish the target. Confirm the host, Compose or Kubernetes, harness, credentials, agent count, and private or public access. Default to every agent in the Compose example, the reference deployment (1 lead and 11 workers); trim only when the operator has a reason. These choices determine resources and networking. Read the deployment guide.
- Required: check prerequisites. Compose needs Git, Docker with Compose v2, OpenSSL, curl, and jq. Kubernetes needs kubectl, Helm, and persistent storage. Confirm capacity for the selected workers. Read the Compose example and chart values.
- Required: assign component minimums. Keep
.env minimal: boot identity, authentication, encryption, URLs, and harness credentials. Set supported non-boot values through swarm config so the system can validate and reload them. Apply all three tiers in component minimums.
- Required: protect secrets and persistent data. Generate an API key and preserve the encryption key with the database. Each agent needs its own personal volume, which holds the UUID it generates on first boot. The volume preserves identity and task recovery; the encryption key preserves encrypted credentials. Read secrets encryption and component minimums.
- Required: choose memory embeddings. Offer local TEI when the operator needs local processing or no paid embedding key. Offer a hosted provider when they prefer it. Keyword search works without embeddings. The one-command installer already bundles TEI for new installs. For manual Compose, enable the TEI overlay. Follow the embeddings procedure for architecture, configuration, and verification. Swarm memory and agent-fs use separate embedding configuration.
- Required, choose one: Compose. Clone the repository, copy
.env.docker.example, set API_KEY and harness credentials (agent IDs are optional), then start the example services. The examples define the actual environment and volumes. Execute the Compose procedure.
- Required, choose one: Kubernetes. Create the credential Secret and install
oci://ghcr.io/desplega-ai/charts/agent-swarm. Pin the release with --version; omitting it takes the newest published chart. The image tag follows the chart appVersion, so the chart version is the pin. Use pool replicas to size workers. Execute the Helm procedure. Follow Kubernetes and Helm for ingress, dashboard connection, and CORS.
- Required: mount the API volume at
/app/data, never /app. A named volume shadows the image path it covers, so an /app mount freezes the image's migrations/ and package.json at install time while the binary upgrades. The API then queries schema no migration created, and /health reports the stale version and stays green. Existing installs need a one-time data move. Execute the pinning and upgrade procedure.
- Required: pin the image version. On Compose, set
AGENT_SWARM_VERSION in .env to a published release and confirm the API and every agent resolve the same tag. Blank means latest, which moves on every commit to main and is not a release; with pull_policy: always an unpinned stack can change version on any restart. Pinning and the /app/data mount are complementary; pinning alone does not make upgrades safe. Execute the pinning and upgrade procedure.
- Required: verify operation. Check
/health, authenticated /api/agents, and a completed task. A healthy API alone does not prove workers can execute tasks. Execute the API verification procedure.
- Optional: co-deploy agent-fs. Enable shared files, attachments, and search when agents need durable file exchange. Compose includes agent-fs and MinIO. Helm enables it through
agentFs.enabled. Read agent-fs deployment and its minimums and omission procedure.
- Optional: select another harness. Choose Codex, pi with OpenRouter, or Bedrock when your credentials or models require it. Read harness configuration and the credential minimums.
- Recommended: add HTTPS. The hosted dashboard, OAuth callbacks, and webhooks need a public HTTPS API origin. Compose ships a Caddy
tls profile; the chart has a cert-manager shortcut. Execute the HTTPS procedure.
- Optional: use another deployment manager. Use the deployment guide for VPS proxies, Dokploy, and Coolify. Use DEPLOYMENT.md for systemd. The onboarding wizard is an alternative described in getting started.
- Required before any upgrade: back up the database and encryption key. Migrations are forward-only, so re-pinning to an older tag is not a rollback. The backup is. Execute the upgrade procedure on Compose, or the Kubernetes operations procedure on Helm.
- Recommended on Kubernetes: learn day-2 operations. Upgrades, scaling pools, credential rotation, backups, and the troubleshooting table live in the Kubernetes operations procedure.
- Optional: add backups and telemetry. Backups support recovery. OpenTelemetry exposes service activity. Read chart backup settings and OpenTelemetry.
Use, in this order
- Required: access the API through HTTP and MCP. HTTP exposes
/docs and /openapi.json on port 3013. MCP uses /mcp. Connect your coding agent with bunx @desplega.ai/agent-swarm connect. This gives your project access to the swarm. Follow the API and coding-agent procedure.
- Optional: connect the admin UI. Point
https://app.agent-swarm.dev at your API, or run apps/ui locally. Use it to inspect tasks, manage agents, and configure the deployment. Read the UI guide and local UI commands.
- Optional: enable Slack first. Slack provides native task intake, replies, and steering. Import
slack-manifest.json, create both tokens, configure the API, and send the bot a DM. Execute the Slack procedure.
- Optional: enable GitHub or GitLab. Connect repository events so agents can respond to development work. Read GitHub, GitLab, and the integration minimums.
- Optional: enable other integrations. Add the systems that supply your work. Read Linear, Jira, AgentMail, Kapso, and Sentry. Apply their minimums.
- Optional: add connections. Register OpenAPI, GraphQL, or MCP services to give scripts typed access to external systems. Configure connections through the lead or Settings → Connections. Read script connections. Use Composio through the
x router for additional integrations.
- Optional: go deeper. Use durable capabilities when recurring work needs context or automation. Read memory, workflows, schedules, scripts, apps, and worker skills.
.env minimal: boot identity, authentication, encryption, URLs, and harness credentials. Set supported non-boot values through swarm config so the system can validate and reload them. Apply all three tiers in component minimums..env.docker.example, set API_KEY and harness credentials (agent IDs are optional), then start the example services. The examples define the actual environment and volumes. Execute the Compose procedure.oci://ghcr.io/desplega-ai/charts/agent-swarm. Pin the release with --version; omitting it takes the newest published chart. The image tag follows the chart appVersion, so the chart version is the pin. Use pool replicas to size workers. Execute the Helm procedure. Follow Kubernetes and Helm for ingress, dashboard connection, and CORS./app/data, never /app. A named volume shadows the image path it covers, so an /app mount freezes the image's migrations/ and package.json at install time while the binary upgrades. The API then queries schema no migration created, and /health reports the stale version and stays green. Existing installs need a one-time data move. Execute the pinning and upgrade procedure.AGENT_SWARM_VERSION in .env to a published release and confirm the API and every agent resolve the same tag. Blank means latest, which moves on every commit to main and is not a release; with pull_policy: always an unpinned stack can change version on any restart. Pinning and the /app/data mount are complementary; pinning alone does not make upgrades safe. Execute the pinning and upgrade procedure./health, authenticated /api/agents, and a completed task. A healthy API alone does not prove workers can execute tasks. Execute the API verification procedure.agentFs.enabled. Read agent-fs deployment and its minimums and omission procedure.tls profile; the chart has a cert-manager shortcut. Execute the HTTPS procedure.- Required: access the API through HTTP and MCP. HTTP exposes
/docsand/openapi.jsonon port 3013. MCP uses/mcp. Connect your coding agent withbunx @desplega.ai/agent-swarm connect. This gives your project access to the swarm. Follow the API and coding-agent procedure. - Optional: connect the admin UI. Point
https://app.agent-swarm.devat your API, or runapps/uilocally. Use it to inspect tasks, manage agents, and configure the deployment. Read the UI guide and local UI commands. - Optional: enable Slack first. Slack provides native task intake, replies, and steering. Import
slack-manifest.json, create both tokens, configure the API, and send the bot a DM. Execute the Slack procedure. - Optional: enable GitHub or GitLab. Connect repository events so agents can respond to development work. Read GitHub, GitLab, and the integration minimums.
- Optional: enable other integrations. Add the systems that supply your work. Read Linear, Jira, AgentMail, Kapso, and Sentry. Apply their minimums.
- Optional: add connections. Register OpenAPI, GraphQL, or MCP services to give scripts typed access to external systems. Configure connections through the lead or Settings → Connections. Read script connections. Use Composio through the
xrouter for additional integrations. - Optional: go deeper. Use durable capabilities when recurring work needs context or automation. Read memory, workflows, schedules, scripts, apps, and worker skills.