Skip to main content

LangChain

Open-source LLM application framework — chains, agents, RAG, and 700+ integrations with 127K GitHub stars

LLM FrameworksFree

LangChain is the most widely used open-source framework for building LLM-powered applications. It provides composable abstractions for chains (sequencing LLM calls), agents (tool-using AI that can browse, run code, and call APIs), and RAG (retrieval-augmented generation with 700+ data and tool integrations). Available in Python and JavaScript, with LangSmith for observability and LangGraph for complex multi-agent workflows.

Key specs
149,395 GitHub stars source
as of 2026-11-12

What we know

Integrationsopenai-api, anthropic-api, weaviatefrom our original listing, not yet re-checked
LicenseMITsource, checked 2026-12-02
Open sourceYessource, checked 2026-12-02
PricingFreefrom our original listing, not yet re-checked
GitHub stars150,265source, checked 2026-12-02

Why it matters

  • 127K GitHub stars and 700+ integrations make LangChain the most-documented LLM framework — finding tutorials, examples, and community help is easier than any alternative.
  • Provider-agnostic LLM interface means you can switch from OpenAI to Anthropic to local Ollama models by changing one line.
  • LangGraph fills the critical gap for production agent systems — directed graph execution with cycles and state is essential for reliable multi-step agent workflows.
  • LangSmith observability closes the "why did my agent fail?" problem — trace every LLM call, tool invocation, and chain step for debugging and evaluation.

Key capabilities

  • Unified LLM interface: 50+ providers (OpenAI, Anthropic, Google, Groq, Ollama) with identical API.
  • Chains: Compose sequences of LLM calls, prompts, and tools into pipelines.
  • Agents: Tool-using AI with web search, code execution, API calls, and custom tools.
  • RAG: Retrieval pipelines with 700+ data connectors and 20+ vector store integrations.
  • Memory: Short-term and long-term conversation memory management.
  • LangGraph: Multi-agent workflows with stateful graph execution.
  • LangSmith: Observability, tracing, evaluation, and prompt management (paid).
  • JavaScript: Full LangChain.js library for TypeScript/Node.js.
  • Streaming: Streaming support across all LLM providers.

Technical notes

  • Languages: Python (primary); JavaScript/TypeScript (LangChain.js)
  • Install: pip install langchain langchain-openai langchain-community
  • License: MIT
  • GitHub: github.com/langchain-ai/langchain
  • Stars: 127K+
  • LangSmith: Observability platform; free tier + paid
  • LangGraph: pip install langgraph
  • Integrations: 700+ (LLMs, vector stores, tools, data loaders)

Usage example

from langchain_openai import ChatOpenAI
from langchain.agents import create_tool_calling_agent, AgentExecutor
from langchain_community.tools import DuckDuckGoSearchRun
from langchain_core.prompts import ChatPromptTemplate

llm = ChatOpenAI(model="gpt-4o")
tools = [DuckDuckGoSearchRun()]

prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a helpful assistant"),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}")
])

agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)

result = executor.invoke({"input": "What's the latest news about AI?"})
print(result["output"])

Ideal for

  • Python teams building LLM agents and RAG applications who want the largest ecosystem of integrations.
  • Teams that need to quickly prototype complex LLM workflows with many data sources and tools.
  • Organizations wanting to standardize LLM application development across teams with a well-documented, widely-adopted framework.

Not ideal for

  • Very simple single-LLM-call applications — direct provider SDK is simpler without LangChain overhead.
  • TypeScript-first teams doing RAG — Vercel AI SDK + LlamaIndex.TS is a more TypeScript-native stack.
  • Teams concerned about abstraction overhead — LangChain's chain abstractions can obscure what's happening; direct API calls offer more transparency.

See also

FAQ

What is LangChain?

LangChain is an open-source framework for composing LLM-powered applications. Core abstractions: Chat Models (unified interface to 50+ LLM providers), Chains (compose multiple LLM calls and tools), Agents (LLMs with tool use — web search, code execution, API calls), Retrievers (vector store search for RAG), and Memory (conversation history management). It reduces the boilerplate of connecting LLMs to data and tools.

Is LangChain free?

LangChain is MIT-licensed and free. LangChain Inc. also offers: LangSmith (observability and evaluation platform, paid after free tier), LangGraph Cloud (managed agent deployment), and enterprise support. The core library (langchain, langchain-core, langchain-community) has no fees — you pay only for the LLM APIs you call.

What is LangGraph?

LangGraph is LangChain's framework for building stateful, multi-agent workflows. While LangChain is good for linear chains, LangGraph models agent workflows as directed graphs — nodes (agents or tools) connected by edges (transitions based on state). It supports cycles (agents that loop until a condition is met), parallel execution (multiple agents working simultaneously), and human-in-the-loop workflows. Used for production-grade agent systems.

How does LangChain compare to LlamaIndex?

LangChain is a general-purpose LLM application framework — it handles agents, chains, and RAG with emphasis on flexibility and integration breadth. LlamaIndex focuses specifically on data — it has superior data connectors (160+ sources), more advanced retrieval techniques, and is optimized for RAG-heavy applications. Many teams use both: LlamaIndex for retrieval, LangChain for orchestration. For agent-first applications with tool use, LangChain's ecosystem is stronger.

Alternatives

Is your tool an alternative to LangChain? Sponsor this spot for 30 days, marked Sponsored.

Integrations

Built on

None listed.

Good for these tasks

For the team behind LangChain

Growth plan: from $399 a month

SEO, AI search (how ChatGPT, Perplexity and Google describe LangChain), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.

Founding offer: $299 a month for your first 3 months, plus a free case study.

Get a free audit

Listed 2026-02-22 · updated 2026-09-11