OpenAI Agents SDK
PackageLightweight Python and TypeScript framework for multi-agent workflows
- Price
- Free, open source
- Access
- OpenAI or other LLM API key
About
The OpenAI Agents SDK is an MIT-licensed library for agents with tools, handoffs, guardrails, sessions and built-in tracing. It defaults to OpenAI models but also works with 100+ other LLMs. You pay only for model usage.
What you can do with it
- Build an agent that calls your Python functions and MCP tools
- Hand off conversations between specialised agents with guardrails
- Build realtime voice agents on OpenAI speech models
Get started
- Install the package with pip install openai-agents
- Set OPENAI_API_KEY in your environment
Example
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)Details
- Hosting
- Runs locally
- Available in
- Worldwide
- Official SDKs
- Python, JavaScript/TypeScript
- MCP server
- None
- Works with
- OpenAI