Is the OpenAI Agents SDK free to use?
The package is free, but running an agent usually isn’t. openai-agents-python is MIT-licensed and installs with pip install openai-agents, then the quickstart has you set an OPENAI_API_KEY, so the agent’s model calls go through an OpenAI API account, which OpenAI bills for usage.
You can point individual agents at other providers instead. The models docs describe setting a model per agent, which lets you mix providers in one run, and in that case the model bill comes from each provider you use.
Tracing is a separate line. It is on by default and uploads traces to OpenAI’s servers, so with a non-OpenAI model the docs suggest three options: disable tracing, give the tracing exporter an OpenAI key, or use another trace processor. The OpenAI key route is described as free tracing in the OpenAI Traces dashboard.
The license covers the wrapper only. Spend follows the number of model calls in a run, and evaluating the agent adds its own cost.
published
sources
- OpenAI Agents SDK docs, Quickstart fetched
- OpenAI Agents SDK docs, Models fetched
- OpenAI Agents SDK docs, Tracing fetched
- openai-agents-python, LICENSE fetched