OpenAI Agents SDK vs LangGraph · Few abstractions vs explicit graphs

OpenAI Agents SDK vs LangGraph

Last reviewed: September 2026Lightweight SDKGraph framework

Quick answer

The OpenAI Agents SDK is a lightweight library with very few abstractions: agents, handoffs, guardrails, sessions and tracing. LangGraph is a lower-level framework where you model the system as a stateful graph. Pick the Agents SDK for fast, readable handoff-based agents; pick LangGraph for complex, long-running workflows that need durable state. If both end up in your stack, BAND connects their agents.

Best for simple handoffsBest for complex stateful workflows

The Agents SDK is OpenAI's production successor to its Swarm experiment, available in Python and TypeScript. It works with 100+ model providers, not only OpenAI's, and its human-in-the-loop flow pauses a run until a person approves or rejects a sensitive tool call. It is intentionally small.

One change matters for this comparison. OpenAI's AgentKit launched in October 2025 with a visual Agent Builder, but on June 3, 2026 OpenAI said it is winding down Agent Builder and Evals, which will no longer be available from November 30, 2026. OpenAI points users to the Agents SDK for code-based agents. So this is an SDK-to-framework comparison, not a visual builder against a framework.

How do OpenAI Agents SDK and LangGraph compare on specs?

SpecOpenAI Agents SDKLangGraph
DesignFew abstractions: agents, handoffs, guardrails, sessionsLow-level state graph
Multi-agent patternsHandoffs; agents as tools (manager style)Subagents, handoffs, skills, router, custom
LanguagesPython, TypeScript/JSPython, JS/TS
Models100+ providersModel-agnostic
A2ANot documentedYes, via LangSmith Agent Server
MCPYes (MCP server tools)Yes (agents exposed at /mcp)
Human-in-the-loopneeds_approval interruptions, resumable run stateInterrupts
TracingBuilt inLangSmith
HostingLibrary you hostSelf-host or LangSmith Deployment
LicenseMITMIT
GitHub stars (approx., Sep 2026)~28.6k (Python)~38k

How do OpenAI Agents SDK and LangGraph coordinate agents?

With the Agents SDK, an agent hands the conversation to another agent, or calls another agent as a tool and keeps control. Approvals surface run-wide, whether the tool belongs to the current agent, a handed-off agent or a nested agent-as-tool. It is simple to read and reason about, and it lives inside one process or app.

LangGraph models the same ideas as nodes and edges over a shared state, which costs more setup and pays off when flows branch, loop, wait for days or need checkpoint-level recovery.

OpenAI Agents SDK

Triage agentBilling agentRefunds agenthandoffhandoff
Agents hand off the conversation.

LangGraph

one appRouterAgent AAgent BState
Explicit graph over shared state.

When should you choose OpenAI Agents SDK, and when LangGraph?

Choose the Agents SDK if

  • You want the smallest possible framework and readable code.
  • Handoffs between a few agents describe the job.
  • You want built-in tracing, guardrails and voice or realtime agents.
  • You were planning to use Agent Builder, which is being wound down.

Choose LangGraph if

  • Your workflow branches, loops or runs for a long time.
  • You need durable execution and checkpoints.
  • You want A2A endpoints on deployed agents.
  • You plan to use LangSmith for tracing and deployment.

Can you use OpenAI Agents SDK and LangGraph together?

It is common to see small Agents SDK services next to a larger LangGraph system. Neither needs to be rewritten for them to cooperate. The Agents SDK does not document A2A, so direct interop means wrapping it yourself; if the two sets of agents need to work together with shared context and people in the loop, BAND is built for that job. OpenAI's SDK is not on BAND's integrations list, so check BAND's docs for the SDK route.

How much do OpenAI Agents SDK and LangGraph cost?

PlanPriceWhat you get
OpenAI Agents SDKFreeMIT; you pay model API usage
LangGraphFreeMIT
LangSmith Developer$01 seat, 5k base traces/mo
LangSmith Plus$39/seat/mo10k base traces/mo, 1 free Serverless deployment

Prices from vendor pages, September 2026

What else do people ask about OpenAI Agents SDK vs LangGraph?

Is the OpenAI Agents SDK only for OpenAI models?

No. The repository describes support for 100+ LLM providers.

Is OpenAI Agent Builder going away?

Yes. OpenAI said on June 3, 2026 that Agent Builder and Evals will no longer be available from November 30, 2026, and points users to the Agents SDK or Workspace Agents in ChatGPT.

Which is easier to learn?

The Agents SDK, by design. LangGraph takes longer but gives more control.

Does the Agents SDK support human approval?

Yes. Tools marked needs_approval pause the run; you approve or reject and resume from saved state.

Which comparisons should you read next?

BAND vs LangGraph

Not either/or. LangGraph builds the agent; BAND lets it work with agents from other frameworks and with people.

Collaboration layerGraph framework
Read comparison

LangGraph vs CrewAI

LangGraph for control, CrewAI for speed. If you end up with both, BAND lets them collaborate.

Graph frameworkRole-based crews
Read comparison

LangGraph vs Google ADK (Agent Development Kit)

LangGraph for deep control in Python or TypeScript; ADK for five languages and Google Cloud. BAND connects both.

Graph frameworkMulti-language framework
Read comparison