
LangChain
A framework for building LLM applications
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.
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.
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
Pros & cons
Pros
What this won't do
Use cases
Building RAG chatbots
Multi-step document processing
Agent tool-use pipelines
Conversational search systems
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.
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.
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.
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
| Tool | Category | Pricing |
|---|---|---|
| LangChain (current) | Agent Framework | Free (open-source) / LangSmith from $39 mo |
| LangGraph | Agent Framework | Free (open-source) |
| CrewAI | Agent Framework | Free (open-source) / Enterprise pricing |
| Agno | Agent Framework | Free (open-source) / Pro $150 mo for a live AgentOS control plane |
| Pinecone | Vector DB | Free tier / from $20 mo |
| Weaviate | Vector DB | Free (open-source) / free cloud plan / paid cloud from $45 mo |
| Qdrant | Vector DB | Free (open-source) / free cloud tier / paid cloud usage-based |
| Hugging Face | Data | Free / Pro from $9 mo |