Open Source Alternatives LogoOpen Source Alternatives
AlternativesBlogAdvertise
Open Source Alternatives LogoOpen Source Alternatives

Stay Updated

Subscribe to our newsletter for the latest news and updates about Alternatives

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product
  • Categories
  • Tag
  • Sign In
Resources
  • Blog
  • Collection
  • Submit
  • Advertise your tool
Company
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap
Alternatives
  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
Copyright © 2026 All Rights Reserved.
Home/Categories/AI & Machine Learning/LibreChat
icon of LibreChat

LibreChat

Open source alternative to ChatGPT and Anthropic (Claude)

Connect all your AI providers in one self-hosted chat interface, with agents, MCP, code execution, and enterprise authentication built in.

43.8K starsTypeScriptMITActive this week
Visit websiteGitHub repoDeployDeploy on Hostinger
image of LibreChat
Contents
  1. 01Who LibreChat is for
  2. 02The problem it solves
  3. 03How it solves it
  4. 04Strengths and trade-offs
  5. 05LibreChat vs alternatives
  6. 06Quick start
  7. 07Tech stack
  8. 08FAQ
  9. 09Similar open-source tools
TL;DR

LibreChat is a self-hosted AI chat tool that connects Anthropic Claude, OpenAI, Google Gemini, DeepSeek, AWS Bedrock, and 30+ other providers through a single MIT-licensed interface. It replaces paid AI chat services like ChatGPT and Claude.ai with a deployment you control, using your own API keys and no per-seat fees. Agents, MCP tool connections, a sandboxed code interpreter, web search, and enterprise authentication (SSO, SAML, LDAP) are all included. Best for privacy-focused teams, multi-model power users, and organizations that need fine-grained user access controls.MIT · TypeScript · 43.8K stars · Active this week

who it's for

Who LibreChat is for#

Privacy-focused teams handling sensitive data

Organizations under regulatory constraints or NDA-heavy workflows get full conversation ownership: all history stays on your infrastructure under your data policies, with no vendor retention. You choose which providers to connect and can restrict users to private-endpoint models only.

Skip if:

Your team is comfortable with vendor data storage terms and prefers a managed service with no self-hosting overhead.

Developers evaluating multiple AI models for a project

LibreChat lets you run the same prompt against Claude, GPT, Gemini, and DeepSeek in parallel sessions and compare outputs in a unified interface. Conversation forking lets you branch a thread to test different follow-ups without rebuilding your context.

Skip if:

You only use one model provider and have no need to compare outputs across vendors.

Enterprises deploying AI access to internal teams

The admin panel controls which users and groups can access which models, sets token spend limits, and manages SSO through SAML or LDAP. Agents and presets share org-wide, giving everyone a consistent starting point without per-user manual configuration.

Skip if:

Your team is fewer than five people. The setup complexity pays off once you have multiple users with different access needs.

AI power users building agent workflows

MCP support connects agents to external tools, file systems, and APIs. Skills bundle reusable instruction sets that agents invoke on demand. The attached code workspace lets agents inspect, edit, and run code in a managed environment without leaving the chat session.

Skip if:

You need a simple one-model chat interface. The agent and MCP features add configuration overhead that straightforward chat use does not require.

the problem

The problem it solves#

Most teams working with multiple AI models end up managing a separate tab for each provider. ChatGPT in one window, Claude in another, Gemini in a third. Conversation history stays siloed per service, files have to be re-uploaded for each provider, and there is no way to compare model responses or share a conversation across a team. Per-seat subscriptions stack quickly once a team needs access to more than one frontier model.

The deeper pain is data control. Commercial AI chat services store conversation history on vendor infrastructure under vendor data policies, with limited export options. Teams handling confidential client work, internal knowledge, or regulated data cannot simply accept those terms, but building a custom multi-provider chat interface from scratch is weeks of engineering.

how LibreChat solves it

How it solves it#

Multi-Provider Model Routing

Connects Anthropic, OpenAI, Google, AWS Bedrock, Azure, Groq, Mistral, DeepSeek, Ollama, and any OpenAI-compatible endpoint. API keys configure per provider; model access assigns per user or group. Switching between models happens mid-conversation without losing context.

Sandboxed Code Interpreter

Executes code in Python, Node.js, Go, C/C++, Java, PHP, Rust, and Fortran inside an isolated environment. File uploads process directly in the sandbox, so you can run data analysis, generate plots, or process documents without leaving the chat. No external service required when self-hosting.

AI Agents with MCP Support

Custom agents combine model instructions, tool access, file search, and code execution into reusable workflows. Model Context Protocol support lets agents connect to any external tool or service. Agents are shareable across users and discoverable through a deployment marketplace.

Web Search with Reranking

Gives any connected model live internet access by combining search providers, content scrapers, and configurable Jina rerankers. Results inject into the model context without leaving the LibreChat interface, and the feature works across all configured AI providers.

Code Artifacts and Generative UI

Renders React components, HTML pages, and Mermaid diagrams directly in the chat window. Mermaid diagrams export as SVG or PNG. Full-screen preview lets you interact with rendered output without opening a separate tool.

Enterprise Authentication

Ships with OAuth2, SAML, LDAP, OpenID, and two-factor authentication. The bundled admin panel manages users, groups, roles, and permission overrides from a browser UI without redeploying the server. Token spend limits and built-in moderation tools are included.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • MIT license with no usage restrictionsThe MIT license means you can deploy LibreChat commercially, modify the codebase, and run it for unlimited users with no licensing fees. You pay only for API calls to the model providers you connect, with no markup or subscription overhead.
  • Unified conversation history across all providersEvery conversation, regardless of which model generated it, lives in your own database. Full-text search spans all providers at once, and export works in multiple formats including JSON, markdown, and plain text.
  • Active codebase with 43,000+ GitHub starsThe repository received a push on 2026-09-15 and has shipped major features including MCP support, a code interpreter, and agent workspaces in recent releases. 411 contributors and 52.7 million Docker pulls indicate a production-grade install base.
  • Bring-your-own-API-key modelNo markup on API calls. You connect directly to Anthropic, OpenAI, Google, or any compatible endpoint using your own credentials, paying provider pricing without an intermediary. Local models via Ollama run at zero API cost.

Trade-offs

  • -You manage API keys and billing for each providerLibreChat does not bundle model access. You need an API account with each provider you want to use and must manage billing, rate limits, and key rotation yourself. Teams expecting a turnkey subscription service will need to set up provider accounts before the first conversation.
  • -Self-hosting carries operational overheadRunning LibreChat in production means maintaining a server, a MongoDB or PostgreSQL database, and optionally Redis for horizontal scaling. Version upgrades occasionally include breaking changes that require reviewing the changelog before updating.
  • -741 open GitHub issues at last checkThe active issue count reflects a fast-moving codebase. Some edge cases in less common provider configurations or authentication setups take time to resolve. Checking GitHub Issues before deploying an uncommon integration is worthwhile.
versus alternatives

LibreChat vs alternatives#

LibreChat vs ChatGPT

ChatGPT and LibreChat both offer a chat interface to frontier AI models. The key difference is control, provider selection, and deployment model.

FeatureLibreChatChatGPT
LicenseMITProprietary
Self-hostingYesNo
Model selection30+ providersOpenAI models only
PricingInfrastructure + API costs$20/month per user
Data ownershipYour infrastructureOpenAI servers
Enterprise authOAuth, SAML, LDAP, 2FASSO on Teams/Enterprise tiers

LibreChat is the better choice when you need multiple model providers in one interface, want conversation history on your own infrastructure, or need to avoid per-seat pricing for a larger team. ChatGPT is the better fit when you want a fully managed experience with no setup, need first-party OpenAI features on day one, or prefer not to maintain a server.

LibreChat vs Claude.ai

Claude.ai is Anthropic's managed chat interface for Claude models. LibreChat connects to Anthropic's API and gives you Claude access alongside every other provider.

FeatureLibreChatClaude.ai
LicenseMITProprietary
Self-hostingYesNo
Models availableAnthropic + 30 othersClaude only
Data storageYour databaseAnthropic servers
Agent supportYes (MCP, Skills, Subagents)Yes (Projects)
PricingAPI cost only$20/month per user

LibreChat is worth choosing when you need Claude access alongside GPT, Gemini, or DeepSeek in one conversation history, or when your organization requires data to stay on-premises. Claude.ai makes more sense when you want the managed Claude experience, first-party Projects and Artifacts support, or do not want to maintain your own infrastructure.

install · quick start

Quick start#

bash
Self-hosting uses Docker Compose with the official repository.

```bash
git clone https://github.com/danny-avila/LibreChat
cd LibreChat
docker compose up -d
```
tech stack · detected from GitHub

What it's built on#

Languages
JavaScriptTypeScript
Frameworks
ExpressReact
Databases
MongoDB
Infrastructure
AWSAzure
Search
Meilisearch
Cache
Redis
frequently asked

FAQ#

Does LibreChat cost anything to use?

LibreChat is MIT licensed and free to self-host. You pay for the infrastructure you run it on and for API calls to whichever model providers you connect. There is no per-seat fee or platform subscription. Your costs are server and API usage only.

Can I use LibreChat with local AI models?

Yes. LibreChat connects to Ollama and other local model servers through its custom endpoints configuration. You can run entirely offline with no external API calls, or mix local and cloud providers in the same installation. Local models via Ollama run at zero API cost.

How do I install LibreChat?

The primary path is Docker Compose. The official repository includes a Docker Compose file that starts the app, database, and optional services together. Railway, Zeabur, and Sealos offer one-click deployment templates if you prefer managed infrastructure. The quickstart guide at docs.librechat.ai covers both paths.

Is LibreChat suitable for teams, or only single-user installs?

LibreChat supports multi-user deployments with role-based access, group permissions, and enterprise authentication (OAuth, SAML, LDAP, 2FA). The admin panel manages users and model access without redeploying. The project is designed for team and organizational use, not just individual installs.

What databases does LibreChat require?

LibreChat uses MongoDB by default for conversation and user storage. PostgreSQL is also supported. Redis is optional but recommended for horizontally scaled deployments, and it enables resumable stream support across multiple server instances.

also worth a look

Similar open-source tools#

free-claude-code

free-claude-code

Route 9 AI coding agents through 1.3B+ free monthly tokens

54.8KPythonMIT
scientific-agent-skills

scientific-agent-skills

AI-driven research automation for complex tasks

44.8KPythonMIT
Local Deep Research

Local Deep Research

Your AI research assistant, fully local and encrypted.

9.1KPythonMIT
GenericAgent

GenericAgent

Autonomous agent that evolves skills over time

14.2KPythonMIT
Thunderbolt

Thunderbolt

Control your AI infrastructure with Thunderbolt

4.8KTypeScriptMPL-2.0
Jan

Jan

Run open source LLMs on your own hardware with no cloud required

44.5KTypeScriptApache-2.0

Repository

Stars
43.8K
Forks
9K
License
MIT
Last commit
today
Last verified
Sep 16, 2026
Repo
danny-avila/LibreChat ↗

Additional details

Language
TypeScript
Open issues
741
Contributors
412
First release
2023

Categories

AI & Machine LearningDeveloper ToolsCommunication & Collaboration

Tags

AI AgentsChatbotsSelf HostedOpen CoreDeveloper Tools