LibreChat Multi-Provider
Deploy LibreChat on Clore.ai — a powerful, self-hosted ChatGPT alternative with multi-provider AI support, conversation branching, and plugin ecosystem on affordable GPU cloud infrastructure.
Overview
LibreChat is an enhanced, open-source ChatGPT-like interface with 22K+ GitHub stars. It faithfully reimagines the ChatGPT experience while adding features the original lacks — multi-provider switching within the same conversation, conversation branching/forking, a rich plugin system, file uploads with vision, and a full code interpreter sandbox.
Why run LibreChat on Clore.ai?
True multi-provider in one UI — Switch between GPT-4, Claude 3.5, Gemini Pro, Mistral, and local Ollama models mid-session.
No GPU needed for the app — LibreChat is a Node.js application; it only needs compute for inference if you attach a local LLM backend.
Cost-effective self-hosting — Clore.ai pricing starts at fractions of a cent per minute, ideal for running a personal AI hub.
Persistent conversations — MongoDB stores your full chat history server-side, unlike browser-local solutions.
Team-friendly — Multi-user support with individual API key management.
Key Features
Multi-provider
OpenAI, Anthropic, Google, Azure, Mistral, Ollama, OpenRouter
Conversation branching
Fork and explore alternative responses
Plugins
Bing search, Zapier, WolframAlpha, custom tools
File uploads
Images, PDFs, documents with vision analysis
Code interpreter
Execute Python in an isolated sandbox
Artifacts
Render HTML, React, and Markdown outputs
Presets
Save and share custom model configurations
Requirements
Server Specifications
GPU
None required
RTX 3090 (if adding Ollama)
Only for local LLM inference
VRAM
—
24 GB
For local models via Ollama
CPU
2 vCPU
4 vCPU
Node.js + MongoDB
RAM
4 GB
8 GB
MongoDB benefits from more RAM
Storage
20 GB
50+ GB
File uploads, model cache if local
Clore.ai Pricing Reference
CPU-focused (4 vCPU, 8 GB RAM)
~$0.05–0.10/hr
LibreChat + external API providers
RTX 3090 (24 GB VRAM)
$0.07–0.21/hr
LibreChat + Ollama local inference
RTX 4090 (24 GB VRAM)
$0.14–0.42/hr
LibreChat + faster Ollama/vLLM
💡 Cost tip: If you only use LibreChat to route API calls to OpenAI/Anthropic/Google, you only pay for the Clore.ai server compute (cheap), not the inference hardware. Budget ~$0.05–0.15/hr for a reliable LibreChat host.
Prerequisites
Clore.ai server with SSH access
Docker + Docker Compose (pre-installed on Clore.ai)
Git (pre-installed on Clore.ai)
At least one LLM API key or a local Ollama/vLLM backend
Quick Start
Method 1: Docker Compose (Official — Recommended)
LibreChat's official deployment uses Docker Compose with MongoDB and MeiliSearch for full functionality.
Step 1: Connect to your Clore.ai server
Step 2: Clone the repository
Step 3: Configure environment
Set at minimum:
Generate secrets quickly:
Step 4: Start the stack
This starts:
LibreChat— main application on port 3080MongoDB— conversation and user storageMeiliSearch— fast conversation search
Step 5: Verify and access
Open in browser:
Register a new account on the login page.
Method 2: Pre-built Docker Image (Fastest)
If you want to skip building from source:
Method 3: Single-Container Quick Test
For a rapid proof-of-concept without MongoDB (limited functionality):
⚠️ This method requires a separate MongoDB instance. Use Method 1 for a complete setup.
Configuration
Adding AI Providers
Edit librechat.yaml (create it in the project root) for advanced provider configuration:
Mount this file in your docker-compose.yml:
Environment Variables Reference
MONGO_URI
MongoDB connection string
mongodb://mongodb:27017/LibreChat
JWT_SECRET
JWT signing secret (64+ chars)
Random hex string
OPENAI_API_KEY
OpenAI key
sk-...
ANTHROPIC_API_KEY
Anthropic key
sk-ant-...
GOOGLE_KEY
Google Gemini key
AI...
ALLOW_REGISTRATION
Enable public signup
true / false
ALLOW_EMAIL_LOGIN
Enable email/password login
true
DEBUG_LOGGING
Verbose logs
true
SEARCH
Enable MeiliSearch
true
MEILI_MASTER_KEY
MeiliSearch API key
Random string
Restricting Registration
For private use, disable public registration after creating your account:
Then restart: docker compose restart LibreChat
Enabling Code Interpreter
The code interpreter runs Python in an isolated Docker container. Ensure Docker socket is accessible.
File Upload Configuration
GPU Acceleration
LibreChat does not use GPU directly — it's a routing layer. GPU acceleration applies to any local inference backend you connect to it.
Connecting to Ollama (Same Server)
If running Ollama on the same Clore.ai server (see Ollama Guide):
Connecting to vLLM (High Throughput)
For high-concurrency deployments (see vLLM Guide):
In librechat.yaml:
GPU Sizing for Local Models
7–8B (Q4)
6 GB
RTX 3090
$0.07–0.21/hr
13B (Q4)
10 GB
RTX 3090
$0.07–0.21/hr
34B (Q4)
24 GB
RTX 4090
$0.14–0.42/hr
70B (Q4)
48 GB
2× RTX 3090
$0.14–0.42/hr
Tips & Best Practices
Cost Management on Clore.ai
Backup Strategy
Restoring from Backup
Securing LibreChat
Always set strong, unique values for
JWT_SECRETandCREDS_KEYDisable registration after initial user creation:
ALLOW_REGISTRATION=falseUse a reverse proxy (nginx/Caddy) with HTTPS for production
Regularly update the Docker image:
docker compose pull && docker compose up -d
Nginx Reverse Proxy (Optional)
Troubleshooting
Port 3080 not accessible
MongoDB connection refused
JWT / Authentication errors
Ollama models not appearing
Out of disk space
Update to latest version
Further Reading
LibreChat Documentation — complete configuration reference
LibreChat GitHub — source, issues, changelog
LibreChat Docker Hub — image tags
Running Ollama on Clore.ai — local LLM backend
Running vLLM on Clore.ai — high-throughput inference
GPU Comparison Guide — choosing the right GPU tier
LibreChat Config File Reference —
librechat.yamlschema
Last updated
Was this helpful?