VC
Value Add VC
โšกHomePulseโšกHelpful Apps๐Ÿ“Blog
Home/Blog/OpenAI Agents SDK: Building Agentic Workflows With the New Tool Stack
AI & TechnologyJune 20, 2026ยท11 min readยท

OpenAI Agents SDK: Building Agentic Workflows With the New Tool Stack

OpenAI's production-grade agent framework is free, open source, and built on five primitives. Here's what it actually does, how it replaced Swarm, and whether it beats LangChain and CrewAI for real workflows.

TC
Trace Cohen
Co-Founder & GP at Six Point Ventures ยท 3x founder (BrandYourself, Launch.it, SPOT) ยท 65+ investments ยท Based in Boca Raton, FL
@Trace_Cohenยทt@nyvp.comยทSouth Florida Advisory
65+Investments3xFounder$200M+Funds Tracked
ShareXLinkedInEmailQuote card

Quick Answer

The OpenAI Agents SDK is a free, MIT-licensed Python and TypeScript framework built on 5 primitives โ€” agents, tools, handoffs, guardrails, and sessions โ€” that replaced the experimental Swarm project in March 2025. It runs any OpenAI Chat Completions-compatible model and ships with built-in tracing, cutting the boilerplate of multi-agent workflows from hundreds of lines to a few dozen.

The OpenAI Agents SDK is a free, open-source framework built on exactly 5 primitives โ€” agents, tools, handoffs, guardrails, and sessions โ€” that turns a multi-agent workflow from 300+ lines of orchestration glue into roughly 30.

That's the short answer. The longer answer is more interesting โ€” because the SDK is also a tell about where OpenAI thinks the value is moving: not the model, but the loop around it.

What the OpenAI Agents SDK Actually Is

The OpenAI Agents SDK is a lightweight Python and TypeScript framework for building agentic applications โ€” programs where a language model autonomously decides which tools to call, hands work off to specialized sub-agents, and loops until a goal is reached. Released in March 2025 as the production successor to the experimental Swarm project, it is MIT-licensed, free of any platform fee, and built on just 5 core primitives, so a working multi-agent system fits in a single short file.

I've built three companies and made 65+ investments, and the pattern I keep seeing is that founders over-engineer the orchestration layer. The Agents SDK is OpenAI's argument that you shouldn't. It strips agent-building down to a handful of concepts and lets the model do the reasoning instead of forcing you to encode it in a sprawling state machine. The bet is volume: the easier agents are to ship, the more tokens get consumed โ€” and tokens are the business.

The 5 Primitives in the OpenAI Agents SDK

Everything in the OpenAI Agents SDK reduces to five building blocks. Master these and you understand the entire framework โ€” there is no hidden sixth layer of complexity waiting for you in production.

1
Agents
An LLM configured with instructions, a model choice, and a set of tools. This is the unit of work โ€” you give it a system prompt and let it reason about what to do next.
Best for: the core reasoning loop
2
Tools
Python or TypeScript functions the agent can call. The SDK auto-generates the JSON schema from your function signature and docstring, so a decorated function becomes a callable tool in one line.
Best for: letting agents take real actions
3
Handoffs
A mechanism for one agent to delegate to another specialized agent โ€” the triage-to-specialist pattern. Inherited directly from Swarm and the SDK's signature feature.
Best for: multi-agent routing and specialization
4
Guardrails
Parallel input and output validators that run alongside the agent and can halt execution if a check fails โ€” for example, blocking off-topic requests or unsafe outputs before they reach the user.
Best for: safety and scope enforcement
5
Sessions
Built-in conversation memory that automatically persists history across agent runs, so you don't manually thread message state through every call.
Best for: stateful, multi-turn conversations

Layered on top is built-in tracing โ€” every agent run, tool call, and handoff is automatically logged and viewable in the OpenAI dashboard, which removes the single biggest pain of debugging agentic systems: not knowing why the loop did what it did.

OpenAI Agents SDK vs LangChain vs CrewAI

The honest comparison: the Agents SDK wins on simplicity and OpenAI-native tooling, LangChain wins on breadth of integrations, and CrewAI wins on opinionated multi-agent role structure. Here is the side-by-side.

AttributeOpenAI Agents SDKLangChain / LangGraphCrewAI
ReleasedMarch 2025October 20222024
Core concepts5 primitivesDozens of modulesCrews, agents, tasks
License cost$0 (MIT)$0 (MIT)$0 (MIT)
LanguagesPython + TypeScriptPython + JSPython only
Built-in tracingYes, nativeVia LangSmith (paid tiers)Limited
Model support100+ via compatible APIs100+ providersMulti-provider
Learning curveLowSteepMedium
Best fitOpenAI-centric production agentsComplex stateful graphsRole-based agent teams

LangChain launched in October 2022 and now spans hundreds of integrations and a sprawling module surface โ€” powerful, but it's easy to spend a week learning the framework before you ship anything. The Agents SDK's 5-concept footprint means a competent engineer is productive in an afternoon. That speed-to-first-agent gap is the whole pitch.

What Building Agentic Workflows With the SDK Costs

Building agentic workflows with the OpenAI Agents SDK has no framework cost โ€” the SDK is MIT-licensed and free. Your only spend is the model tokens the agents consume, and because agents loop and call tools repeatedly, that token math matters far more than with a single-shot chatbot. Here is what the underlying models cost per million tokens.

ModelInput / 1M tokensOutput / 1M tokensAgent use case
GPT-4o$2.50$10.00Complex reasoning loops
GPT-4o mini$0.15$0.60High-volume cheap tools
o3 (reasoning)~$10.00~$40.00Hard multi-step planning
Claude (via compatible API)~$3.00~$15.00Long-context agents
Gemini Flash (via API)~$0.10~$0.40Cheap classification
Local model (Ollama)$0.00$0.00Privacy-sensitive workflows

The trap founders fall into: an agent that calls 8 tools and reasons over the results can burn 50,000+ tokens for a single user request. At GPT-4o output pricing that's real money at scale, which is exactly why the SDK supports cheaper models like GPT-4o mini at $0.15 per million input tokens for the routine sub-tasks and reserves the expensive reasoning models for the hard steps. If you're tracking how this spend compounds across the industry, our AI Spending dashboard maps where the infrastructure dollars are going.

Why OpenAI Built the Agents SDK (The VC Read)

OpenAI doesn't ship free frameworks out of generosity. The Agents SDK is a distribution play. By making agents trivial to build, OpenAI increases the number of applications that consume its API โ€” and agentic apps consume 5โ€“10x the tokens of a simple chatbot because they loop, retry, and call tools. The framework is the on-ramp; the tokens are the toll road.

This matters for anyone investing in or building AI startups. If your entire company is "an orchestration layer on top of OpenAI," OpenAI just gave that layer away for free. The defensible value isn't the agent framework โ€” it's the proprietary data, the vertical workflow, and the distribution. I've written before about how AI wrappers are dying while AI-native is winning, and the Agents SDK accelerates exactly that. The framework being commoditized pushes value to the edges: the data and the customer relationship.

Where Value Survives

  • โœ“ Proprietary data feeding the agent's tools
  • โœ“ Deep vertical workflows in regulated industries
  • โœ“ Distribution and customer trust
  • โœ“ Evals and reliability engineering at scale

Where Value Evaporates

  • โœ• "We built an agent framework" as the moat
  • โœ• Generic orchestration with no data edge
  • โœ• Thin wrappers reselling raw model calls
  • โœ• Prompt engineering as a defensible product

When to Choose the OpenAI Agents SDK

Choose the OpenAI Agents SDK when you want the shortest path from idea to a working agent, you're already OpenAI-centric, and you value native tracing over maximal flexibility. Reach for LangGraph or CrewAI when your needs push past what 5 primitives cleanly model.

Fast MVP, minimal abstraction

5 primitives means productive in an afternoon, not a week

OpenAI-native tracing and tools

Built-in run logs remove agentic debugging pain

Python and TypeScript parity

Ship the same agent logic on backend and edge

Multi-model flexibility later

100+ models via Chat Completions-compatible APIs

The framework is free. The model tokens are not.

OpenAI gave away the orchestration layer so it could sell the loop that runs on top of it โ€” build on the data and workflow it can't commoditize.

Track AI model pricing and the agent infrastructure boom on the AI Valuations Dashboard at Value Add VC. Originally published in the Trace Cohen newsletter.

Get VC data most people never see โ€” free.

Weekly benchmarks, valuations, and fund data. No spam, unsubscribe anytime.

ShareXLinkedInEmailQuote card

Frequently Asked Questions

What is the OpenAI Agents SDK and what does it do?

The OpenAI Agents SDK is a lightweight, open-source framework for building agentic AI applications โ€” apps where an LLM autonomously calls tools, hands off to other agents, and loops until a task is done. It is built on 5 primitives (agents, tools, handoffs, guardrails, sessions), ships in both Python and TypeScript, and is MIT-licensed so it costs nothing to use beyond the underlying model API calls.

Is the OpenAI Agents SDK free to use?

Yes. The framework itself is MIT-licensed and free with zero license fee. You only pay for the model tokens you consume โ€” for example, GPT-4o at roughly $2.50 per million input tokens and $10 per million output tokens, or cheaper models like GPT-4o mini at about $0.15 per million input tokens. The SDK adds no markup on top of standard API pricing.

How is the OpenAI Agents SDK different from Swarm?

Swarm was OpenAI's experimental, educational multi-agent project released in late 2024 and never meant for production. The Agents SDK, launched in March 2025, is the production-ready successor โ€” it keeps Swarm's handoff concept but adds guardrails, session memory, built-in tracing, and official support. OpenAI has formally deprecated Swarm and points all users to the Agents SDK.

Does the OpenAI Agents SDK work with non-OpenAI models?

Yes. While it defaults to OpenAI models, the SDK works with any provider that exposes a Chat Completions-compatible API, including Anthropic Claude, Google Gemini, and local models via tools like Ollama. More than 100 different LLMs are usable through compatible endpoints, so you are not locked into OpenAI's models even though you use their framework.

Should I use the OpenAI Agents SDK or LangChain in 2026?

Use the OpenAI Agents SDK if you want minimal abstraction, fast setup, and native OpenAI tooling โ€” it ships with about 5 core concepts versus LangChain's much larger surface area. Choose LangChain or LangGraph if you need deep integrations across hundreds of vendors, complex stateful graphs, or framework-agnostic orchestration. For most OpenAI-centric production agents, the Agents SDK is the faster path.

Related Tools & Dashboards

๐Ÿง AI Landscape๐Ÿค–AI Valuations๐Ÿ’ธAI Spending

Keep Reading

๐Ÿค–AI Agent Frameworks in 2026: LangChain, CrewAI, AutoGen, and OpenAI Agents Compared๐Ÿ—๏ธAgentic AI Is Not a Product. It's Infrastructure.๐Ÿ’กAI Wrappers Are Dying. AI-Native Is Winning.

Explore 45+ free VC tools, dashboards, and recommended startup software.

Explore DashboardsHelpful Apps & Platforms

Trace Cohen is a serial founder, investor and data geek. Please feel free to reach out t@nyvp.com

VC
Value Add VC
Helpful AppsTwitterContact