Open Source Alternatives
Open source alternatives to LangChain
Open source alternatives to LangChain, ranked by GitHub stars and freshness.
29 open-source alternatives in the index, ranked by GitHub stars and freshness.
Dify
Community
Production-ready platform for agentic workflow development.
Best for: Teams building production LLM agents who want open-source control and visual workflow design.
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
SimpleAIChat
Community
Python package for easily interfacing with chat apps, with robust features and minimal code complexity.
Best for: Python developers who want to add chat AI to their projects quickly with minimal boilerplate
magentic
Community
Seamlessly integrate LLMs as Python functions
Best for: Python developers who want to quickly add LLM capabilities to their code without learning a complex framework.
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.
AI.JSX
Community
The AI Application Framework for Javascript
Best for: JavaScript developers who want to build AI applications using a component-based, declarative approach
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.
Just-Chat
Community
Make your LLM agent and chat with it simple and fast!
Best for: Developers who need a quick, minimal Python framework to prototype LLM agents
Intelli
Community
Build multi-model chatbots and agents from intent.
Best for: Developers testing multi-model agent patterns on a small scale.
AutoGen
Microsoft
Microsoft's framework for multi-agent conversations. Agents that talk to each other to solve hard problems.
Best for: Teams comfortable with multi-agent patterns, on Python or .NET
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
DSPy
Stanford NLP
Programming, not prompting. Declare what you want, compile prompts and weights against an objective.
Best for: Teams who want to optimise their LLM pipelines like code, not edit prompts forever
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
Scale Spellbook
Community
Accelerate and scale Generative AI across your enterprise with the platform to transform your data into customized enterprise-ready Generative AI applications.
Best for: Enterprises that need a framework to rapidly build and scale custom generative AI applications from their own data.
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
Wordware
Community
Building the future of work, with Sauna
Best for: Developers building AI-native applications and tools