2026-11-26 15:40 UTC

PyPI import survey: LangChain leads, most SDK projects use no agent framework

state: seedheat: mediumuncertainty: mediumrelevance: highagent-frameworks python adoptionpy-code.org

What is this?

py-code.org, an independent Python-package indexing site, published an analysis on 14 November 2026 using code from the latest releases of 354,763 PyPI projects, with data dated 13 November. It counts projects whose code imports each of 25 AI agent frameworks, excluding frameworks’ own add-on packages; imports in tests and examples count. The analysis reports LangChain leads at 6,779 projects, ahead of LangGraph at 2,417. Among 14,659 projects importing OpenAI or Anthropic SDKs, it says 11,655 (79.5%) import none of the frameworks counted. The article links its scripts and dataset snapshot, but the supplied material contains no independent validation. It also has internal count discrepancies: its main table gives LlamaIndex 1,111 and Claude Agent SDK 973, while its reproducible snapshot query reports 1,135 and 930, respectively.

Why it matters

A useful, unusually concrete snapshot of how Python projects are building LLM applications: direct provider-SDK use is far more common than importing an agent framework, while LangChain leads framework imports by a wide margin. This suggests frameworks are optional abstractions rather than the default route for much published Python code. The counts do not establish active users, production deployment, quality, or adoption outside PyPI and Python, and the article’s count inconsistencies counsel against treating close rankings as exact.

Current assessment

New evidence: py-code.org’s 14 November 2026 analysis examines imports in the latest releases of 354,763 PyPI projects, drawing on a 13 November snapshot. It reports 6,779 projects importing LangChain and 2,417 importing LangGraph; alternatives include Pydantic AI (1,203), CrewAI (1,184), and LlamaIndex (1,111) in the main table. The article says 11,655 of 14,659 projects importing OpenAI or Anthropic SDKs—79.5%—import none of its 25 tracked agent frameworks. These are counts of published projects, not measures of users, runtime calls, deployments, or framework quality; projects can import multiple frameworks, and imports in tests or examples count. Coverage favors recently released projects and the 60,000 most-downloaded projects, so older, less-downloaded projects may be missed. The linked scripts and pinned dataset snapshot make the analysis checkable, but the supplied article conflicts with its own snapshot query for LlamaIndex (1,111 versus 1,135) and Claude Agent SDK (973 versus 930); retain that uncertainty when citing those figures. The result supports the interpretation that direct SDK integration is common and that LangChain has the broadest import footprint in this dataset, not that it dominates all agent development. Its significance is a grounded view of Python ecosystem practice that can inform choices about abstraction and interoperability; broader languages and production adoption remain unmeasured.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 314h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-13 13:00⭐ origin echo-reconstructedThe article says it counts imported frameworks across the latest releases of 354,763 PyPI projects, using data as of 13 November 2026. It li
py-code.org on blog (echo) · attributed from hn.story.50536856
—
11-17 19:28first on hacker news · published · +102.5hThe most used AI agent frameworks in PyPI (Python) projects
aidotguru
—
11-17 19:28amplified on hacker news 👑hn.story.50536856
aidotguru
peak 1 · 0 comments · 103% of case engagement
11-17 20:20our radar first saw it · +103.3hdiscovery anchor: hn.story.50536856—
pace: p13 vs 2096 stories at the 168h mark (now 314h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnThe most used AI agent frameworks in PyPI (Python) projects
Retrieved article excerpt

Open article · Retrieved 2026-11-17T20:21:58.279720+00:00

# The AI agent frameworks that PyPI projects actually import

Published 14 November 2026 · Data as of 13 November 2026

[Scripts and results for this post on GitHub](https://github.com/pypi-data/blog/tree/main/ai-agent-frameworks-pypi)

The AI agent frameworks PyPI projects importData as of 13 Nov 2026Projects that importit6,779 ✓LangChain (any langchainmodule)2,417LangGraphThe LangChainalternatives1,203Pydantic AI1,184CrewAIVendor agent SDKs,both new in 2025973Claude Agent SDK840OpenAI Agents SDK79.5% of the 14,659 projects that import the OpenAI or Anthropic SDK import no agentframework at all.Latest release of 354,763 PyPI projects, 13 Nov 2026. The tools' own packages are notcounted. Downloads: pypistats.org. py-code.org

The AI agent frameworks PyPIprojects importData as of 13 Nov 2026Projects that import it6,779 ✓LangChain (anylangchain module)2,417LangGraphThe LangChain alternatives1,203Pydantic AI1,184CrewAIVendor agent SDKs, both new in 2025973Claude Agent SDK840OpenAI Agents SDK79.5% of the 14,659 projects thatimport the OpenAI or Anthropic SDKimport no agent framework at all.Latest release of 354,763 PyPI projects,13 Nov 2026. The tools' own packages arenot counted. Downloads: pypistats.org.py-code.org

Rankings of AI agent frameworks usually compare features and GitHub stars. Of the seven top-ranking pages we read, two are LangChain's own. This post counts something else: how many published Python projects import each framework in their code. It covers 25 frameworks, from LangChain and LangGraph to CrewAI, Pydantic AI, LlamaIndex and the agent SDKs from Anthropic, OpenAI, Google and AWS.

py-code.org reads the code in the latest release of 354,763 PyPI projects and records every import. We counted the projects that import each framework. We left out the framework's own add-on packages, such as the many `langchain-*` integrations, so the count shows projects built on top of it.

## The short answer

| Question | Answer | Key number |
| --- | --- | --- |
| Which agent framework do the most projects import? | LangChain, then LangGraph | 6,779 and 2,417 projects |
| Which LangChain alternatives come next? | Pydantic AI, CrewAI and LlamaIndex, close together | 1,203, 1,184 and 1,111 projects |
| How do the model vendors' agent SDKs do? | The Claude Agent SDK and the OpenAI Agents SDK are next, though both first appeared on PyPI in 2025 | 973 and 840 projects |
| Do most LLM projects use a framework? | No. Most call the OpenAI or Anthropic SDK directly | 11,655 of 14,659 (79.5%) import no framework |

**Verdict:** LangChain is still the agent framework the most PyPI projects import, by a wide margin. But most projects that call an LLM import no framework at all, and among the alternatives, Pydantic AI, CrewAI and LlamaIndex are within 92 projects of each other.

## AI agent frameworks ranked by the projects that import them

The table counts the projects whose code imports each framework. "Of the top 60,000" counts the ones among the 60,000 most downloaded projects on PyPI. The downloads column is the framework package's own downloads in the last month, from pypistats.org, and "First on PyPI" is the month the package name was first uploaded.

| Framework | Projects | Of the top 60,000 | Downloads, last month | First on PyPI |
| --- | --- | --- | --- | --- |
| LangChain | 6,779 | 721 | 157M | 2022-10 |
| LangGraph | 2,417 | 288 | 59M | 2024-01 |
| Pydantic AI | 1,203 | 224 | 6.9M | 2024-05 |
| CrewAI | 1,184 | 127 | 2.6M | 2023-11 |
| LlamaIndex | 1,111 | 156 | 5.8M (llama-index-core) | 2023-02 |
| Claude Agent SDK | 973 | 159 | 36M | 2025-09 |
| OpenAI Agents SDK | 840 | 126 | 19M | 2025-03 |
| Google ADK | 546 | 101 | 11M | 2025-03 |
| Haystack | 379 | 82 | 0.6M | 2023-11 |
| DSPy | 310 | 47 | 5.6M | 2024-04 |
| Deep Agents | 309 | 55 | 8.8M | 2025-07 |
| Strands Agents | 276 | 64 | 38M | 2025-05 |
| AutoGen (Microsoft) | 263 | 32 | 0.4M | 2024-08 |
| AG2 and classic AutoGen | 246 | 28 | 0.2M | 2024-11 |
| Agno | 210 | 38 | 2.2M | 2024-12 |
| smolagents | 170 | 39 | 0.7M | 2024-12 |
| Microsoft Agent Framework | 168 | 34 | 0.2M | 2025-10 |
| Semantic Kernel | 109 | 20 | 0.3M | 2023-03 |
| AgentScope | 56 | 9 | 0.3M | 2024-02 |
| Letta | 36 | 4 | 0.01M | 2024-08 |
| CAMEL | 24 | 3 | 0.06M | 2023-12 |
| Burr | 10 | 1 | 0.02M | 2024-02 |
| Griptape | 7 | 4 | 0.06M | 2023-04 |
| Langroid | 5 | 1 | 0.02M | 2023-07 |
| MetaGPT | 4 | 1 | 0.00M | 2023-07 |

AI agent frameworks imported by PyPIprojectsprojects that import itLangChain6,779LangGraph2,417Pydantic AI1,203CrewAI1,184LlamaIndex1,111Claude Agent SDK973OpenAI Agents SDK840Google ADK546Haystack379DSPy310Deep Agents309Strands Agents276AutoGen (Microsoft)263AG2 and classic AutoGen246

Projects whose code imports each AI agent framework, not counting the framework's own add-on packages, for the 14 frameworks with the most. Data as of 13 November 2026.

**How to read the table:** a project counts once per framework, however many files import it, and a project that imports three frameworks counts for each of them. LangChain counts any `langchain_*` module, including `langchain_core` and `langchain_community`. The OpenAI Agents SDK installs as `openai-agents` but imports as `agents`, a name many projects use for their own code, so our count includes only projects that import one of the SDK's public names, such as `Runner` or `function_tool`.

## LangChain vs LangGraph: most LangGraph projects import LangChain too

6,779 projects import LangChain and 2,417 import LangGraph. The two overlap: 1,814 of the 2,417 projects that import LangGraph also import a LangChain module, and only 603 use LangGraph without it. LangGraph itself requires `langchain-core`, and since version 1.0, the `langchain` package requires `langgraph` ([langchain on PyPI](https://pypi.org/project/langchain/)).

Deep Agents, LangChain's newer "agent harness", is built on the same stack and requires `langchain` ([deepagents on PyPI](https://pypi.org/project/deepagents/)). 309 projects import it, though it first appeared on PyPI in July 2025.

**Key point:** the LangChain alternatives are often used alongside LangChain rather than instead of it. 820 of the 1,111 projects that import LlamaIndex also import LangChain, and so do 846 of the 1,184 that import CrewAI.

## LangChain alternatives: Pydantic AI, CrewAI and LlamaIndex

- **Pydantic AI** (1,203 projects) is the agent framework from the Pydantic team. Its users trace with Pydantic Logfire more than with any other SDK; see [which observability SDKs PyPI projects import](https://py-code.org/blog/llm-observability-sdks-pypi/).
- **CrewAI** (1,184 projects) has the most add-on packages after LangChain: 160 `crewai-*` projects import it and are not in the count.
- **LlamaIndex** (1,111 projects) is often compared with LangChain: "llamaindex vs langchain" and "langchain vs llamaindex" are searched about 1,100 times a month in the US, according to Semrush.

## LlamaIndex vs LangChain

LangChain is imported by about 6 times as many projects as LlamaIndex: 6,779 against 1,111. Many projects use both: 820 import modules from each. Downloads show a bigger gap: `langchain` had 157 million downloads in the last month and `llama-index-core`, the package every LlamaIndex install includes, had 5.8 million.

## The model vendors' agent SDKs: Claude Agent SDK, OpenAI Agents SDK, Google ADK and Strands

Four of the frameworks come from Anthropic, OpenAI, Google and AWS, and all four first appeared on PyPI in 2025. Microsoft Agent Framework, also new in 2025, is covered with AutoGen below.

- **Claude Agent SDK** (973 projects, 36 million downloads in the last month). Anthropic renamed it from the Claude Code SDK, and the migration guide says to change imports from `claude_code_sdk` to `claude_agent_sdk` ([Anthropic docs](https://code.claude.com/docs/en/agent-sdk/migration-guide)). We count both names.
- **OpenAI Agents SDK** (840 projects, 19 million downloads). Installed as `openai-agents`, imported as `agents` ([openai-agents on PyPI](https://pypi.org/project/openai-agents/)).
- **Google ADK** (546 projects, 11 million downloads). Installed as `google-adk`, imported as `google.adk`.
- **Strands Agents** from AWS (276 projects, 38 million downloads). Installed as `strands-agents`, imported as `strands`.

147 projects import both the Claude and the OpenAI agent SDKs, and 178 import the OpenAI Agents SDK together with LangGraph.

## AutoGen, AG2, Semantic Kernel and Microsoft Agent Framework

AutoGen has split into two lines, and Microsoft now points AutoGen users to a third framework. The import counts are split between them:

- **Microsoft's AutoGen** (`autogen_agentchat`, `autogen_core`, `autogen_ext`): 263 projects. Its repository is archived, and its README calls Microsoft Agent Framework "the enterprise‑ready successor to AutoGen" ([microsoft/autogen](https://github.com/microsoft/autogen)).
- **AG2 and classic AutoGen** (`ag2`, and the older `autogen` module): 246 projects. From version 1.0, the `ag2` package "no longer ships the `autogen` import name" and is imported as `ag2` ([ag2ai/ag2](https://github.com/ag2ai/ag2)).
- **Microsoft Agent Framework** (`agent_framework`): 168 projects. Microsoft announced it in October 2025 and said it "unifies the enterprise-ready foundations of Semantic Kernel with the innovative orchestration of AutoGen" ([Microsoft](https://devblogs.microsoft.com/foundry/introducing-microsoft-agent-framework-the-open-source-engine-for-agentic-ai-apps/)).
- **Semantic Kernel** (`semantic_kernel`): 109 projects.

Together, the two AutoGen lines are imported by 449 projects, a lot fewer than CrewAI's 1,184. 164 projects import both CrewAI and Microsoft's AutoGen.

## Haystack, DSPy, Agno, smolagents and the rest

Further down the table, each framework has a few hundred projects or fewer: Haystack (379), DSPy (310), Agno (210), smolagents (170), AgentScope (56), Letta (36) and CAMEL (24). Burr, Griptape, Langroid and MetaGPT each have 10 projects or fewer. MetaGPT has 4, although Semrush estimates that "metagpt" is searched as often as "google adk" in the US, about 8,100 times a month.

**Why:** a framework's search interest and downloads do not tell you how many projects build on it. Downloads include every install pulled in as a dependency, and searches include people reading about a framework without using it. The import count shows how many published projects call it in their code.

## Most LLM code on PyPI uses no framework

14,659 projects import the OpenAI or the Anthropic SDK. 11,655 of them (79.5%) import none of the 25 agent frameworks: they call the model API directly. The OpenAI SDK alone is imported by 12,215 projects, more than LangChain, and the Anthropic SDK by 7,760.

The MCP SDK, which lets a program offer tools to an AI assistant through the Model Context Protocol, is imported by 20,056 projects, more than any framework. 11,921 of them (59.4%) have "MCP" or "Model Context Protocol" in their name or summary, which suggests most are MCP servers and clients rather than agents.

**Tip:** to see how projects like yours use a framework, search py-code.org for its module, for example [langgraph](https://py-code.org/search/?q=langgraph), [pydantic\_ai](https://py-code.org/search/?q=pydantic_ai) or [crewai](https://py-code.org/search/?q=crewai). Each result links to the file and line.

## How to check who uses a framework

- On py-code.org, search for a module to see the most downloaded projects that import it: [langchain\_core](https://py-code.org/search/?q=langchain_core), [llama\_index](https://py-code.org/search/?q=llama_index), [claude\_agent\_sdk](https://py-code.org/search/?q=claude_agent_sdk).
- From a terminal: `uvx py-code-org who-uses crewai` lists the same projects.

You can count the importers yourself on the Hugging Face copy of the index, in your browser or with DuckDB. The query below counts every project that imports each plain module name. Like the table, it leaves out e
aidotguru10
🟧 echo.blog ⭐The article says it counts imported frameworks across the latest releases of 354,763 PyPI projects, using data as of 13 November 2026. It lipy-code.org——

Interpretation history

Decision trace