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

Claude Agent SDK vs LangChain

Claude Agent SDK (Anthropic) and LangChain (LangChain) side by side on public data, as of Nov 20, 2026.

LangChain has 1.4x the weekly package downloads of Claude Agent SDK (41.1M against 29.3M). LangChain has 17.5x the GitHub stars of Claude Agent SDK (150K against 8,588). Over the last 30 days downloads moved +38% for Claude Agent SDK and -3% for LangChain. Claude Agent SDK shipped 41 stable releases in the past 90 days. LangChain shipped 19 stable releases in the past 90 days.

Which should you choose?

Choose Claude Agent SDK if

  • you want the one gaining users faster (downloads up 38% in 30 days, +6% in the last 7)
  • you want frequent updates (41 stable releases in 90 days against 19)

Choose LangChain if

  • you need to run local models
  • you want to switch between model providers (10 documented against 4)
  • you prefer the more widely used tool, with more docs and answers around (Gid Score 79 against 64)

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 Claude Agent SDKLangChain
Gid Score6479
Usage data as ofNov 19Nov 19
Rank by Gid Score#4#1
Downloads, last 7 days29.3M41.1M
Downloads, 7-day changeup 5.9%up 5.7%
Downloads, 30-day changeup 37.6%down 2.7%
VS Code installs——
Marketplace rating——
GitHub stars8,588150K
Homebrew installs, 30 days——
Hacker News mentions, 30 days866
Latest stable release0.2.185 · yesterday1.5.2 · 2d ago
Stable releases, 90 days4119
Terminal-Bench (best run)——
PriceFree (OSS)Free (OSS)
Incidents, last 30 days12 · 10 major or critical—
LicenseMIT (Python SDK)MIT
First released—October 2022
InterfacesPython library, TypeScript libraryPython library, JavaScript 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
Claude Agent SDKLangChain
GitHub starsrunning total
Claude Agent SDKLangChain
Hacker News mentionsrolling 7-day total
Claude Agent SDKLangChain

Claude Agent SDK

Anthropic's SDK that exposes the agent loop, tools and context management behind Claude Code, for building custom agents in Python and TypeScript.

Pricing: The SDK is free to install; usage is billed through the Claude API or a Claude subscription.

Latest release 0.2.185:

  • bash pip install claude-agent-sdk==0.2.185

Full Claude Agent SDK profile

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

Claude Agent SDK vs LangChain: common questions

Which is more popular, Claude Agent SDK or LangChain?

LangChain has a Gid Score of 79 against 64 for Claude Agent SDK. The score combines package downloads, editor installs, GitHub activity and attention, updated daily.

Do Claude Agent SDK and LangChain support local models?

LangChain documents support for local models; Claude Agent SDK's documentation does not.