OpenAI Agents SDK
openai.github.ioframeworkself-hosted
OpenAI Agents SDK is a self-hosted framework in the Agent Frameworks layer of the AI stack. Lightweight primitives for handoffs, guardrails and tracing.
By Lattice editorial · Facts verified · method
- licence
- Apache-2.0
- language
- Python
- cost
- free
- owned by
- Applied Engineering
Verified 2026-09build refuses it from 2027-04
Use OpenAI Agents SDK when
A small, legible set of primitives for handoffs and guardrails.
Skip OpenAI Agents SDK when
You need multi-provider abstraction at every layer.
Turns a model call into a multi-step program. — that is what this layer of the stack is answerable for. See the full Agent Frameworks section for the rest of the options.
Also belongs in
- Guardrails & SafetyGuardrails are a first-party primitive on the runner rather than a proxy in front of it.
Badge this entry
[](https://lattice.kunjshah.in/agent-frameworks/openai-agents-sdk)Quick answers
- Is OpenAI Agents SDK open source?
- Yes. OpenAI Agents SDK is open source under the Apache-2.0 licence. It is free to use.
- What are the alternatives to OpenAI Agents SDK?
- The closest alternatives to OpenAI Agents SDK are Claude Agent SDK and smolagents.
Compared in
Reading on agents
Alternatives to OpenAI Agents SDK
compare 2 →Listed as an alternative to
- MastraMastraTypeScript agent framework with typed workflows and evals.Use when TypeScript agents with typed workflows and evals built in.Skip when You are working in Python.Apache-2.0 · self-hosted · free
- Claude Agent SDKClaude Agent SDKAnthropic's toolkit for building agents with tool use and hooks.Use when Building agents against Anthropic models, with tool use and hooks.Skip when You need provider independence at the framework layer.proprietary · self-hosted · free
- LettaLettaAgent runtime with persistent, editable memory as a first-class primitive.Use when Agents whose memory is a first-class, inspectable and editable state.Skip when You want memory to be a detail the framework handles for you.Apache-2.0 · self-hosted · free
- Vercel AI SDKVercel AI SDKProvider-agnostic building blocks for streaming apps and agents.Use when Streaming model calls in a TypeScript app, provider-agnostically.Skip when You need agent orchestration rather than model calls.Apache-2.0 · self-hosted · free
Also in agents
- LangChainLangChainComposable abstractions for model calls, tools and state.Use when Tool use and state, in an ecosystem where the answers already exist.Skip when You want a thin, legible core — this is a large surface.MIT · self-hosted · free
- LlamaIndexLlamaIndexData-centric framework for retrieval and agent workflows.Use when Data-centric work where retrieval is the centre of the problem.Skip when You need agent orchestration more than data access.MIT · self-hosted · free
- Pydantic AIPydantic AIType-safe agent framework that leans on Pydantic models.Use when Type-safe agents where schema correctness is the priority.Skip when You want a batteries-included ecosystem.MIT · self-hosted · free
- AutoGenAutoGenMicrosoft research project for conversable multi-agent systems.Use when Research into conversable multi-agent systems.Skip when You need something stable and documented for production.MIT · self-hosted · free
- CrewAICrewAIRole-based orchestration where agents collaborate as a crew.Use when Role-based orchestration where agents are framed as a team.Skip when You want direct control over the loop itself.MIT · self-hosted · free
- Semantic KernelSemantic KernelMicrosoft SDK for embedding AI steps into .NET and Python apps.Use when Embedding AI steps into an existing .NET estate.Skip when Your stack is not .NET.MIT · self-hosted · free
- MastraMastraTypeScript agent framework with typed workflows and evals.Use when TypeScript agents with typed workflows and evals built in.Skip when You are working in Python.Apache-2.0 · self-hosted · free
- AgnoAgnoMinimal agent runtime centered on model-agnostic tool interfaces.Use when A minimal agent runtime with model-agnostic tool interfaces.Skip when You need the wider ecosystem around it.MPL-2.0 · self-hosted · free
- Claude Agent SDKClaude Agent SDKAnthropic's toolkit for building agents with tool use and hooks.Use when Building agents against Anthropic models, with tool use and hooks.Skip when You need provider independence at the framework layer.proprietary · self-hosted · free
- LettaLettaAgent runtime with persistent, editable memory as a first-class primitive.Use when Agents whose memory is a first-class, inspectable and editable state.Skip when You want memory to be a detail the framework handles for you.Apache-2.0 · self-hosted · free
- smolagentssmolagentsMinimal code-first agent loop from the Hugging Face team.Use when Reading the whole agent loop in a page — it is deliberately tiny.Skip when You need a rich tool ecosystem around it.Apache-2.0 · self-hosted · free
- Vercel AI SDKVercel AI SDKProvider-agnostic building blocks for streaming apps and agents.Use when Streaming model calls in a TypeScript app, provider-agnostically.Skip when You need agent orchestration rather than model calls.Apache-2.0 · self-hosted · free