Skip to content
Agents tracked: 492 Releases (7d): 545 Agent status: 1 with issuesSince last limit reset: Claude 9d · Codex 7d For AI agents: Markdown Updated Nov 20, 2026

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 LangChainOpenAI Agents SDK
Gid Score7962
Usage data as ofNov 19Nov 19
Rank by Gid Score#1#6
Downloads, last 7 days41.1M7.2M
Downloads, 7-day changeup 5.7%up 4.8%
Downloads, 30-day changedown 2.7%up 38.9%
VS Code installs——
Marketplace rating——
GitHub stars150K30.8K
Homebrew installs, 30 days——
Hacker News mentions, 30 days665
Latest stable release1.5.2 · 2d ago0.25.0 · 2d ago
Stable releases, 90 days197
Terminal-Bench (best run)——
PriceFree (OSS)Free (OSS)
LicenseMITMIT
First releasedOctober 2022March 2025
InterfacesPython library, JavaScript libraryPython library, TypeScript library
Models——

A dash means there is no public data for that metric as of Nov 20, 2026.

Trends

Downloads per daynpm + PyPI, 7-day average
LangChainOpenAI Agents SDK
GitHub starsrunning total
LangChainOpenAI Agents SDK
Hacker News mentionsrolling 7-day total
LangChainOpenAI Agents SDK

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

Full LangChain profile

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.

Full OpenAI Agents SDK profile

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.