Skip to content

Menu

OpenAI Agents SDK logo

OpenAI Agents SDK

Published

AI Agents

At a glance

What it is
The OpenAI Agents SDK is OpenAI's open-source framework for multi-agent workflows.
Price from
Open source Details
Best for
Teams already building on the OpenAI API; Multi-agent apps with handoffs between specialists
Official site
openai.github.io
Last checked
November 2026
Watch out for
Tracing is on by default and sends data to OpenAI, so teams must opt out or reroute it for sensitive workloads.

The OpenAI Agents SDK is OpenAI's open-source framework for multi-agent workflows. It comes in two versions: a Python package that needs Python 3.10 or newer, and a JavaScript/TypeScript package (@openai/agents) that runs on Node.js 22+, Deno and Bun, with experimental Cloudflare Workers support. Both are MIT licensed.

The model is small on purpose. You configure agents with instructions, tools, guardrails and handoffs, and the runner handles the loop. Agents can hand work to each other or be called as tools. Sessions keep conversation history across runs, with a Redis option in Python. Newer additions include sandbox agents that work inside a container on longer tasks, realtime voice agents, and human-in-the-loop controls.

Despite the name, the SDK is not limited to OpenAI. The Python README says it supports the Responses and Chat Completions APIs plus over 100 other LLMs, with LiteLLM and any-llm as optional dependencies. Tools can be functions, MCP servers or OpenAI hosted tools. Tracing is on by default and sends traces to OpenAI's dashboard. It can be switched off or redirected, and it is not available to orgs under Zero Data Retention.

Key features

Handoffs and agents as tools
Agents can pass a conversation to another agent or call one as a tool.
Guardrails
Configurable input and output checks run alongside the agent.
Sessions
Conversation history is kept automatically across runs.
Built-in tracing
Runs are traced to the OpenAI dashboard by default, with processors for other backends such as Langfuse and Datadog.
Realtime and voice agents
Python offers realtime agents over WebSocket and voice pipelines; the JS version runs voice agents in the browser over WebRTC.
Sandbox agents
Agents can work in a container or filesystem workspace for longer tasks.
MCP and hosted tools
Tools can be plain functions, MCP servers or OpenAI hosted tools.

Pricing

As of November 2026, both the Python and JavaScript/TypeScript SDKs are free and open source under the MIT licence. Model costs are separate: you pay for OpenAI API usage, or another provider's fees if you route to non-OpenAI models. Tracing to the OpenAI dashboard is built into the SDK and on by default.

Best for

  • Teams already building on the OpenAI API
  • Multi-agent apps with handoffs between specialists
  • Voice and realtime agents
  • Projects needing both Python and TypeScript

Limitations

  • Tracing is on by default and sends data to OpenAI, so teams must opt out or reroute it for sensitive workloads.
  • Tracing is unavailable for organisations using OpenAI under a Zero Data Retention policy.
  • Non-OpenAI models go through optional adapters such as LiteLLM, and OpenAI hosted tools are tied to OpenAI's platform.
  • Pull requests are limited to repository collaborators, so outside contributors can only file issues.

Verdict

The OpenAI Agents SDK is a lean option if you want handoffs, guardrails and tracing without a heavy framework, and having matching Python and TypeScript versions is a real plus for mixed teams. It fits most naturally on the OpenAI platform. It does support other models, but check the default tracing behaviour before shipping anything sensitive.

Sources

Written from the vendor's own site and documentation, checked November 2026. We have no paid relationship that affects what this page says.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…