Skip to main content
0
O

Openai Agents Python

A lightweight, powerful framework for multi-agent workflows

Rating

0.0

Votes

0

score

Downloads

0

total

Price

Free

API key required

Works With

Claude CodeCursorWindsurfVS CodeDeveloper tool

About

OpenAI Agents SDK [](https://pypi.org/project/openai-agents/)

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. It is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as 100+ other LLMs.

!NOTE] Looking for the JavaScript/TypeScript version? Check out [Agents SDK JS/TS.

Core concepts:

  1. 1.**Agents**: LLMs configured with instructions, tools, guardrails, and handoffs
  2. 2.[Agents as tools](https://openai.github.io/openai-agents-python/tools/#agents-as-tools) / [Handoffs](https://openai.github.io/openai-agents-python/handoffs/): Delegating to other agents for specific tasks
  3. 3.**Tools**: Various Tools let agents take actions (functions, MCP, hosted tools)
  4. 4.**Guardrails**: Configurable safety checks for input and output validation
  5. 5.**Human in the loop**: Built-in mechanisms for involving humans across agent runs
  6. 6.**Sessions**: Automatic conversation history management across agent runs
  7. 7.**Tracing**: Built-in tracking of agent runs, allowing you to view, debug and optimize your workflows
  8. 8.**Realtime Agents**: Build powerful voice agents with gpt-realtime-1.5 and full agent features

Explore the examples directory to see the SDK in action, and read our documentation for more details.

Get started

To get started, set up your Python environment (Python 3.10 or newer required), and then install OpenAI Agents SDK package.

venv

bash
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install openai-agents

For voice support, install with the optional voice group: pip install 'openai-agents[voice]'. For Redis session support, install with the optional redis group: pip install 'openai-agents[redis]'.

uv

If you're familiar with uv, installing the package would be even easier:

bash
uv init
uv add openai-agents

For voice support, install with the optional voice group: uv add 'openai-agents[voice]'. For Redis session support, install with the optional redis group: uv add 'openai-agents[redis]'.

Run your first agent

python
from agents import Agent, Runner

agent = Agent(name="Assistant", instructions="You are a helpful assistant")

result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)

Don't lose this

Three weeks from now, you'll want Openai Agents Python again. Will you remember where to find it?

Save it to your library and the next time you need Openai Agents Python, it’s one tap away — from any AI app you use. Group it into a bench with the rest of the team for that kind of task and you can pull the whole stack at once.

⚡ Pro tip for geeks: add a-gnt 🤵🏻‍♂️ as a custom connector in Claude or a custom GPT in ChatGPT — one click and your library is right there in the chat. Or, if you’re in an editor, install the a-gnt MCP server and say “use my [bench name]” in Claude Code, Cursor, VS Code, or Windsurf.

🤵🏻‍♂️

a-gnt's Take

Our honest review

A lightweight, powerful framework for multi-agent workflows. Best for anyone looking to make their AI assistant more capable in design & media. It's completely free and works across most major AI apps. This one just landed in the catalog — worth trying while it's fresh.

Tips for getting started

1

Tap "Get" above, pick your AI app, and follow the steps. Most installs take under 30 seconds.

2

Heads up: this needs an API key to work. You'll get one from the service's website (usually free). The setup guide tells you exactly where.

What's New

Version 1.0.06 days ago

Imported from GitHub

Ratings & Reviews

0.0

out of 5

0 ratings

No reviews yet. Be the first to share your experience.