LangChain · Open-source framework

LangChain

Open-source framework for building LLM apps and agents that work with many model providers.

Provider
LangChain
Latest confirmed model
Not applicable / not verified
Pricing
Open source
Free plan
Yes
Free trial
No
API
Limited · free quota
Status
Generally available
Last verified
Oct 19, 2026

What is LangChain?

LangChain is an MIT-licensed library for Python and JavaScript/TypeScript that gives developers standard building blocks for chat models, tools, retrieval and agents, so they can swap model providers without rewriting code. The same company maintains LangGraph for controllable agent workflows and sells LangSmith, a separate paid platform for tracing, evaluation and deployment.

Wiring models, tools, data sources and agent logic together without writing custom glue for every provider.

Why use LangChain?

Practical benefits

  • Free MIT-licensed framework
  • Large set of provider integrations
  • Python and JS/TS versions
  • Optional LangSmith observability

Who it suits

  • Developers building agents and RAG apps
  • Teams that want provider flexibility

When another tool may fit better

  • Very simple single-call apps where a provider SDK suffices
  • Non-programmers
Learning curve
Some experience helps
Skills needed
Python or JavaScript programming.

Example workflows

  1. uv add langchain, initialise a chat model by provider string, add tools and run an agent

What can it do?

  • Model abstractioninit_chat_model lets you choose providers by string.
  • Agents and toolsQuick-start agents with any model provider.
  • LangGraphSeparate framework for controllable agent workflows.
  • LangChain.jsEquivalent JavaScript/TypeScript library.
  • LangSmith (feature note) Depends on planSeparate paid platform for tracing, evals and deployment; Developer plan free with 5k base traces/month, Plus $39/seat/month.

Good for

  • RAG chatbots
  • Tool-using agents
  • Multi-provider apps
  • Prototyping LLM workflows

Where it runs

Pricing and plans

Open source The LangChain framework is free under the MIT licence. LangSmith, sold separately, has a free Developer plan (1 seat, 5k base traces/month), Plus at $39/seat/month with 10k traces, and custom Enterprise.

PlanPriceBillingFree trial / tierUsage limitsMain inclusionsModel accessAPI accessRestrictions
LangChain open sourceFreeper month Free tier—
  • Python and JS/TS libraries
  • LangGraph
Any supported provider (billed by provider)N/A (library)—
LangSmith DeveloperFreeper month Free tier1 seat, 5k base traces/month
  • Tracing
  • Community support
—YesNo deployments
LangSmith Plus$39/mo
Per seat per month, then pay as you go
per month —10k base traces/month; base traces 14-day retention, extended 180-day
  • Unlimited seats
  • 1 free small deployment
  • Deployment billed in LSUs
—Yes—
LangSmith EnterpriseContact providerper month —Custom
  • Self-hosted or hybrid
  • Custom SSO/RBAC
  • SLA
—Yes—

Prices in USD · Global list price · Taxes may apply · Verified Oct 19, 2026

Official pricing page (opens in a new tab)

API and developer access

Official API
Limited
Authentication
Provider API keys for models; LangSmith API key for tracing
Pricing model
Framework free; LangSmith per seat plus traces
Free API quota
LangSmith Developer: 5k base traces per month
Rate limits
Not documented
Context / input limits
Not documented
SDKs
Python (langchain), JavaScript/TypeScript (LangChain.js)
Streaming
Not documented
Batch processing
Not documented
Structured output
Not documented
Tool / function calling
Yes
Commercial use
MIT licence
Data retention & privacy
LangSmith base traces 14 days; extended traces 180 days

A free LangChain account is not the same thing as free API access. The API allowance above is the provider's documented developer quota.

Verified Oct 19, 2026

Advantages and disadvantages

Advantages

  • Free and open source
  • Very broad ecosystem
  • Works across many providers

Disadvantages

  • Abstractions add complexity for simple apps
  • You still pay model providers separately
  • Observability and deployment require LangSmith, a paid product beyond the free tier

Privacy: The framework runs in your code; data goes to whichever model provider and services you configure.

Real-world examples

A developer building a support agent

  1. Install langchain
  2. Initialise a chat model from your provider
  3. Add a search tool and run the agent

needs API key

A team switching model providers

  1. Write the app against LangChain's chat model interface
  2. Change the provider string
  3. Compare outputs without rewriting logic

needs API key

A team debugging agent runs

  1. Enable LangSmith tracing on the free Developer plan
  2. Inspect up to 5k base traces per month
  3. Upgrade to Plus for more seats

free plan works

LangChain alternatives

LlamaIndex

Open-source framework for connecting LLMs to your data, plus the commercial LlamaParse document platform.

has a free plan · offers an API · open source / open-weight

LangChain vs LlamaIndex

CrewAI

Open-source Python framework for teams of role-based AI agents, with a hosted platform for building and running them.

has a free plan · offers an API · open source / open-weight

LangChain vs CrewAI

Langfuse

Open-source tracing, prompt management and evaluation for LLM applications, self-hosted or in the cloud.

has a free plan · offers an API · open source / open-weight

LangChain vs Langfuse

Compare LangChain with these side by side

Frequently asked questions

Is LangChain free?

Yes. The LangChain framework is open source under the MIT licence. You still pay for the model APIs you call.

What is LangSmith?

A separate product from the same company for tracing, evaluating and deploying agents. It has a free Developer plan and paid Plus and Enterprise plans.

How much is LangSmith Plus?

$39 per seat per month with 10k base traces included, then pay as you go.

What is the difference between LangChain and LangGraph?

LangChain provides quick-start building blocks; LangGraph is a separate framework for controllable, customised agent workflows.

Does LangChain support JavaScript?

Yes, LangChain.js is the equivalent JavaScript/TypeScript library.

Can I use LangChain commercially?

Yes, the MIT licence permits commercial use.