#193193rd of 242 in Agent frameworks and SDKs
swarm
Educational Python library for multi-agent handoffs on Chat Completions
Watch puts swarm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.swarm is on your watch list. Its new releases and problems show there.
- Stars
- 22.2k
- License
- MIT
- Last commit
- Apr 2026
- Language
- Python
20,982 on 25 Mar 202622,187 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
OpenAI is hiring: 877 open roles
Overview
Swarm is a small Python library built around two primitives: Agents (instructions plus Python functions) and handoffs, where a function returns another Agent to take over. client.run() loops over completions, tool calls, agent switches and context variable updates, and keeps no state between calls. The README marks it experimental and educational, and says the OpenAI Agents SDK has replaced it.
Who it is for: Developers learning multi-agent orchestration patterns in Python
Strengths
- Two primitives, Agent and handoff, keep the whole run loop easy to read
- Python functions become tool JSON schemas from type hints and docstrings
- Stateless client.run() with streaming, max_turns and an execute_tools switch
- Examples cover airline, support bot and triage agents, with eval samples
Weaknesses
- Superseded by the OpenAI Agents SDK, which the README recommends for production
- Built on the Chat Completions API; README mentions no other providers
- No persistence or memory; caller must pass state back in each run
- Installed from GitHub with pip; no release published
What it needs
- no GPU
- Needs OpenAI API, Python 3.10+
- Models: OpenAI Chat Completions models (default gpt-4o)
Also in Agent frameworks and SDKs
See all 242| Rank | Project | Score |
|---|---|---|
| #191 | cheshire-cat-ai/corePython agent framework with a web UI and REST API, built for learning | 43 out of 100 |
| #192 | spacy-llmspaCy component that runs LLM prompts for NER, text classification and more | 42 out of 100 |
| #194 | browsergymGymnasium environments for web agents, with ten browser benchmarks | 41 out of 100 |
| #195 | metagptPython multi-agent framework that turns one-line requirements into a software repo | 40 out of 100 |
| #196 | kalosmRust library for running local language, audio and image models | 40 out of 100 |