ZMIME
OpenAI

OpenAI Agents SDK

A code-first framework for orchestrating agents, tools, handoffs, approvals and traces.

  • Developer frameworks and runtimes

At a glance

Provider
OpenAI
Best suited to
Building a custom agent in Python or TypeScript
Availability
Public SDK. Hosted models and built-in tools require applicable account access.
Interfaces
Python and TypeScript SDKs, API and tracing dashboard
Execution environment
Application code can run on your own infrastructure. Hosted tools and inference execute according to their API configuration.
Model choice
OpenAI-supported models and SDK-configured integrations where applicable.
Tools and integrations
Function tools, handoffs, approval flows and tracing.
Human review and controls
Configure allowed tools and approvals in application code. Review trace data and retention settings.
Prerequisites
Supported Python or TypeScript environment, SDK and API access for hosted model use.
License and hosting
Open-source SDK. Hosted API usage follows OpenAI service terms.

Pricing and usage

The SDK and hosted API are separate. Hosted model tokens, tools and runtime features are priced by service.

Official cost reference

What you can do with it

  • Build an assistant that can call an approved business tool.
  • Route a request to a specialist agent.
  • Trace a failed run and inspect intermediate actions.

How to get started

  1. Install the SDK from the official Python or TypeScript quickstart.
  2. Configure credentials in the application environment and create an agent with one tool.
  3. Test tool input and approval handling before exposing the workflow.

Official setup guide

Limitations

  • The SDK does not deploy or secure the application by itself.
  • Published model prices do not include every tool cost.
  • Trace contents can include task inputs and outputs. Configure collection accordingly.

Official sources

Sources checked

Frequently asked questions

How do I start using OpenAI Agents SDK?

Install the SDK from the official Python or TypeScript quickstart. Configure credentials in the application environment and create an agent with one tool. Test tool input and approval handling before exposing the workflow.

How is OpenAI Agents SDK priced?

The SDK and hosted API are separate. Hosted model tokens, tools and runtime features are priced by service.

What should I check before giving it access?

Configure allowed tools and approvals in application code. Review trace data and retention settings. The SDK does not deploy or secure the application by itself.