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 可直接安装
这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。
npx -y tokrepo@latest install 850494fb-7737-4388-8104-f8860a0d2d41 --target codex先 dry-run 确认安装计划,再运行此命令。
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.
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.
How to use
- Clone and start with Docker:
git clone https://github.com/danny-avila/LibreChat.git
cd LibreChat
cp .env.example .env
docker compose up -d
- Open
http://localhost:3080in your browser and create an account.
- Add your API keys in the settings panel for each provider you want to use (OpenAI, Anthropic, Google, etc.).
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.
Related on TokRepo
- AI Tools for Coding — developer tools that integrate with AI providers
- AI Gateway Providers — proxy and routing layers for multi-provider AI access
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
常见问题
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.
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.
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.
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.
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.
引用来源 (3)
- LibreChat GitHub— LibreChat with 35,100+ GitHub stars
- LibreChat Docs— LibreChat deployment and configuration documentation
- Anthropic MCP Docs— Model Context Protocol specification
来源与感谢
Created by Danny Avila. Licensed under MIT. danny-avila/LibreChat — 35,100+ GitHub stars
讨论
相关资产
Cosmos Server — Secure Self-Hosted Home Server Platform
A secure self-hosted home server platform with built-in reverse proxy, authentication, anti-DDoS protection, and a container management UI for running self-hosted applications safely.
Halo — Modern Self-Hosted Publishing Platform
Halo is an open-source content management and blogging platform built with Java and Spring Boot. It provides a polished editing experience, a plugin system, and theme marketplace for self-hosted publishing.
Seafile — Self-Hosted File Sync & Share Platform
Seafile is a high-performance, self-hosted file synchronization and sharing platform with client-side encryption, versioning, and team collaboration.
Planka — Self-Hosted Trello-Like Project Management
Planka is a real-time, self-hosted kanban board for project management with drag-and-drop cards, file attachments, and multi-user collaboration.