// agents · openai/swarm

Swarm

Swarm es un proyecto de agentes de IA de código abierto de openai (openai/swarm en GitHub). Tiene 22.080 estrellas en GitHub y 2.345 bifurcaciones, se publica bajo la licencia MIT y se actualizó por última vez en GitHub el 15 de abril de 2026.

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

★ 22,1k estrellas⑂ 2,3k bifurcacionesMITactualizado abr 2026
▦ visual: el README de este proyecto no incluye ninguna captura incrustable,
así que aquí va un marcador. La guía de abajo está completa de todos modos.
// datos del proyecto

Datos del proyecto

Repositorio
openai/swarm
Estrellas en GitHub
22.080
Bifurcaciones
2.345
Licencia
MIT
Última actualización en GitHub
15 de abril de 2026
Categoría
Agentes de IA
Tipo de ficha
Guía de instalación completa
// cómo funciona

Cómo funciona

  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.

// características

Por qué gusta tanto

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
// ejecútalo

Ejecútalo tú mismo

  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"])
// casos de uso

Qué puedes crear

Advertisement
// preguntas frecuentes

Preguntas frecuentes

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.

// sigue explorando

Herramientas similares

Agentes de IA

openai-agents-js

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

★ 3,9k estrellasMIT
Ver la guía →
Agentes de IA

Openai Agents Python

A lightweight, powerful framework for multi-agent workflows

★ 29,8k estrellasMIT
Ver la guía →
Agentes de IA

CAMEL

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

★ 17,8k estrellasApache-2.0
Ver la guía →
Agentes de IA

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,7k estrellasMIT
Ver la guía →
Agentes de IA

swarms

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

★ 7,2k estrellasApache-2.0
Ver la guía →
Agentes de IA

agent-framework

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

★ 13,9k estrellasMIT
Ver la guía →
// alternativas

Alternativas en Agentes de IA

Los demás proyectos de Agentes de IA con más estrellas del catálogo de LibreAI: la lista realista de alternativas si Swarm no es lo que buscas.

// más en agents

Más en Agentes de IA

Proyectos de Agentes de IA cercanos en el catálogo, los más próximos en estrellas a Swarm: sigue explorando a ambos lados.

Consigue Swarm

Gratis y abierto: consigue el código fuente, dale una estrella al repositorio y empieza a crear.