← Back to Chat & Search

LibreChat

Open-source, self-hosted chat interface supporting multiple models and custom agents with ChatGPT-like features.

Chat & SearchSee official siteGlobal

At a Glance & Reviews

PricingSee official site
OriginGlobal

About LibreChat

LibreChat is an open-source intelligent conversation platform that solves the problem of teams needing to use models from multiple providers while being split across each provider's separate interface and account system. It brings multiple providers and local models into a single unified, customizable chat interface, with conversations, files, and user data under the deployer's own control. Starting in 2023 as an open-source interface imitating the mainstream chat product experience, it gradually grew into a multi-user AI workbench. Its code is open source under the MIT license and written in TypeScript, with the repository and documentation updated frequently. Its recent feature focus is clearly on agents, tool calls, and manageability. It does not run any large model itself; it only forwards requests to the model services configured by the user, so it needs no GPU, and compute costs depend entirely on the connected models.

The breadth of model integration is the first thing people notice. Natively supported sources include OpenAI and its Responses API, Anthropic, Google and Vertex AI, Azure OpenAI, and AWS Bedrock, along with Groq, Mistral, Cohere, Together, OpenRouter, DeepSeek, xAI, and local models provided by Ollama; the official page lists dozens of sources. Any OpenAI-compatible service can be connected as a custom endpoint without an additional proxy layer—just write the endpoint name, key, base URL, and available model list in the configuration file. Users can switch models and sources at any time during a conversation based on the task. A team does not need to switch products or export and re-import conversation history just to change model providers, which is also the most practical benefit for multi-model users.

Agents are the core around which features are now organized. In the builder in the interface sidebar, an agent can be configured without writing code: choose a model, write instructions, attach files, add tools, then give it a name and avatar. Once created, it appears in the selection menu like an ordinary model and can also be invoked in a conversation by mentioning it. Agents can carry reusable skill instructions that load on demand or stay active; they can call external tools connected via the Model Context Protocol, whose connection methods include standard input/output, server-sent events, streaming HTTP, and WebSocket; when there are too many tools, a lazy-loading mechanism loads the relevant tool descriptions into context via tool search only when needed. The official Agent Marketplace is provided for discovering and deploying community-built agents, and agents can be shared with specific users. Newer versions add beta Agent API capabilities for programmatically creating, querying, updating, and deleting agents and managing their files and skills, plus experimental capabilities allowing agents to view directories, read and write files, search content, and run commands in a managed workspace, with approval controls set to ask, allow, or deny for file writes and command execution.

Tools and content generation revolve around the conversation. The code interpreter runs code in an isolated sandbox; officially listed supported languages include Python, Node.js JavaScript and TypeScript, Go, C and C++, Java, PHP, Rust, and Fortran. Each run is isolated from the others and has no internet access, making it suitable for data processing, charting, and quick validation. Conversations can also directly generate interactive artifacts, including apps, charts, and documents; React components, HTML pages, and flowcharts produced by the model can be previewed in the chat window. Beyond that, there are capabilities that can be toggled per agent, such as web search, memory, and file search, as well as entries in the built-in tool library such as image generation, a calculator, academic search, and external search services. File Q&A goes through a separate retrieval service: uploaded files are split and vectorized, then stored in a Postgres database with vector extensions; when a question is asked, semantically relevant passages are retrieved and handed to the model. Files persist in the file library and can be reused across conversations, which differs from temporary attachments used only in a single chat.

Multi-user and administrative capabilities determine whether it can be shared by a team. The system provides secure user registration and login, supporting enterprise single sign-on methods such as OAuth2, SAML, LDAP, and two-factor authentication. Admins and regular users are the basic roles, and the admin panel allows granular authorization by feature—for example, who can use agents, file search, web search, code execution, and protocol tools—with custom roles also available. Conversation-side features include message and conversation search, conversation branching and streaming resumption from the point of interruption, organizing conversations by project, and generating stable share links that let recipients save a copy as their own. The interface supports over 30 languages. The default deployment consists of multiple container services: the main application handles the interface, login, and communication with model services; MongoDB stores users, conversations, agents, and memory; Meilisearch handles chat history search; the retrieval service and vector database handle file Q&A; the admin panel is a separate web application; and components like log observability can be connected when scaling.

Configuration files are key to understanding how it is operated, and there are two of them. The environment variable file holds keys, switches, and deployment parameters, copied and modified from the sample file included in the repository; another YAML configuration file describes the functional layer, including custom endpoints, protocol tool services, web search, memory, and interface options. It must be mounted into the container via an override Compose file, while the official main Compose file remains unchanged so upgrades are less likely to conflict. Adding a model service, a tool server, or adjusting interface features usually takes effect by editing these two files and restarting the services, without modifying code.

Getting started follows Docker deployment as the standard path. After cloning the official repository with Git and entering the directory, copy the sample environment file into the production environment file, fill in the keys for one or more model services to use, then run the single command docker compose up -d to start all services. After startup, open port 3080 on the local machine in a browser, and the first registered account can log in and use the system. Official documentation states that the full container stack requires a minimum of about 1 GB of memory and recommends reserving 2 GB for Docker. To use only local models, add Ollama as a custom endpoint in the YAML configuration to use it alongside cloud models. Note that the names of environment variables in the configuration file occasionally change between minor versions, so check the official changelog before upgrading to avoid broken configurations.

There are three typical use cases. First, a company or team builds an internal unified chat portal, where employees switch between multiple models and local models with one account, while administrators centrally manage keys, permissions, and availability—suitable for organizations with scattered model procurement that also need basic auditing. Second, dedicated agents are built for specific roles, such as a Q&A assistant with internal documents attached or a research assistant with retrieval tools; once configured, they can be shared directly with team members without each person assembling prompts themselves. Third, individuals self-host, placing cloud models and local Ollama in the same interface, using large cloud models during the day and switching to local models when handling sensitive materials, with all conversations remaining in their own database. Correspondingly, its shortcomings are also clear: it has more components than single-file interfaces, and initial setup and subsequent upgrades require someone who understands Docker and configuration files, so people who simply want to chat with one or two models may find it overly heavy.

In terms of pricing, it has no subscription tiers: the software itself is free and open source under the MIT license, self-hosted use is free, and the official project does not attach a paid plan, so this article does not draw a pricing conclusion. Usage costs are borne by the deployer: first, the cost of running a server or local machine, and second, the usage fees charged by each connected model service at its own rates, or hardware and electricity costs when using local models. Compared with the official chat interfaces provided by model vendors, the difference lies not in model capabilities but in organization: dozens of sources, local models, and self-built agents are brought into a single self-hosted interface, so switching models does not require switching products or migrating conversations and user systems. Compared with other self-hosted interfaces, its advantages lie in the agent tool system and the granularity of multi-user permissions, with the trade-off being higher deployment complexity. When selecting, confirming two things is enough to judge whether it fits: whether multiple models really need to be used at the same time, and whether someone can maintain this service long term—only when both hold true is it worth installing.

Sign in to Lumo

Sign in with a one-time code sent to your email — no password. Your saved tools will sync across your devices.

The code is only used to sign you in. We store just your email and saved list (privacy policy, in Chinese).

—

Signed in. Your saved tools sync across all your devices.

0saved
View saved tools

Send feedback

Found a mistake, missing something, or have a suggestion? Tell us.