LangChain

by LangChain, Inc.

Open-source Python/JavaScript framework for building LLM applications: chains, retrieval and agents, with 1,000+ provider and vector-store integrations.

framework-libraryopen-sourcepythonjavascriptfree-tier
Visit WebsiteGitHubwww.langchain.com

At a Glance

Type

Frameworks and libraries

Pricing

FreeThe langchain library is free and open source (MIT licence) via pip or npm. LangSmith, a separate observability product, is priced separately and not covered here.

Best For

Building a retrieval-augmented generation pipeline or a tool-calling agent over a chosen LLM provider and vector store, in Python or JavaScript.

Platforms

Python, JavaScript/TypeScript, CLI

Models

OpenAI GPT models, Anthropic Claude, Google Gemini, models served via AWS Bedrock, models served via Azure OpenAI, models served via Ollama

Founded

2023

Headquarters

San Francisco, United States

Free Tier

Available

Licence

Open Source

Key Features

Pros & Cons

Strengths

  • Free, MIT-licensed and installable in one command with no account required
  • Very large integration ecosystem covering most major model providers and vector stores
  • PyPI download tracker pepy.tech records over 3.25 billion total downloads and 151.8 million in the last 30 days

Limitations

  • Tracing, evaluation and production monitoring live in the separate paid LangSmith product, not the open-source library
  • Documentation and APIs have shifted significantly toward agents, so older chain-based tutorials may be out of date
  • Requires Python 3.10 or later

Integrations

OpenAIAnthropicGoogle GeminiAWS BedrockAzure OpenAIGroqOllamaPineconeChromaQdrantWeaviateMilvusElasticsearchMongoDB AtlasNeo4jRedisTavilyLangGraphLangSmith

What it is

LangChain is an open-source framework for building applications on top of large language models. The Python package (pip install langchain, MIT-licensed) lets a developer compose "chains" of prompts, models, retrievers and tools, and its create_agent API builds agents as, in the maintainers' words, "Model + Harness". A JavaScript/TypeScript version, LangChain.js, mirrors the same concepts.

Interface and dependencies

Most work happens through per-provider packages such as langchain-openai or langchain-anthropic, which give a consistent interface over model providers including OpenAI, Anthropic, Google, AWS Bedrock, Azure OpenAI, Groq and Ollama. The documentation lists 1,000+ integrations spanning chat and embedding models, vector stores (Pinecone, Chroma, Qdrant, Weaviate, Milvus, Elasticsearch), document loaders, and tools such as Tavily search or Neo4j. The Python package requires Python 3.10 or later. Agent orchestration underneath is handled by LangGraph, a separate lower-level library from the same organisation.

What you build with it

A developer typically uses it to wire a chat model to a retriever over a vector store for retrieval-augmented generation, or to give a model tool-calling access to external APIs and let it run as an agent. Tracing and evaluation of what the chains and agents do is handled by a separate paid product, LangSmith, not by the open-source library itself.

Limits

LangChain's own current documentation frames the library primarily around building agents ("Agent = Model + Harness") rather than the general chain-composition tool it started as, so some older chain-based patterns are being superseded. Production observability, monitoring and evaluation require the separate commercial LangSmith platform.

Frequently Asked Questions

Is LangChain free to use?
Yes. The langchain package is MIT-licensed and free via pip or npm. LangSmith, the company's observability platform, is a separate paid product.
Does LangChain require a specific model provider?
No. It works with OpenAI, Anthropic, Google, AWS Bedrock, Azure OpenAI, Groq, Ollama and others through dedicated provider packages, per LangChain's documentation.

Last updated on