OpenAI Agents SDK

by OpenAI
Open

Builds Python AI agents with tools, agent handoffs, guardrails, and execution tracing.

Description

OpenAI Agents SDK is a Python library for building agents that use tools and carry out multi-step tasks. Developers define instructions, register functions, and control the conditions under which an agent finishes its work. Agents can delegate work to specialized agents through handoffs. The SDK also supports MCP tools, sessions for retaining context, and checks on inputs and outputs. Built-in tracing helps developers inspect model calls, tool executions, and transfers between agents. It is suitable for prototypes and applications that need an agent runtime under developer control. The library is distributed under the MIT license, but calls to commercial models and third-party APIs can incur separate charges. Developers remain responsible for application hosting, data storage, tool permissions, and access controls.