Skip to content

danny-avila/LibreChat

⭐ 36,808  ·  TypeScript  ·  GitHub Repo

Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active.

ai anthropic artifacts aws azure chatgpt chatgpt-clone claude

1-Sentence Summary

Unify 20+ AI providers, agents, and code execution into one self-hosted, privacy-first chat platform.

🔥 Key Capabilities & USP

  • Multi-Provider Model Switching: Seamlessly switch between 20+ AI providers (OpenAI, Anthropic, AWS Bedrock, Google Gemini, Azure, Groq, DeepSeek, Ollama, etc.) mid-conversation. Solves the pain of juggling multiple browser tabs and API keys for different models.
  • LibreChat Agents & MCP Integration: Build no-code custom AI assistants with tool support, file search, and code execution. The Model Context Protocol (MCP) integration allows extensible agent capabilities, turning the chat into a programmable AI workspace.
  • Secure Code Interpreter API: A sandboxed execution environment supporting Python, Node.js, Go, C/C++, Java, PHP, Rust, and Fortran. Solves the pain of needing a separate development environment to test or run code snippets from AI conversations.
  • Generative UI with Code Artifacts: Create React components, HTML pages, and Mermaid diagrams directly within chat conversations for interactive visual outputs. Solves the pain of manually copying AI-generated code to a separate editor to preview.
  • Resumable Streams & Multi-Device Sync: AI responses automatically reconnect and resume after network drops, with real-time synchronization across multiple browser tabs and devices. Solves the pain of losing long AI responses due to connection instability.

USP: LibreChat is the most feature-complete, self-hosted AI chat platform available, combining enterprise-grade multi-user authentication (OAuth2, LDAP) with advanced developer tools (Agents, MCP, Code Interpreter) in a single open-source package.

Architecture

Technical Architecture

ComponentTechnology
FrontendReact-based UI with TypeScript
BackendNode.js/TypeScript server
DatabaseMongoDB (primary), Redis (caching/sessions)
DeploymentDocker, Docker Compose, reverse proxy (Nginx/Caddy)
ScalingHorizontal scaling via Redis, multi-node support
AI IntegrationUnified API interface for 20+ providers, custom endpoints
RAG SupportSeparate component: danny-avila/rag_api
AuthenticationOAuth2, LDAP, JWT-based multi-user auth

Quick Start Guide

Prerequisites: Docker & Docker Compose installed, API keys for desired AI providers.

  1. Clone the repository:

    bash
    git clone https://github.com/danny-avila/LibreChat.git
    cd LibreChat
  2. Configure environment:

    bash
    cp .env.example .env
    # Edit .env to add your AI provider API keys (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.)
  3. Start with Docker:

    bash
    docker compose up -d
  4. Access the application: Open http://localhost:3080 in your browser.

  5. Create admin account: Register the first user, which automatically becomes the admin.

Pros, Cons & Use Cases

Pros

  • Open-source & actively maintained (36K+ stars, frequent updates)
  • Unmatched provider support (20+ AI services under one roof)
  • Enterprise-grade auth (OAuth2, LDAP, multi-user with role management)
  • Advanced developer tools (Agents, MCP, Code Interpreter, Artifacts)
  • Resilient streaming (auto-resume on disconnect, multi-device sync)
  • Multilingual UI for global teams

Cons

  • Requires self-hosting with technical setup (Docker, database, networking)
  • No managed cloud version mentioned for non-technical users
  • Breaking changes possible on updates (documentation advises consulting changelog)
  • Resource overhead for full feature set (MongoDB, Redis, RAG API)

Who should NOT use this?

  • Non-technical users who want a plug-and-play, hosted AI chat solution
  • Single-provider shops that only need OpenAI or Anthropic (simpler alternatives exist)
  • Teams without Docker/DevOps experience for maintaining the infrastructure
  • Users needing a mobile-first app (primarily web-based interface)

Ideal Use Cases

  • Development teams wanting a unified AI workspace with code execution and agent capabilities
  • Organizations needing self-hosted, privacy-controlled AI chat with multi-user access
  • Power users who switch between multiple AI models (GPT-5, Claude, Gemini, DeepSeek) for different tasks
  • Enterprises requiring LDAP/OAuth2 integration and role-based access control
  • AI researchers needing extensible agent frameworks with MCP and custom tool support

Community & Activity

LibreChat is on fire with 36,808 stars and active daily development (last updated May 2026). The project has a vibrant GitHub community with frequent releases, a dedicated changelog, and active issue resolution. The star history graph shows consistent upward momentum, indicating strong and growing adoption. This is a battle-tested, community-backed project that's rapidly becoming the de facto standard for self-hosted AI chat platforms.

Project data from GitHub API, updated in real-time