LangChain
Open-source MIT framework for LLM agents (create_agent, LangGraph) plus LangSmith: free Developer tier, Plus $39/seat, Enterprise custom.
Pricing
Contact Sales
freemium
Category
AI Agents
2 features tracked
Quick Links
Feature Overview
| Feature | Status |
|---|---|
| free tier | |
| ai features |
Overview
LangChain is an open-source framework (MIT) for building LLM-powered agents and applications, maintained by LangChain Inc. It provides a standard interface for chat models, tools, messages, and a production-oriented agent harness centered on create_agent. Companion libraries and products cover the rest of the stack: LangGraph for low-level stateful orchestration, Deep Agents as a batteries-included agent layer, and LangSmith as the commercial platform for tracing, evaluation, deployment, and agent ops.
Python and JavaScript/TypeScript are first-class. The OSS monorepo sits at roughly 142k GitHub stars for LangChain and ~37k for LangGraph (mid-2026). LangChain 1.0 and LangGraph 1.0 shipped in late 2025 with a stability commitment (no breaking changes until 2.0). Legacy chains and older modules live in langchain-classic so the core package stays agent-focused.
Money splits cleanly: frameworks are free; you pay model providers for tokens, your infra for vector DBs and compute, and optionally LangSmith for observability and managed agent hosting. That commercial layer is seat-based plus usage (traces, compute units, storage units).
Quick take: Use LangChain/LangGraph when you want the largest integration surface and a path from prototype agent → traced production agent. Skip the heavy abstractions for a thin wrapper around one provider API if you only need a few tool calls and can own the control flow yourself.
Key features
create_agentharness — LangChain v1 standard: model + tools + system prompt + optional middleware. Built on LangGraph under the hood (persistence, streaming, human-in-the-loop, time-travel) without forcing you to learn the graph API first.- Middleware — Composable hooks (
before_agent,before_model,wrap_model_call,wrap_tool_call,after_model,after_agent). Built-ins include PII redaction, conversation summarization, and human-in-the-loop approval for sensitive tools. - Standard content blocks — Unified access to text, reasoning traces, tool calls, and provider-specific features across Anthropic, OpenAI, Google, AWS, Ollama, and more as integrations roll out.
- Provider-agnostic models — One chat/embeddings interface across OpenAI, Anthropic, Google, Azure, Bedrock, Fireworks, OpenRouter, Ollama, Hugging Face, etc. Swap models with small code changes.
- LangGraph — Graph-based control flow for multi-step, long-running, cyclic agents; checkpointing; interrupts; durable execution. MIT-licensed and usable without the higher-level LangChain agent APIs.
- Deep Agents — Higher-level “batteries-included” agents (context compression, virtual filesystem, subagents) when you want more defaults than bare
create_agent. - Tooling & integrations — Large community + first-party packages for vector stores, document loaders, retrievers, and APIs (many via
langchain-community/ integration packages). - LangSmith Observability & Evaluation — Traces for every run, monitoring, online/offline evals, datasets, annotation queues, Prompt Hub and Playground, Insights (beta).
- LangSmith Deployment — Managed serverless or dedicated agent hosting, Assistants API, cron, streaming of intermediate steps, MCP server exposure, scale-to-zero on serverless.
- LangSmith Fleet / Engine / Sandboxes — Natural-language agent templates (Fleet), autonomous failure detection and fix suggestions (Engine), and isolated code-execution sandboxes for agent-generated code.
- Hosting options — LangSmith Cloud (US/EU), Hybrid, or fully self-hosted on Enterprise; startups can apply for discounted credits.
- JS/TS parity —
langchainjsand LangGraph for Node, browsers, Deno, and Bun when the backend is not Python.
Pricing
Figures below reflect LangChain’s published LangSmith pricing at langchain.com/pricing as of July 2026. LangChain and LangGraph OSS libraries cost $0 (MIT). LLM tokens, embeddings, vector DBs, and app hosting are billed by their providers separately. Always re-check the live page and usage calculator before budgeting—meter names and overages change.
Open-source frameworks
| Product | License / cost | Notes |
|---|---|---|
| LangChain (Python / JS) | MIT, free | pip install langchain / npm packages; no seat fee |
| LangGraph | MIT, free | Low-level orchestration; works standalone |
| langchain-classic / community integrations | Free (package-dependent) | Legacy chains, many loaders/retrievers moved out of core |
LangSmith plans (commercial)
| Plan | Seat price | Included traces | Highlights |
|---|---|---|---|
| Developer | $0 / seat / month | 5,000 base traces / mo, then pay-as-you-go | 1 seat; community support; Cloud only; good for solo experiments |
| Plus | $39 / seat / month | 10,000 base traces / mo, then pay-as-you-go | Unlimited seats; email support; Deployment / Engine / more; 1 free small serverless deployment |
| Enterprise | Custom | Custom | Self-hosted or hybrid; custom SSO/RBAC; support SLA; annual invoice; startup discounts available |
Usage meters (pay-as-you-go)
- LCU (LangChain Compute Unit) — $1.50 per LCU. Used for work/compute: Engine, Fleet, deployment runtime, sandboxes, etc.
- LSU (LangChain Storage Unit) — $1.00 per LSU. Used for stored/managed data: traces, deployment DB resources, sandbox storage.
- Base vs extended traces — Base traces keep short retention (official FAQ: 14 days). Extended retention is longer (FAQ cites 180 days; some third-party writeups still list 400-day historical figures—confirm on the current plan FAQ). You can upgrade base → extended when feedback makes a trace worth keeping.
- Trace overage (widely reported mid-2026) — Independent 2026 pricing guides commonly quote about $2.50 per 1,000 base traces and $5.00 per 1,000 extended traces after free allotments. Treat as planning numbers and verify with LangSmith’s calculator and invoice, because the platform also meters via LCU/LSU for other services.
- Deployment runtime examples (Plus) — Serverless/dedicated billed by resources, e.g. runtime compute ~0.045 LCU/vCPU-hr, runtime memory ~0.006 LCU/GiB-hr, DB compute ~0.177 LSU/vCPU-hr (see official pricing matrix).
- Fleet / Sandboxes — Free monthly LCU/LSU slices on Developer/Plus; extra usage metered. Sandboxes billed per-second compute/memory/storage rates listed on the pricing page.
- Billing cadence — Developer/Plus: seats monthly (pro-rated adds; no credit for removed seats); usage in arrears. Enterprise: annual invoice.
- Data training — LangChain states LangSmith does not train models on your traces/prompts/outputs; data stays private to your org under the Terms.
Trace volume is the real bill risk. Multi-step agents emit many events per user request. A 10-person Plus team is $390/mo in seats before overage; at hundreds of thousands of traces, observability can dominate OSS “free framework” cost. Sample aggressively in non-prod, use free allotments for local debug, and compare self-hostable open tracers (e.g. Langfuse) if you need full production fidelity at high volume.
Limits & gotchas
- Abstraction cost — Long-standing community complaint (Reddit, HN): deep wrappers can hide control flow. Fine for standard agents; painful when you need a one-off path that fights the framework.
- API churn history — Pre-1.0 packages moved quickly. 1.0 aims to stabilize; legacy code still needs
langchain-classicmigrations. Pin versions in production. - Dependency weight — Full install trees (community integrations, vector clients) get large. Prefer slim extras (
langchain[openai], provider packages) over kitchen-sink installs. - Developer plan caps — 1 seat and 5k base traces/month. Collaboration and production deploy features push you to Plus.
- Seat math — Every invited user is a billable seat on Plus. Headcount scales cost independent of traffic.
- Short base retention — 14-day base traces are for debug, not long forensics. Budget extended retention (or export) for audits and eval datasets.
- Self-host is Enterprise — Cloud self-serve is LangChain-hosted. Hybrid/self-hosted LangSmith needs Enterprise sales—unlike OSS Langfuse self-host.
- Rate limits — Trace ingestion and event size limits apply on non-Enterprise; see LangSmith admin docs for hourly caps.
- Not a model — Quality of answers still depends on the underlying LLM, prompts, tools, and data. LangChain does not replace evaluation discipline.
- RAG is not magic — Document loaders and retriever helpers speed wiring, but chunking, indexing, and eval remain your design problems (some teams prefer LlamaIndex for data-heavy RAG).
- Debugging multi-agent graphs — Without LangSmith (or another tracer), multi-node LangGraph runs are hard to reason about in production incidents.
Community sentiment
Sentiment is polarized and has been for years. On one side: LangChain is the default teaching and prototyping stack, with huge docs, courses (LangChain Academy), employer familiarity, and the densest integration catalog. Production users at scale often pair OSS agents with LangSmith for traces/evals, or move orchestration to LangGraph for more explicit control.
On the other side, Reddit threads (“why is everyone ditching LangChain,” “still a rabbit hole”) and a well-known Hacker News discussion (“Why we no longer use LangChain”) hammer the same points: over-abstraction, inconsistent naming over time, and cases where raw provider SDKs + a few loops would have been clearer. Critics call it “death by abstraction”; defenders say most hate posts describe 2023-era LCEL/chain patterns, not the v1 create_agent + middleware model.
Observability pricing draws a second debate: teams like LangSmith’s UX when they already live in the LangChain ecosystem, then flinch when production agent traces multiply seats × overage. Open-source alternatives (Langfuse, Helicone, Logfire, etc.) win on self-host and high-volume unit economics; LangSmith wins on depth of LangGraph integration and one-vendor deploy+trace story.
Bottom line from practitioners: prototype fast with LangChain; keep business logic and state machines understandable; measure tokens and traces before you scale; do not adopt every abstraction just because a tutorial used it.
Who should use it
- Teams standardizing on agents across multiple model providers who want one harness, middleware, and tracing story.
- Builders who need LangGraph-style durable agents (human approval, long-running workflows, checkpointed state).
- Orgs already invested in LangSmith for evals/prompt management who want the same vendor for deploy.
- Educators and tutorials — Still the most documented path for teaching tool use and RAG wiring.
- Not ideal as a first dependency for a 50-line script that calls one model once; start with the provider SDK.
- Cost-sensitive high-QPS tracing — Model the LangSmith bill early or plan an OSS tracer.
Alternatives
- LlamaIndex — Stronger default when the product is data/RAG-centric rather than general agent orchestration.
- LangGraph — Use directly when you want explicit graphs without the higher-level LangChain agent sugar (still same org).
- CrewAI — Role-based multi-agent crews with a simpler opinionated API for collaborative agents.
- AutoGen — Microsoft-origin multi-agent conversations; different orchestration style.
- LangFuse — OSS-friendly LLM observability with free self-host; common LangSmith alternative for traces/evals.
- OpenAI / Anthropic SDKs — Direct APIs when you want zero framework; add your own tool loop.
- PydanticAI, Semantic Kernel, DSPy, Haystack — Worth evaluating for typed Python agents, enterprise Microsoft stacks, prompt optimization, or pipeline NLP respectively (not all have VersusTools profiles yet).
Verdict
LangChain in 2026 is best understood as an agent engineering platform: free MIT libraries (LangChain + LangGraph) plus a paid control plane (LangSmith) for tracing, evals, and managed deployment. The v1 agent API and middleware story are a genuine cleanup versus the earlier chain-zoo era, but the cultural scars—complexity, package churn, production cost of full-fidelity traces—remain part of the decision.
Choose it when ecosystem integrations, hiring familiarity, and end-to-end agent ops matter more than minimal surface area. Budget LangSmith seats ($0 Developer / $39 Plus) and trace volume explicitly, keep core business logic readable outside thick wrappers, and compare LlamaIndex, CrewAI, or raw SDKs + Langfuse when your bottleneck is RAG, multi-agent roles, or observability unit economics rather than “another model provider integration.”
Alternatives
Best Alternatives to LangChain
Head-to-Head
Compare LangChain Side-by-Side
More in AI Agents