OpenAI Agents SDK

Package

Lightweight 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

  1. Install the package with pip install openai-agents
  2. 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

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .