CreateWithAIHub

Framework OpenAI

OpenAI Agents SDK

OpenAI's lightweight, provider-agnostic framework for single and multi-agent workflows in Python and TypeScript.

Agent SDKFreeOpen source
View repository ↗
Save

What it is

The OpenAI Agents SDK is a small framework for building agents and multi-agent workflows. It is built around agents with instructions and tools, handoffs between agents, guardrails, sessions and built-in tracing, and adds sandbox agents and realtime voice agents. It supports OpenAI's APIs and many other LLMs, in Python and JavaScript/TypeScript.

What it's useful for

Building a triage agent that hands off to specialist agents, adding input/output guardrails, or prototyping a voice agent.

Key features

  • Agents with tools, handoffs and agents-as-tools
  • Guardrails for input and output validation
  • Sessions for conversation history and built-in tracing
  • Sandbox agents for long-running work in a container
  • Realtime and voice agents

How to use it

Before you start

  • Python 3.10+ (Python SDK)
  • Node.js 22+, Deno or Bun (JS/TS SDK)
Python
pip install openai-agents
TypeScript
npm install @openai/agents zod

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • UnixLocalSandboxClient only works on macOS and Linux; Windows needs Docker or a hosted sandbox

Alternatives

Google's open-source, code-first framework for building, evaluating and deploying agents in Python, TypeScript, Go and Java.

FreeOpen source

AWS's open-source, model-driven SDK and harness for building agents in Python and TypeScript.

FreeOpen source

Anthropic's Python and TypeScript library for building agents on the same tools and agent loop as Claude Code.

Free

Open-source Python framework for multi-agent automation using role-based Crews and event-driven Flows.

FreeOpen source

See all 12 OpenAI Agents SDK alternatives →

MCP servers for this

Browserbase's hosted MCP server that lets agents drive cloud browsers with natural-language Stagehand actions.

Free plan + paid

Google Chrome team's MCP server and CLI that let coding agents control, debug and profile a live Chrome browser.

FreeOpen source

Docker Desktop's MCP Toolkit and Catalog that run MCP servers in containers and connect them to clients through one gateway.

Free plan + paidOpen source

Skills for this

Anthropic skill that guides Claude through designing, building and evaluating MCP servers in TypeScript or Python.

FreeOpen source

Related resources

Google's collection of small runnable agents built with Agent Development Kit (formerly ADK Samples), in Python, TypeScript, Go, Java and Kotlin.

FreeOpen source

Anthropic's REST API for Claude models, with official SDKs in Python, TypeScript, Go, Java, C#, PHP and Ruby.

Paid

Anthropic's collection of starter projects for building apps and agents on the Claude API.

FreeOpen source

Cloudflare starter for an AI chat agent on Workers with tools, approvals, scheduling and vision via Workers AI.

FreeOpen source

Type to search. Use ↑ ↓ and Enter.