> /v1/alternatives/langchain
Open source alternatives to LangChain[010]
LangChain is a framework for building LLM apps, with model abstractions, prompt chaining, tool calling, retrieval and agent runtimes. Below are 10 self-hostable open source alternatives, ranked by GitHub popularity.
Mem0
The Memory layer for your AI apps
★ STARS
55.1k
⑂ FORKS
6.2k
LiteLLM
Call every LLM API like it's OpenAI [100+ LLMs]
★ STARS
46.2k
⑂ FORKS
7.9k
Agno
Build, run, and manage agent platforms.
★ STARS
40.0k
⑂ FORKS
5.4k
CopilotKit
The Frontend Stack for Agents & Generative UI. React + Angular. Makers of the AG-UI Protocol
★ STARS
31.1k
⑂ FORKS
4.0k
Langfuse
Open source LLM engineering platform
★ STARS
26.8k
⑂ FORKS
2.7k
Letta
Letta is the platform for building stateful agents: AI with advanced memory that can learn and self-improve over time.
★ STARS
22.5k
⑂ FORKS
2.4k
Supermemory
Memory engine and app that is extremely fast, scalable. The Memory API for the AI era.
★ STARS
22.5k
⑂ FORKS
2.1k
arize-phoenix
AI Observability & Evaluation
★ STARS
9.6k
⑂ FORKS
853
Helicone
LLM Observability for Developers
★ STARS
5.6k
⑂ FORKS
565
Laminar
Open-source observability platform purpose-built for AI agents. YC S24.
★ STARS
2.9k
⑂ FORKS
194
// EDITOR'S TAKE
Agno is the closest thing here to LangChain's agent framework and a considerably leaner one, giving you typed agents, tools and memory without the layers of abstraction that drive people away from LangChain. If the provider abstraction was all you ever wanted, LiteLLM does that single job better on its own, and Langfuse covers the tracing and evaluation side that LangSmith handles on the commercial stack.
// FREQUENTLY ASKED
What is the best open source LangChain alternative?
Mem0 is the most popular open source LangChain alternative by GitHub stars (55,104 stars). The other 9 options are ranked above.
Are these LangChain alternatives self-hostable?
Yes — every project listed here is open source and runs on your own infrastructure. Click into a project to see its license, stars, language, and current health status.
Are they free?
All projects shown are free and open source. Check each project's license page for the terms — most are MIT, Apache 2.0, or AGPL.