Open Source Alternatives
Open source alternatives to LangChain
Open source alternatives to LangChain, ranked by GitHub stars and freshness.
20 open-source alternatives in the index, ranked by GitHub stars and freshness.
Llmware
Community
Unified framework for building enterprise RAG pipelines with small, specialized models
Best for: Teams building enterprise document search and QA systems who want to optimize costs by using specialized models instead of large LLMs.
TypeChat
Community
TypeChat is a library that makes it easy to build natural language interfaces using types.
Best for: Developers building type-safe natural language interfaces in TypeScript
AdalFlow
Community
AdalFlow: The library to build & auto-optimize LLM applications.
Best for: Python developers who want to streamline LLM application development with built-in optimization.
Langroid
Community
Harness LLMs with Multi-Agent Programming
Best for: Developers building multi-agent LLM systems with Python
LazyLLM
Community
Easiest and laziest way for building multi-agent LLMs applications.
Best for: Developers seeking a low-friction way to build and test multi-agent LLM applications
OpenAGI
Community
OpenAGI: When LLM Meets Domain Experts
Best for: Developers building LLM agents that need to invoke specialized domain tools
llm-chain
Community
llm-chain is a powerful rust crate for building chains in large language models allowing you to summarise text and complete complex tasks
Best for: Rust developers building high-performance, multi-step LLM workflows for production systems
ModelFusion
Community
The TypeScript library for building AI applications.
Best for: TypeScript developers building multi-model AI applications who want a lightweight, unified framework.
MiniChain
Community
A tiny library for coding with large language models.
Best for: Developers who want a lightweight, educational tool for simple LLM chaining experiments.
LiteChain
Community
Build robust LLM applications with true composability 🔗
Best for: Developers who want a simple composable framework for LLM applications without heavy overhead
Rigging
Community
Lightweight LLM Interaction Framework
Best for: Python developers who want a simple, no-frills way to call LLMs in scripts or small applications.
LLFn
Community
A light-weight framework for creating applications using LLMs
Best for: Developers who need a simple, no-frills framework for quickly integrating LLMs into Python projects.
Intelli
Community
Build multi-model chatbots and agents from intent.
Best for: Developers testing multi-model agent patterns on a small scale.
Command R-35B
Community
We’re on a journey to advance and democratize artificial intelligence through open source and open science.
Best for: Developers and researchers who want an open source framework for AI experimentation and community contribution
Epsilla
Community
An all-in-one LLM Agent platform with your private data and knowledge, delivers your production-ready AI Agents on Day 1.
Best for: Developers who need to quickly create AI agents that leverage private data in a production setting
Haystack
Community
Create agentic, context engineered AI systems using Haystack’s modular and customizable building blocks, built for real-world, production-ready applications.
Best for: Developers building custom, production-ready AI pipelines with modular components.
LlamaIndex
LlamaIndex
The data framework for LLM apps. RAG, ingestion, structured extraction, agents over your data.
Best for: Teams whose agent value comes from their own data, not just the model
Mastra
Mastra
TypeScript-first agent framework. Workflows, agents, tools, memory, evals, in one consistent shape.
Best for: TypeScript teams who want a single agent framework, not a stack
Semantic Kernel
Microsoft
Microsoft's enterprise-flavoured framework for AI agents. .NET-first, with Python and Java siblings.
Best for: .NET and enterprise teams adopting AI agents
Vercel AI SDK
Vercel
The de facto TypeScript SDK for AI apps. Streaming, tools, multi-model, and now an agent loop.
Best for: TypeScript teams shipping AI features in production