openai-agents-python — Provider-agnostic SDK for building LLM agents

Project Overview

OpenAI’s entry into the agent framework space arrives with an interesting architectural bet: rather than wrapping their own API in a proprietary layer, they’ve built a provider-agnostic SDK that supports the OpenAI Responses and Chat Completions APIs alongside 100+ other LLMs. At 25,973 stars[1], this project has clearly struck a nerve in the developer community, but what’s more telling is the design philosophy underneath. The framework leans heavily on a concept called “Agents as tools” — where individual agents can be composed into workflows by passing them as tools to other agents, creating a fractal-like hierarchy of delegation. This is a meaningful departure from frameworks that treat agents as monolithic orchestrators. The inclusion of Sandbox Agents in v0.14.0[2] suggests OpenAI is betting that the next frontier isn’t just conversation, but agents that can interact with filesystems and execute real work over extended time horizons. The architecture also separates concerns cleanly: guardrails, tracing, sessions, and human-in-the-loop are all first-class primitives rather than afterthoughts.

What It’s For

This SDK is designed for developers building multi-agent systems where different agents handle distinct responsibilities — think research, code generation, data analysis — and need to hand off context to each other. It’s particularly well-suited to workflows that require long-running tasks with state management, given the built-in session handling and tracing infrastructure. The Sandbox Agent feature, which provides a containerized filesystem environment for agents to work within, makes this framework competitive with tools like LangChain’s agent execution environments, but with a lighter footprint. Where this framework falls short is in scenarios requiring deep customization of the underlying LLM interaction — if you need fine-grained control over token-by-token streaming or exotic sampling parameters, you’ll find the abstraction layer restrictive. It’s also worth noting that despite being provider-agnostic in theory, the SDK’s documentation and examples heavily favor OpenAI models, so teams using alternative providers should expect to do more integration work themselves.

How to Use It

The core workflow revolves around defining agents with specific instructions, tools, and guardrails, then composing them through handoffs or by using agents as tools. The Sandbox Agent pattern introduces a manifest system where you declare what filesystem resources the agent needs — Git repos, directories, or specific files — and the framework handles provisioning a sandboxed environment. This is a notable shift from the typical “give the agent a terminal and hope for the best” approach seen in other frameworks. The SDK also supports both synchronous and streaming execution, with built-in tracing that captures the full execution graph for debugging.

Setting up a Sandbox Agent that can clone a Git repo and work within a local filesystem sandbox

from agents import Runner
from agents.run import RunConfig
from agents.sandbox import Manifest, SandboxAgent, SandboxRunConfig
from agents.sandbox.entries import GitRepo
from agents.sandbox.sandboxes import UnixLocalSandboxClient

Installing the core SDK package from PyPI

pip install openai-agents

Recent Updates

Latest Release: v0.16.0 (2025-07-10)

Latest release with continued improvements to the agent framework

The project has been iterating rapidly, with releases landing frequently since the initial public launch. The introduction of Sandbox Agents in v0.14.0[2] represents the most significant architectural addition, signaling a shift toward agents that can perform real work rather than just generate text. Community engagement remains high, with the repository maintaining strong star growth and active issue discussions around provider integrations and sandbox security models.


Sources & Attributions

[1] Repository star count as of evaluation — openai/openai-agents-python [2] Sandbox Agents feature introduced in v0.14.0 — openai/openai-agents-python@v0.14.0