LangChain

The most widely adopted Python framework for building LLM-powered agents and applications

Framework
PyPI
v1.4.7
148,339 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
93 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 56
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
85 /100 Excellent
Architecture 88
Code Quality 84
Innovation 85
Learning Curve 82

LangChain is a framework for building agents and LLM-powered applications, providing a pre-built agent architecture and a standard interface across model providers, embeddings, and vector stores. Agents are built on top of LangGraph for durable execution, streaming, human-in-the-loop workflows, and persistence, so teams get production-grade agent runtime behavior without needing to learn LangGraph directly for basic use cases.

The project ships as a monorepo of interoperable packages (langchain-core, provider integrations like langchain-openai and langchain-anthropic, langchain-text-splitters, and the top-level langchain package itself) so applications can swap models and vector stores without rewriting business logic. With over 140,000 GitHub stars and 16,000+ commits from nearly 4,000 contributors, it is one of the most actively maintained projects in the AI tooling ecosystem.

What You Get

  • A create_agent factory that builds LangGraph-backed agents with streaming, persistence, and human-in-the-loop support out of the box
  • A provider-agnostic chat model, embeddings, and tool-calling interface shared across dozens of integration packages
  • Composable middleware for agent behavior (state management, structured output, subagent orchestration)
  • A large ecosystem of first-party and community integrations for vector stores, retrievers, and model providers
  • Direct interoperability with LangGraph for teams that outgrow the high-level agent API and need custom orchestration

Common Use Cases

  • Building a customer-support or internal-tools chat agent that calls internal APIs as tools
  • Prototyping retrieval-augmented generation (RAG) pipelines over internal documents
  • Standardizing model access across a codebase so teams can A/B test or swap LLM providers without touching call sites
  • Building multi-step agent workflows that need durable execution and streaming responses in production

Under The Hood

Architecture - The langchain PyPI package lives at libs/langchain_v1 inside a large monorepo (langchain-core, langchain-text-splitters, dozens of libs/partners/* provider packages, and the legacy libs/langchain now published as langchain-classic). The top-level package is intentionally thin: langchain/agents/factory.py (~2,000 lines) implements create_agent, which assembles a chat model, tools, and middleware into a LangGraph StateGraph, delegating execution, streaming, and checkpointing to LangGraph rather than reimplementing an orchestration loop. Tech Stack - Python 3.10+, Pydantic v2 for schemas, LangGraph 1.2 as the execution runtime, and langchain-core for the shared model/tool/message abstractions; provider integrations (OpenAI, Anthropic, Google, etc.) are separate optional-dependency packages installed a la carte. Code Quality - the tests/unit_tests and tests/integration_tests trees are substantial (dozens of modules, plus a cassettes directory for recorded HTTP interactions and a benchmarks suite), ruff and mypy are enforced in CI via pyproject.toml dependency groups, and the codebase uses type hints and Pydantic models pervasively for public APIs. API Design - create_agent(model, tools=..., middleware=...) and init_chat_model("provider:model") are deliberately low-boilerplate entrypoints; the README advertises “under 10 lines of code” to a working agent, and the middleware system lets advanced users compose custom behavior without subclassing internals.

Used by 21 apps in this directory

Python
58%
Apache 2.0

MLflow

AI Development · Monitoring

28,512

The open source AI engineering platform for debugging, evaluating, monitoring, and optimizing production LLMs and agents at scale.

View details
96
Repo Health
86
Technical
67
Dependency
Built with
Python 58%
TypeScript 35%
Updated today
TypeScript
56%
MIT

open-notebook

AI Assistants · Note Taking

40,513

A privacy-first, self-hosted AI research notebook with 18+ model providers, multi-speaker podcast generation, and full REST API—your open-source alternative to Google Notebook LM.

View details
89
Repo Health
84
Technical
71
Dependency
Built with
TypeScript 56%
Python 42%
Updated 4 days ago
Python
38%
Other

Open WebUI

AI Agents · AI Assistants

156,607

The extensible, privacy-first AI platform that runs Ollama, OpenAI, and any LLM backend behind a polished, feature-packed web interface.

View details
92
Repo Health
75
Technical
66
Dependency
Built with
Python 38%
Svelte 35%
JavaScript 19%
Updated today
Rust
89%
Apache 2.0

OpenFang

AI Agents

18,221

An open-source "Agent Operating System" built in Rust — a single binary providing a kernel, memory, skills, extensions, and multi-channel runtime for running AI agents, with 1,700+ tests and zero clippy warnings.

View details
51
Repo Health
73
Technical
67
Dependency
Built with
Rust 89%
Updated 3 months ago
Python
73%
AGPL 3.0

OpenViking

AI Development · AI Memory · Databases

40,705

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
85
Repo Health
75
Technical
64
Dependency
Built with
Python 73%
TypeScript 12%
Rust 11%
Updated today
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,976

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
92
Repo Health
88
Technical
67
Dependency
Built with
Python 49%
TypeScript 43%
Updated today
Rust
63%
MIT

PostgresML

AI Development · Databases

6,823

Run ML training and LLM inference natively inside PostgreSQL with GPU acceleration — no data movement required.

View details
51
Repo Health
76
Technical
64
Dependency
Built with
Rust 63%
JavaScript 11%
Updated 1 years ago
Python
55%
Other

PostHog

Ab Testing Experimentation · Analytics · Developer Tools

40,397

The all-in-one open source product platform combining analytics, session replay, feature flags, error tracking, AI observability, and a built-in data warehouse in a single self-hostable stack.

View details
92
Repo Health
80
Technical
65
Dependency
Built with
Python 55%
TypeScript 36%
Updated today
JavaScript
50%
AGPL 3.0

QRev

AI Agents · CRM

364

Open source AI-first sales platform that replaces Salesforce with autonomous agents handling prospecting, outreach, and lead management at scale.

View details
39
Repo Health
68
Technical
64
Dependency
Built with
JavaScript 50%
Python 28%
TypeScript 14%
Updated 8 months ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers