OpenAI Agents SDK

OpenAI's lightweight, provider-agnostic agent SDK for Python and TypeScript — handoffs, guardrails, sessions and tracing built in.

The OpenAI Agents SDK (MIT) is a small set of primitives for building agentic apps in Python, with a separate TypeScript/JavaScript SDK. Agents use tools and hand off to other agents or call them as tools; guardrails validate inputs and outputs in parallel; sessions keep conversation history across runs; human-in-the-loop pauses runs for approval. Built-in tracing feeds OpenAI's evaluation and fine-tuning tools. Tools include Python functions, MCP servers (local and remote) and OpenAI hosted tools; realtime voice agents and container-based sandbox agents cover longer tasks. Works with the OpenAI Responses and Chat Completions APIs and with other model providers. The SDK evolves quickly, so APIs can change between releases.

When to use

  • Lightweight multi-agent workflows with few abstractions
  • Handoffs between specialized agents
  • Built-in tracing and guardrails from day one

When not to use

  • You need a full workflow or graph engine
  • You want tracing outside the OpenAI platform by default (tracing defaults to OpenAI)
  • You need a no-code agent builder UI

At a glance

Pricing
Free
Deployment
Self-hosted
Difficulty
Intermediate
License
MIT
Languages
python, js
Use cases
agent framework, multi agent, tool calling, tracing
Last verified
2026-10-20 (official documentation)

Works well with

Alternatives in this category

See all 10 tools in Agent Frameworks — Building AI Agents →

⚖️ Compare Agent Frameworks

Sources

v7.0