LangChain vs OpenAI Agents SDK
LangChain (LangChain) and OpenAI Agents SDK (OpenAI) side by side on public data, as of Nov 20, 2026.
LangChain has 5.7x the weekly package downloads of OpenAI Agents SDK (41.1M against 7.2M). LangChain has 4.9x the GitHub stars of OpenAI Agents SDK (150K against 30.8K). Over the last 30 days downloads moved -3% for LangChain and +39% for OpenAI Agents SDK. LangChain shipped 19 stable releases in the past 90 days. OpenAI Agents SDK shipped 7 stable releases in the past 90 days.
Which should you choose?
Choose LangChain if
- you need to run local models
- you want to switch between model providers (10 documented against 2)
- you prefer the more widely used tool, with more docs and answers around (Gid Score 79 against 62)
- you want frequent updates (19 stable releases in 90 days against 7)
Choose OpenAI Agents SDK if
- you want the one gaining users faster (downloads up 39% in 30 days, +5% in the last 7)
Built from documented features, official prices, status pages and usage data on this page; it does not judge output quality.
Side-by-side numbers
| Metric | LangChain | OpenAI Agents SDK |
|---|---|---|
| Gid Score | 79 | 62 |
| Usage data as of | Nov 19 | Nov 19 |
| Rank by Gid Score | #1 | #6 |
| Downloads, last 7 days | 41.1M | 7.2M |
| Downloads, 7-day change | up 5.7% | up 4.8% |
| Downloads, 30-day change | down 2.7% | up 38.9% |
| VS Code installs | — | — |
| Marketplace rating | — | — |
| GitHub stars | 150K | 30.8K |
| Homebrew installs, 30 days | — | — |
| Hacker News mentions, 30 days | 66 | 5 |
| Latest stable release | 1.5.2 · 2d ago | 0.25.0 · 2d ago |
| Stable releases, 90 days | 19 | 7 |
| Terminal-Bench (best run) | — | — |
| Price | Free (OSS) | Free (OSS) |
| License | MIT | MIT |
| First released | October 2022 | March 2025 |
| Interfaces | Python library, JavaScript library | Python library, TypeScript library |
| Models | — | — |
A dash means there is no public data for that metric as of Nov 20, 2026.
Trends
LangChain
A framework for building LLM applications and agents from composable parts: model integrations, tools, retrievers and prebuilt agent abstractions. Available for Python and JavaScript.
Pricing: LangChain is open source and free to use; you pay only for the models and infrastructure it runs on.
Latest release 1.5.2:
- Changes since langchain==1.5.1
- release(langchain): 1.5.2 feat(langchain): tag synthetic HITL tool messages with source metadata
OpenAI Agents SDK
OpenAI's lightweight framework for multi-agent workflows, with handoffs, guardrails, sessions and tracing. Available for Python and TypeScript. Per its PyPI page it is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs as well as 100+ other LLMs.
Pricing: OpenAI Agents SDK is open source and free to use; you pay only for the models and infrastructure it runs on.
Latest release 0.25.0:
- Migrate Runloop workloads to another supported sandbox provider, such as Modal, or remain on 0.24.0 while migrating. Provider-specific sessions and snapshots require a separate data migration.
- Resume nested agent-tool approvals with output guardrails using RunState schema 1.22. Pydantic checkpoints now preserve default values and in-place edits.
- OpenAIResponsesCompactionSession now defaults to gpt-6-luna. Set model="gpt-4.1" to keep the previous choice. Agent model settings also follow the selected model more closely.
- Runner handoffs can opt into recovery with failure_error_function. Omitting it preserves exception propagation. The demo REPL can now approve or reject individual tool calls.
LangChain vs OpenAI Agents SDK: common questions
Which is more popular, LangChain or OpenAI Agents SDK?
LangChain has a Gid Score of 79 against 62 for OpenAI Agents SDK. The score combines package downloads, editor installs, GitHub activity and attention, updated daily.
Do LangChain and OpenAI Agents SDK support local models?
LangChain documents support for local models; OpenAI Agents SDK's documentation does not.