openai-agents-python
Build multi-agent workflows with configurable handoffs and guardrails
What openai-agents-python is
The framework is described as an SDK for building multi-agent workflows in programming scenarios. It lets developers configure instructions, tools, safety mechanisms and handoffs between agents, and works with any model that follows the OpenAI Chat Completions API format.
What you can do with it
- Transfer tasks between agents with configurable handoffs
- Set up guardrails that validate inputs and outputs
- Monitor and tune workflows with built-in tracing
- Run agents in either async or sync mode
Application scenarios
- Generate a poem or a story with an agent
- Build a multilingual agent that switches response language by input language
- Integrate a weather query tool to get real-time weather information
Getting started
- Create and activate a virtual environment with python -m venv env
- Install the SDK with pip install openai-agents
- Define an agent name, instructions and tools through the Agent class
- Start the agent and read the result with Runner.run()
Pros & cons
✓ What we like
- Compatible with any model using the OpenAI Chat Completions API format
- Async and sync run modes are both supported
! What to watch out for
- Guardrails and handoffs must be configured by the developer
- The documented setup starts from a Python virtual environment
FAQ
What does the SDK let developers configure?
The material lists instructions, tools, safety mechanisms and handoffs between agents.
Which models can it work with?
Any model that follows the OpenAI Chat Completions API format is stated as compatible.
Last reviewed: 2026-11-15
More AI coding tools tools
View all →-
100 Vibe Coding Learn vibe coding by building Free tools Enterprise tools Developer tools API integration Coding -
10Web Prompt to WordPress site with hosting Free tools Developer tools No code development Coding Website builder -
16x Prompt Context management for AI coding Free tools Workflow automation Developer tools API integration Coding -
a0.dev Chat-built mobile apps to store Free tools Developer tools No code development Coding App builder -
Adalo No-code apps with a visual canvas Free tools Developer tools No code development Coding App builder -
AgentQL Natural language web data extraction Freemium tools Developer tools Browser extension Data extraction Coding