How to Install the OpenAI Agents SDK and Build Multi-Agent Assistants
The OpenAI Agents SDK is OpenAI's open-source Python framework for building several AI assistants that share work, call tools and hand tasks to each other, with tracing and debugging built in.
What is the OpenAI Agents SDK?
The OpenAI Agents SDK is OpenAI's open-source framework for building AI assistants that work together. Instead of one assistant trying to do everything, you build several specialised agents — one that handles support questions, one that looks up orders, one that drafts replies — and they hand work to each other, use tools, and keep track of what is happening while they run.
It is a Python SDK, published on GitHub, and it comes with tracing and debugging so you can see what each agent did and where a run went wrong.
What can you do with the OpenAI Agents SDK?
- Build agents that call tools, such as searching a database or sending a message
- Let agents hand tasks to each other when a job crosses specialties
- Trace and debug runs to see each step an agent took
- Build assistants for support, sales, research and day-to-day operations
How to install the OpenAI Agents SDK
You need Python installed. Open a terminal and run:
pip install openai-agentsThat installs the SDK. To actually run agents, you also need an OpenAI API key, because the agents call OpenAI models: the SDK itself is free and open source, but model use is billed through the API. Set your key as an environment variable before you run your code, following the examples in the project's README.
First steps after installing
Build one small agent first. Give it a single tool — for example, looking up an order by number — and ask it a question that needs that tool. Watch the trace to see how it decides to call the tool and how it uses the result. Once that works, add a second agent and practise handing a task from one to the other.
Frequently asked questions
Is the OpenAI Agents SDK free? The SDK is free and open source. Running agents uses OpenAI models, which are billed through the API, so you need an API key with billing enabled.
Is it hard to install? No. One pip command is enough.
How do I uninstall it? The project's README does not give uninstall steps. The standard way to remove a Python package is pip uninstall, but check the README for the exact steps for your setup.
Comments (0)