SkillsMar 31, 2026·2 min read

LibreChat — Self-Hosted Multi-AI Chat Platform

LibreChat is a self-hosted AI chat platform unifying Claude, OpenAI, Google, AWS in one interface. 35.1K+ GitHub stars. Agents, MCP, code interpreter, multi-user auth. MIT.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
LibreChat — Self-Hosted Multi-AI Chat Platform
Direct install command
npx -y tokrepo@latest install 850494fb-7737-4388-8104-f8860a0d2d41 --target codex

Run after dry-run confirms the install plan.

TL;DR
Self-hosted AI chat platform that unifies Claude, OpenAI, Google, and AWS Bedrock in one interface.
§01

What it is

LibreChat is a self-hosted AI chat platform that unifies major AI providers in a single privacy-focused interface. It supports Claude (Anthropic), OpenAI, Azure OpenAI, Google AI, and AWS Bedrock. The platform includes AI agents with Model Context Protocol (MCP) support, artifacts, a sandboxed code interpreter for Python, Node.js, and Go, and multi-user authentication.

LibreChat targets teams and individuals who want a unified chat interface across multiple AI providers without sending data through third-party proxy services. With 35,100+ GitHub stars and an MIT license, it has become one of the most popular open-source AI chat frontends.

§02

How it saves time or tokens

Instead of maintaining separate accounts and browser tabs for each AI provider, LibreChat gives you one interface to switch between models mid-conversation. You can compare responses from different providers side by side. The self-hosted deployment means no usage limits imposed by third-party UIs, and you control your API key routing. Built-in conversation history and search eliminate the need for external note-taking.

§03

How to use

  1. Clone and start with Docker:
git clone https://github.com/danny-avila/LibreChat.git
cd LibreChat
cp .env.example .env
docker compose up -d
  1. Open http://localhost:3080 in your browser and create an account.
  1. Add your API keys in the settings panel for each provider you want to use (OpenAI, Anthropic, Google, etc.).
§04

Example

Configuring multiple providers in the .env file:

# OpenAI
OPENAI_API_KEY=sk-...

# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...

# Google AI
GOOGLE_KEY=...

# Azure OpenAI
AZURE_API_KEY=...
AZURE_OPENAI_BASEURL=https://your-resource.openai.azure.com

After restarting the container, all configured providers appear in the model selector dropdown.

§05

Related on TokRepo

§06

Common pitfalls

  • The default Docker Compose uses MongoDB; ensure you have sufficient disk space for conversation storage as usage grows
  • MCP server configurations must be added to the LibreChat YAML config, not the provider settings; check the MCP documentation for the correct format
  • Multi-user deployments should configure proper auth (LDAP, OIDC) rather than relying on local accounts for team environments

Frequently Asked Questions

What AI providers does LibreChat support?+

LibreChat supports OpenAI, Anthropic Claude, Azure OpenAI, Google AI (Gemini), AWS Bedrock, and custom OpenAI-compatible endpoints. You can configure multiple providers simultaneously and switch between them within a single conversation.

Is LibreChat truly self-hosted?+

Yes. LibreChat runs entirely on your infrastructure via Docker. Your conversations, API keys, and user data stay on your server. No data is sent to LibreChat's developers. You bring your own API keys for each provider.

Does LibreChat support MCP (Model Context Protocol)?+

Yes. LibreChat supports MCP servers, allowing AI agents within the platform to interact with external tools like file systems, databases, and APIs through the standardized MCP protocol.

Can multiple users share a LibreChat instance?+

Yes. LibreChat supports multi-user authentication with role-based access. You can configure LDAP, OpenID Connect, or local accounts. Each user has their own conversation history and can use shared or personal API keys.

How does LibreChat compare to OpenWebUI?+

Both are self-hosted AI chat interfaces. LibreChat focuses on multi-provider support with commercial APIs, while OpenWebUI primarily targets local LLM setups with Ollama. LibreChat has broader provider coverage; OpenWebUI has deeper Ollama integration.

Citations (3)
🙏

Source & Thanks

Created by Danny Avila. Licensed under MIT. danny-avila/LibreChat — 35,100+ GitHub stars

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets