openai-agents-python (openai/openai-agents-python)

Searching Database…

What is this?It is the OpenAI Agents SDK: a lightweight yet powerful Python framework for building multi-agent workflows, where an agent is an LLM configured with instructions, tools, guardrails and handoffs.
Is it a framework I write code against, or a ready-made app I run?A Python SDK you install into your own project: you define and run agents in code. There is also a separate JavaScript/TypeScript version of the SDK.
How do I add it to a project?pip install openai-agents in a Python 3.10+ environment (or uv add openai-agents). Extras like 'openai-agents[voice]' add voice support, Redis sessions or a Docker sandbox, and you set the OPENAI_API_KEY environment variable before running.
Am I locked into OpenAI models?No — the SDK is provider-agnostic: it supports the OpenAI Responses and Chat Completions APIs plus 100+ other LLMs, with any-llm and LiteLLM as optional dependencies.
Does everything work on Windows out of the box?Not the local sandbox: sandbox agents run natively only on macOS and Linux, so on Windows you need the DockerSandboxClient with the openai-agents[docker] extra or a hosted sandbox client.
What are sandbox agents for?Long-horizon work: they come preconfigured to run inside a container, where the agent can inspect files, run commands, apply patches and preserve workspace state across a longer task.
Can agents delegate to each other?Yes — you can pass one agent to another as a tool or use handoffs, so a workflow can route each task to a specialized agent.
How do I see what an agent did during a run?Tracing is built in: agent runs are tracked automatically so you can view, debug and optimize your workflows.
Is there a JavaScript or TypeScript version?Yes, the README links to a separate Agents SDK JS/TS package for non-Python projects.
Creator
openai
Size
128.1 MB
Stars
30.9K
Age
1y
Commits · 90 Days