opensourcestartups

> /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.

// 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.