21 Open Source Alternatives to LangChain

There are 21 open-source alternatives to LangChain in this directory. The most popular is AutoGPT with 173.4k GitHub stars, followed by Dify(137.3k stars). All are open source, free to use, and many can be self-hosted.

Quick comparison

Open-source alternatives to LangChain, ranked by GitHub stars
#ToolStarsLanguageLicense
1AutoGPT

AutoGPT is the vision of accessible AI for everyone, providing tools to focus on what matters in building and utilizing AI.

173.4kPythonOther
2Dify

A production-ready platform facilitating the development of agentic workflows with robust features and integration capabilities.

137.3kTypeScriptOther
3RAGFlow

RAGFlow is a leading open-source Retrieval-Augmented Generation (RAG) engine that combines advanced RAG methods with Agent capabilities, delivering a superior, context-rich experience for Large Language Models (LLMs). It enables efficient information retrieval and contextual augmentation, optimizing generative AI pipelines.

77.8kPythonApache License 2.0
4Deer-flow

DeerFlow is a community-driven Deep Research framework, combining language models with tools like web search, crawling, and Python execution, while contributing back to the open-source community. It enables enhanced research capabilities through integration with various technologies.

60.5kPythonMIT License
5Anything-llm

The all-in-one Desktop & Docker AI application with built-in Retrieval-Augmented Generation (RAG), AI agents, No-code agent builder, and more.

41.0kJavaScriptMIT License
6Quivr

An opinionated RAG framework for integrating Generative AI into your applications, enabling easy customization and focus on product development with support for various LLMs and vector stores.

37.5kPythonOther
7AgentGPT

AgentGPT enables users to assemble, configure, and deploy autonomous AI agents directly within their browser, simplifying the development and deployment of AI solutions.

33.3kTypeScriptGNU General Public License v3.0
8Sim

Sim Studio is an open-source AI agent workflow builder. Sim Studio's interface is a lightweight, intuitive way to quickly build and deploy LLMs that connect with your favorite tools.

27.7kTypeScriptApache License 2.0
9LightRAG

LightRAG is a simple and fast Retrieval-Augmented Generation (RAG) framework, designed to enhance large language models with efficient retrieval mechanisms. Developed as part of EMNLP 2025, it focuses on streamlined performance and ease of integration for natural language processing tasks.

25.9kPythonMIT License
10LibreChat

LibreChat is an enhanced ChatGPT clone offering features like agents, DeepSeek, Anthropic, AWS, OpenAI integration, and more. It allows secure multi-user authentication, AI model switching, message search, and supports various AI models and tools for a comprehensive chat experience. It is open-source and self-hostable.

23.2kTypeScriptMIT License

All open-source alternatives to LangChain

Our Newsletter

Find new open-source tools faster

Get short emails with useful developer tools, interesting repos, and project updates worth watching.

Frequently asked questions

What are the best open-source alternatives to LangChain?

The top three are AutoGPT(173.4k stars), Dify(137.3k stars), RAGFlow(77.8k stars). All are open source and free to use.

Are these alternatives to LangChain free?

Yes. Every tool listed here is open source and free to use in your own projects. Many can be self-hosted on your own infrastructure, which means no subscription fees and full control over your data.

Can I self-host an alternative to LangChain?

Many of the alternatives listed are self-hostable. Each tool's page lists hosting details, system requirements, and licensing terms.

Stay Updated!

Get notified about new tools and updates to existing ones.