// agents · openai/swarm

Swarm

Swarm ist ein Open-Source-Projekt aus der Kategorie KI-Agenten von openai (openai/swarm auf GitHub). Es hat 22.080 Sterne auf GitHub und 2.345 Forks, wird unter der Lizenz MIT veröffentlicht und wurde zuletzt am 15. April 2026 auf GitHub aktualisiert.

Swarm — OpenAI's experimental framework for lightweight multi-agent orchestration with agents and handoffs, MIT

★ 22,1 Tsd. Sterne⑂ 2,3 Tsd. ForksMITaktualisiert Apr 2026
▦ Visual — das README dieses Projekts enthält keinen einbettbaren Screenshot,
darum hier ein Platzhalter. Die Anleitung unten ist trotzdem vollständig.
// projektdaten

Projektdaten

Repository
openai/swarm
GitHub-Sterne
22.080
Forks
2.345
Lizenz
MIT
Zuletzt auf GitHub aktualisiert
15. April 2026
Kategorie
KI-Agenten
Eintragstyp
Vollständige Installationsanleitung
// so funktioniert es

So funktioniert es

  1. Install from GitHub with pip

    Swarm needs Python 3.10+ and installs directly from the repository.

  2. Define agents and a handoff

    Create agents with instructions and tools, and let one agent's function return another agent to hand the conversation over.

  3. Run the conversation

    Start a client, run with an agent and messages, and read the final response.

// funktionen

Warum es so beliebt ist

Just two primitives

Agents and handoffs express rich multi-agent dynamics without a heavy framework to learn.

Lightweight and testable

Coordination stays explicit and controllable, so agent behaviour is easy to test and debug.

Functions as tools

Agents call Python functions directly, and returning another agent is how handoffs work.

Streaming and evaluations included

Streaming runs and evaluation helpers come with the framework, plus worked examples.

Advertisement
// selbst ausführen

Führe es selbst aus

  1. Install

    The README install route (HTTPS form).

    pip install git+https://github.com/openai/swarm.git
  2. Define two agents

    The README example: agent A hands off to agent B.

    from swarm import Swarm, Agent
    client = Swarm()
    def transfer_to_agent_b():
        return agent_b
    agent_a = Agent(name="Agent A", instructions="You are a helpful agent.", functions=[transfer_to_agent_b])
    agent_b = Agent(name="Agent B", instructions="Only speak in Haikus.")
  3. Run

    The README run call for the handoff example.

    response = client.run(agent=agent_a, messages=[{"role": "user", "content": "I want to talk to agent B."}])
    print(response.messages[-1]["content"])
// anwendungsfälle

Was du damit bauen kannst

Advertisement
// häufige fragen

Häufige Fragen

Who makes Swarm?

OpenAI, as an experimental, educational multi-agent framework.

Is Swarm free?

Yes — MIT licensed.

Is Swarm production-ready?

No — OpenAI labels it experimental and educational. Use it to learn and prototype multi-agent patterns, not as a supported production platform.

What are the two primitives?

Agents (instructions plus tools) and handoffs (one agent returning another to take over the conversation).

How do I get started?

pip install from GitHub on Python 3.10+, define two agents with a handoff function, and run a conversation with the client.

// weiter entdecken

Ähnliche Tools

KI-Agenten

openai-agents-js

OpenAI's lightweight TypeScript framework for multi-agent workflows and voice agents.

★ 3,9 Tsd. SterneMIT
Anleitung ansehen →
KI-Agenten

Openai Agents Python

A lightweight, powerful framework for multi-agent workflows

★ 29,8 Tsd. SterneMIT
Anleitung ansehen →
KI-Agenten

CAMEL

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

★ 17,8 Tsd. SterneApache-2.0
Anleitung ansehen →
KI-Agenten

ruoyi-ai

Enterprise-grade AI agent framework with multi-provider LLM management, secure knowledge bases and high-precision RAG, visual workflow orchestration, and mul…

★ 5,7 Tsd. SterneMIT
Anleitung ansehen →
KI-Agenten

swarms

The Enterprise-Grade Multi-Agent Orchestration Framework. Website: https://swarms.ai

★ 7,2 Tsd. SterneApache-2.0
Anleitung ansehen →
KI-Agenten

agent-framework

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

★ 13,9 Tsd. SterneMIT
Anleitung ansehen →
// alternativen

Alternativen im Bereich KI-Agenten

Die anderen Projekte der Kategorie KI-Agenten mit den meisten Sternen im LibreAI-Katalog — die realistische Auswahl, falls Swarm nicht das Richtige ist.

// mehr in agents

Mehr in KI-Agenten

Verwandte Projekte der Kategorie KI-Agenten im Katalog, die Swarm bei den Sternen am nächsten stehen — zum Weiterstöbern auf beiden Seiten.

Hol dir Swarm

Kostenlos und offen — hol dir den Quellcode, gib dem Repository einen Stern und leg los.