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 SDK | LangChain |
|---|---|---|
| Gid Score | 64 | 79 |
| Usage data as of | Nov 19 | Nov 19 |
| Rank by Gid Score | #4 | #1 |
| Downloads, last 7 days | 29.3M | 41.1M |
| Downloads, 7-day change | up 5.9% | up 5.7% |
| Downloads, 30-day change | up 37.6% | down 2.7% |
| VS Code installs | — | — |
| Marketplace rating | — | — |
| GitHub stars | 8,588 | 150K |
| Homebrew installs, 30 days | — | — |
| Hacker News mentions, 30 days | 8 | 66 |
| Latest stable release | 0.2.185 · yesterday | 1.5.2 · 2d ago |
| Stable releases, 90 days | 41 | 19 |
| Terminal-Bench (best run) | — | — |
| Price | Free (OSS) | Free (OSS) |
| Incidents, last 30 days | 12 · 10 major or critical | — |
| License | MIT (Python SDK) | MIT |
| First released | — | October 2022 |
| Interfaces | Python library, TypeScript library | Python library, JavaScript library |
| Models | — | — |
A dash means there is no public data for that metric as of Nov 20, 2026.
Trends
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
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
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.