AI GLOSSARY · AGENTS AND AGENT TOOLING

OpenAI Agents SDK

Markdown version

Definition

The OpenAI Agents SDK is a code library from OpenAI for building agent applications in your own environment. The SDK runs the agent loop and supports handoffs between agents while your application keeps control of deployment, tools, storage and approvals.

Also called: agents sdk, openai agent sdk, OpenAI Agents SDK Python, openai agents python.

In plain language

The OpenAI Agents SDK is a set of building blocks from OpenAI for developers who want to write their own AI agent. An agent here is a language model given instructions and tools, such as a search function or a database lookup. The library runs the back-and-forth in which the model asks for a tool, gets the result and decides what to do next, and it can pass a conversation from one agent to a specialist agent. Your own server still runs the tools and stores the data. The model can still make mistakes, and each extra step costs model calls, so test with limits before you let it act.

Technical definition

OpenAI's guide describes the Agents SDK as the option in which the SDK runs inside your application, while the Agents API runs a managed harness in OpenAI's service. The SDK runs the agent loop, calls your tool implementations and supports handoffs; your server handles deployment, state storage and approvals. The guide describes guardrails as validation and human review that can block or pause risky work, and tracing as the first tool for debugging before evaluation. The SDK is available in Python and TypeScript.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is OpenAI Codex? Surfaces and Their Uses

    What you see
    The guide explains Codex as a set of surfaces: a terminal CLI, an IDE extension, a cloud agent and a desktop app, and what each is for.
    Why it exercises the concept
    Codex is OpenAI's coding agent product you run. The Agents SDK is a library for building your own agent application. Reading the guide first makes that difference clear.
  2. Skill by OpenAI · Illustrative, not executed

    openai-docs 28/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    The skill answers questions about Codex and first OpenAI API integrations and model migrations.
    Why it exercises the concept
    It is a catalogue route into OpenAI's documentation when you start wiring an application to OpenAI's APIs, which is the setting the SDK is built for.
  3. Coding tool · Illustrative, not executed

    Codex

    What to try
    codex
    What you see
    You can use Codex interactively from your terminal.
    Why it exercises the concept
    It shows a finished agent product whose loop you do not write. The SDK gives you the pieces to write that kind of loop for your own application.
  4. Guide · Illustrative, not executed

    How to Build an AI Agent: A Minimal Tool Loop

    What you see
    The guide builds a minimal agent in Python as a tool-use loop with a cap on iterations, using Claude's Messages API.
    Why it exercises the concept
    It shows the loop that an agent SDK's runner packages, using a different provider's API. The structure, not the vendor, is the point.

How it shows up when you use agents

The Agents SDK is for building an agent into your own product. It does not replace a coding agent such as Codex or Claude Code. You meet it when a team wants a support assistant, a triage workflow or an internal tool in which a model uses tools and passes work between specialist agents.

  • Your application owns the risk. OpenAI's guide says the SDK runs in your application, so deployment, tool implementations, storage and approvals are yours. A tool that deletes records is as dangerous as you make it. Add approvals for risky actions.
  • Handoffs carry context. A third-party guide (Blaxel, which sells sandbox infrastructure) reports that each handoff passes the full conversation history by default, so budget multi-agent runs. Check OpenAI's documentation for the current behaviour. See Agent loop.
  • Trace before you tune. OpenAI's guide recommends using traces for debugging first and then moving to evaluation. See Observability.
  • Pin versions. The Blaxel guide says the SDK was pre-1.0 when it was written and that minor versions can carry breaking changes. Verify this against the release notes you use.

Next action: write down which tools the agent may call and which of them need a human check, then add guardrails for those. See Guardrails.

Common confusions

  • Agents SDK versus Agents API. OpenAI's guide contrasts them: the SDK runs in your application, the API runs a managed harness in OpenAI's service.
  • Agents SDK versus Codex. Codex is a coding agent product; the SDK is a library for building agents. See AI agent framework.
  • Agents SDK versus the Claude Agent SDK. They come from different vendors and have different design choices. See Claude Agent SDK.
  • Handoff versus tool call. A handoff passes the conversation to another agent; a tool call runs a function and returns to the same agent. See Tool calling.

Terms that mention OpenAI Agents SDK

2 terms mention this one

Guides that mention OpenAI Agents SDK

More in Agents and agent tooling

Next steps

  1. What Is OpenAI Codex? Surfaces and Their Uses The long-form guide.
  2. openai-docs A skill that exercises it.
  3. Guardrails Related term.
  4. AI agent Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by claude-sonnet-5-5; sources and example targets checked by claude-haiku-5-5 source check; claude-sonnet-5-5 editor pass on 2026-11-24. Last verified .

This entry is still in review, so it is not listed in search engines yet.

Change log (2)
  • : First version.
  • : Verifier pass: applied verifier corrections to wording and attributions.