librechat
БесплатноБез исполняемых скриптовНе проверенLibreChat is a self-hosted, ChatGPT-style web chat that puts OpenAI, Anthropic, Google, OpenRouter, Ollama and other providers behind one login, with agents…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
LibreChat — Self-Hosted Chat UI for Many Model Providers
Overview
LibreChat is an open-source (MIT) web app that looks and works like ChatGPT but lets you plug in the models you choose: OpenAI, Anthropic, Google, Azure, Bedrock, and any OpenAI-compatible API (OpenRouter, Groq, Mistral, Ollama, vLLM). On top of plain chat it offers agents built in the UI, MCP tool servers, file upload with RAG, code execution, conversation search, presets and token balances per user.
A Docker Compose deployment runs five containers: the api app (port 3080), MongoDB for users and conversations, Meilisearch for search, pgvector plus rag_api for file search. Three files control it:
| File | Holds |
|---|---|
.env |
Secrets and server switches: API keys, CREDS_KEY, JWT_SECRET, registration flags, SSO |
librechat.yaml |
Endpoints, custom providers, MCP servers, agents, interface, balances |
docker-compose.override.yml |
Your changes to the stock compose file, including the librechat.yaml mount |
Never edit docker-compose.yml itself; git pull overwrites it on update.
Instructions
Install with Docker Compose
git clone https://github.com/LibreChat-AI/LibreChat.git
cd LibreChat
cp .env.example .env
cp docker-compose.override.yml.example docker-compose.override.yml
docker compose up -d
Open http://localhost:3080 and click Register. In a single-tenant install the first account registered becomes the admin; there are no default credentials. Check the app with docker compose logs -f api.
On Apple Silicon, MongoDB 8 crashes without AVX; pin an older image in the override:
services:
mongodb:
image: mongo:4.4.18
Keep the app ports off the public interface
The stock compose file publishes api on 3080 and admin-panel on 3000 on every interface. Docker writes its own iptables rules for published ports, so a ufw or firewalld rule does not close them. On a server behind a reverse proxy, rebind both to loopback in docker-compose.override.yml. A plain ports: list in an override is appended to the stock one, so use !override:
services:
api:
ports: !override
- "127.0.0.1:3080:3080"
admin-panel:
ports: !override
- "127.0.0.1:3000:3000"
docker compose config should then show host_ip: 127.0.0.1 and a single entry for each service.
Set permanent secrets in .env
Blank CREDS_KEY, CREDS_IV, JWT_SECRET and JWT_REFRESH_SECRET are generated into /app/data/.env.temp on first start. That is fine for a trial; for a real deployment generate fixed values once and store them in your secret manager, because user-provided API keys are encrypted with CREDS_KEY and changing it later does not re-encrypt them.
echo "CREDS_KEY=$(openssl rand -hex 32)"
echo "CREDS_IV=$(openssl rand -hex 16)"
echo "JWT_SECRET=$(openssl rand -hex 32)"
echo "JWT_REFRESH_SECRET=$(openssl rand -hex 32)"
echo "MEILI_MASTER_KEY=$(openssl rand -hex 32)"
echo "ADMIN_PANEL_SESSION_SECRET=$(openssl rand -hex 32)"
Paste the output into .env. Search needs both SEARCH=true and a unique MEILI_MASTER_KEY. The current compose file also starts an admin-panel container on port 3000 that refuses to start without ADMIN_PANEL_SESSION_SECRET.
Configure the built-in providers
Each built-in provider reads one key from .env. The shipped value user_provided makes every user paste their own key in the UI; replace it with a company key to share one. With the keys exported in your shell (OpenAI keys come from platform.openai.com/api-keys, Anthropic keys from console.anthropic.com):
sed -i "s|^OPENAI_API_KEY=.*|OPENAI_API_KEY=${OPENAI_API_KEY}|" .env
sed -i "s|^ANTHROPIC_API_KEY=.*|ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}|" .env
sed -i "s|^DOMAIN_CLIENT=.*|DOMAIN_CLIENT=https://chat.brightpath.dev|" .env
sed -i "s|^DOMAIN_SERVER=.*|DOMAIN_SERVER=https://chat.brightpath.dev|" .env
echo "ENDPOINTS=openAI,anthropic,google,agents,custom" >> .env
GOOGLE_KEY stays user_provided here, so people who want Gemini bring their own key. ENDPOINTS controls which providers appear in the model selector and in what order. DOMAIN_CLIENT and DOMAIN_SERVER must match the public URL, or OAuth callbacks and links break.
Add custom endpoints in librechat.yaml
Mount the file by uncommenting the volume in docker-compose.override.yml:
services:
api:
volumes:
- type: bind
source: ./librechat.yaml
target: /app/librechat.yaml
Any OpenAI-compatible API becomes a custom endpoint. ${VAR} reads a value from .env:
version: 1.3.17
cache: true
endpoints:
custom:
- name: 'OpenRouter'
apiKey: '${OPENROUTER_KEY}'
baseURL: 'https://openrouter.ai/api/v1'
models:
default: ['deepseek/deepseek-chat', 'meta-llama/llama-3.3-70b-instruct']
fetch: true
titleConvo: true
titleModel: 'meta-llama/llama-3.3-70b-instruct'
dropParams
Установить librechat в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл librechat?
LibreChat is a self-hosted, ChatGPT-style web chat that puts OpenAI, Anthropic, Google, OpenRouter, Ollama and other providers behind one login, with agents, MCP tools, file search and per-user spending budgets. Use when deploying LibreChat with Docker Compose, editing librechat.yaml or .env, adding a custom endpoint, connecting MCP servers, closing registration or adding SSO, creating users, or updating an instance. Trigger phrases: "set up LibreChat", "self-hosted ChatGPT for the team", "add Claude and GPT to one chat UI", "add an MCP server to LibreChat", "update LibreChat".
Как установить скилл librechat?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл librechat запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic