AI & LLMs · Guide · AI & Prompt Tools
How to Use LibreChat
Spin up LibreChat to unify OpenAI, Anthropic, and local models under one interface. Configure plugins and assistants API with this free Docker guide.
LibreChat is an open-source ChatGPT clone that talks to every major model provider from a single UI.
Advertisement
LibreChat started as a faithful ChatGPT reimplementation and grew into a multi-provider chat hub. One interface fronts OpenAI, Anthropic, Google, Azure, AWS Bedrock, local Ollama, and the OpenAI Assistants API. It adds plugins, multimodal inputs, presets, and per-user API keys on top.
What it is
A Node.js + React monorepo backed by MongoDB for chat history and Meilisearch for conversation search. Auth supports email, Google, GitHub, Discord, Facebook, Apple, and OpenID. Models are configured via librechat.yaml, which is where you declare endpoints, custom providers, and rate limits.
Install / set up
# docker compose git clone https://github.com/danny-avila/LibreChat cd LibreChat cp .env.example .env cp librechat.example.yaml librechat.yaml docker compose up -d
First run
Open http://localhost:3080, register an account (the first user can be elevated to admin via the CLI), add an API key in the top-right menu, and start chatting. Switch providers from the model dropdown mid-conversation to compare outputs side by side.
$ npm run create-user admin@example.com Admin password123 User created successfully $ npm run ban-user someone@example.com
Everyday workflows
- Save a Preset with a provider, model, system prompt, and temperature so teammates start from the same baseline.
- Enable Assistants to upload files and run OpenAI’s code interpreter without leaving LibreChat.
- Wire in plugins (web search, DALL·E, Zapier, custom actions) to extend chat into tool-calling agents.
Gotchas and tips
librechat.yaml is the source of truth for custom endpoints, but it’s read at boot — changes require a container restart. Validate your YAML before restarting, because a typo will crash the API container and silently fall back to the last good config only if you’re lucky.
MongoDB grows fast if users never delete conversations. Set up a retention policy or a cron that archives old threads, and put Meilisearch on a persistent volume or you’ll lose full-text search indexes on every redeploy.
Who it’s for
Anyone who wants a polished, self-hosted ChatGPT with multi-provider support and real auth. Families sharing a plan, small teams wanting unified billing through API keys, and tinkerers who like the ChatGPT UI but want to own the data.
Use these while you read
Tools that pair with this guide
- AI Cost EstimatorEstimate daily, monthly, and yearly API cost for GPT-4o, Claude, Gemini, and more based on your traffic and token usage.AI & Prompt Tools
- AI Prompt GeneratorTurn a vague idea into a structured prompt. Pick role, task, context, constraints, and output format. Works with ChatGPT, Claude, and Gemini.AI & Prompt Tools
- AI Token CounterEstimate tokens, characters, words, and approximate API cost for GPT-4o, GPT-4, Claude, and Gemini — before you hit send.AI & Prompt Tools
- AI Prompt LibraryBrowse a curated catalog of prompt templates for writing, coding, marketing, and research. One click to copy.AI & Prompt Tools
Advertisement
Continue reading
- AI & LLMsGitHub Copilot Pricing and ComparisonCompare free vs paid GitHub Copilot tiers and analyze it against ChatGPT, Cursor, and Tabnine. Find the best value plan instantly with this free online guide.
- AI & LLMsGitHub Copilot Features and CapabilitiesTest what Copilot really does — code accuracy, scope limits, debugging, web dev, legacy code, tests, docs, team customization. Free guide, no sign-up.
- AI & LLMsGitHub Copilot Security and Data HandlingAudit where your code goes, who sees it, training-data policy, network needs, and what happens when Copilot suggests broken code. Free, no sign-up.
- AI & LLMsAI Fluency SkillsThe 8 sub-skills of AI fluency: prompt structure, model selection, tool use, quality calibration, iteration, context management, cost awareness, privacy.
- AI & LLMsAnthropic Skills ExplainedSkills as Anthropic's answer to Custom GPTs — markdown-defined, version-controlled in git, work in terminal. Anatomy + Skills vs Custom GPTs.
- AI & LLMsKimi K2 vs DeepSeek V3Two open-weight Chinese flagships. Kimi K2 = 1M context, DeepSeek V3.2 = top-tier reasoning + coding. Pick by use case.