Agent Framework

LangChain

A framework for building LLM applications

Visit site

LangChain is a framework for building LLM-powered applications, with over 148K GitHub stars. It provides chains, agents, retrieval, and memory abstractions for Python and JavaScript.

Free (open-source) / LangSmith from $39 mo
Pricing
Agent Framework
Category

Last reviewed: · Reviewed from official documentation and product information.

Sources: Official site · Pricing · Docs · Changelog

Updated : We removed claims about this tool that we could not source.

Beginner verdict, For developers

Requires some technical comfort with API keys, command line, or coding. If you're new to AI, start with a chat-based tool first.

Best for

RAG applicationsLLM agent developmentMulti-step chainsPrototype to production

Pros & cons

Pros

✓Supports all major LLM providers
✓LangSmith for observability
✓Excellent documentation

What this won't do

✗Abstraction overhead can be frustrating
✗Breaking changes between versions
✗Overkill for simple use cases

Use cases

Building RAG chatbots

Multi-step document processing

Agent tool-use pipelines

Conversational search systems

1

Install LangChain

You need Python 3.10 or newer. Install with pip install -U langchain, then set your model key, for example OPENAI_API_KEY.

2

Build a small agent

Import create_agent from langchain.agents and give it a model, a tool and a system prompt. The quickstart's tool is get_weather, which returns a weather line for a city.

3

Ask it a question

Call agent.invoke with the message "What's the weather in San Francisco?" The agent uses your tool, and you print the last message to read its answer.

4

Load keys from a file

Setting keys by hand in every terminal is easy to forget. Put them in a .env file and load it with load_dotenv() from python-dotenv.

Compare alternatives

ToolCategoryPricing
LangChain (current)Agent FrameworkFree (open-source) / LangSmith from $39 mo
LangGraphAgent FrameworkFree (open-source)
CrewAIAgent FrameworkFree (open-source) / Enterprise pricing
AgnoAgent FrameworkFree (open-source) / Pro $150 mo for a live AgentOS control plane
PineconeVector DBFree tier / from $20 mo
WeaviateVector DBFree (open-source) / free cloud plan / paid cloud from $45 mo
QdrantVector DBFree (open-source) / free cloud tier / paid cloud usage-based
Hugging FaceDataFree / Pro from $9 mo

Comparisons