Langchain logo

Langchain

Free

Elixir implementation of a LangChain ![GitHub Repo stars](https://img.shields.io/github/stars/brainlid/langchain?style=social)

FreeFree tier
Inputs: textOutputs: text
Type
Open Source
Company
brainlid

About Langchain

LangChain is an Elixir implementation of a LangChain-style framework that enables Elixir applications to integrate with and leverage large language models (LLMs). It provides a structured framework for building data-aware and agentic applications, allowing developers to connect LLMs to other data sources and enable them to interact with their environment. The library offers modular components and off-the-shelf chains for common tasks, making it easy to get started while allowing customization for complex use cases. It supports a wide range of chat models including Anthropic Claude, OpenAI GPT, Google Gemini, DeepSeek, Ollama, Mistral, Perplexity, and more, as well as self-hosted models via Bumblebee and multi-provider adapters via ReqLLM.

Key Features

Supports multiple AI providers: Anthropic Claude, OpenAI ChatGPT, Google Gemini, DeepSeek, Ollama, Mistral, Perplexity, and more
Data-aware: connect language models to external data sources
Agentic: enable LLMs to interact with their environment
Modular components for working with language models
Off-the-shelf chains for common higher-level tasks
Self-hosted model support via Bumblebee (Nx)
Multi-provider adapter via ReqLLM
Extended thinking support for Anthropic Claude
OpenAI-compatible gateway for Bedrock models (Mantle)

Pros & Cons

Pros
  • Native Elixir implementation leverages BEAM concurrency and fault tolerance
  • Extensive provider support including both cloud and self-hosted models
  • Modular design allows easy customization and extension
  • Open-source with MIT license (implied by GitHub repo)
  • Active development with 1.2k stars and 811 commits
  • Provides both high-level chains and low-level components
Cons
  • Much smaller community and ecosystem compared to Python LangChain
  • Relatively new project with less maturity than Python counterpart
  • Documentation less comprehensive than the original LangChain
  • Requires familiarity with Elixir and OTP

Best For

Building AI-powered chatbots and conversational agentsCreating data-aware applications that combine LLMs with databases or APIsDeveloping agentic systems where LLMs interact with external tools and servicesRapid prototyping of LLM-based workflows with off-the-shelf chainsIntegrating self-hosted open-source models into Elixir projects

FAQ

What is Elixir LangChain?
Elixir LangChain is an Elixir implementation of the LangChain framework that enables Elixir applications to integrate AI services and self-hosted language models. It provides components and chains for building data-aware and agentic LLM-powered applications.
What LLM providers are supported?
It supports Anthropic Claude (including AWS Bedrock), OpenAI ChatGPT and Responses API, Google Gemini and Vertex AI, DeepSeek, Ollama, Mistral, Perplexity, xAI Grok, Cloudflare Workers AI, and self-hosted models via Bumblebee. It also supports multi-provider adapters via ReqLLM.
Is Elixir LangChain free and open-source?
Yes, Elixir LangChain is open-source and freely available on GitHub under an MIT license. There is no cost to use the library itself, though usage of third-party AI services may incur fees from those providers.