OpenAI Swarm

Developed by OpenAI, Swarm is an experimental and educational library that aims to make agent coordination and executive processes light and testable. It runs entirely on Chat Completes API, does not store the status between calls, and mainly uses rollover (handoff) mechanisms with agents. The project has now been replaced with OpenAI Agents SDK, and it is recommended to switch there for production environments.

OP

openai · AI Communities & Swarms

STARS22.1K
FORKS2.3K
COMMITS28
CONTRIBUTORS15
VERSION—
UPDATED6 mo ago
PythonHandoffEducationPrototipMIT
What can it do?
  • Define agent and add instructions and tools to establish basic agent structure
  • You configure the handoff mechanism that allows agents to pass the speech on to another agent.
  • Using the Triage agent example, you redirect incoming requests to the right specialist.
User reviews
  • ↓ NegativeGitHub Issue

    RFC: Optional Context Continuity Packet Pattern for Multi-Run Swarm Workflows

    “# RFC: Optional Context Continuity Packet Pattern for OpenAI Swarm Multi-Run Workflows **Repository:** openai/swarm **Author:** Jean-Sebastien Beaulieu **Date:** 2026-05-10 **Status:** Draft - Seeking Feedback **Type:** Design / Workflow Proposal **Scope:** `Swarm.run()`…”

  • • NeutralGitHub Issue

    Feature: AgentID support for agent identity during handoffs

    “## Summary Swarm agents performing handoffs need identity verification. AgentID provides cryptographic identity so receiving agents can verify who is handing off control. ## Reference Implementation [AgentID]( is an open-source identity layer for AI agents: - ECDSA P-256…”

GitHub

Verified against README · Oct 26, 2026 · source

My note

More in: AI Communities & Swarms