Prerequisites
Before you begin, ensure you have:- Docker Desktop (v20.10+) installed and running
- At least one AI provider API key (OpenAI, Anthropic, or Google)
- 4GB of free RAM and 10GB of disk space
LibreChat supports multiple AI providers. You can start with one and add more later.
Installation
Configure your API keys
Open the
.env file in your text editor and add your API keys. At minimum, configure one AI provider:Set user permissions (Linux/macOS only)
If you’re on Linux or macOS, set the correct user permissions:Then update these values in your
.env file:Start LibreChat
Launch all services using Docker Compose:This command will:
- Download the LibreChat container images (~2-3GB)
- Start MongoDB, Meilisearch, RAG API, and the main LibreChat application
- Initialize the database
The first run takes 5-10 minutes to download images. Subsequent starts are much faster (under 30 seconds).
Access LibreChat
Once the containers are running, open your browser and navigate to:You’ll see the LibreChat login page. Click Sign up to create your account.
Create your first account
Fill in the registration form:
- Email address
- Name
- Username
- Password (minimum 8 characters)
What’s Next?
Now that LibreChat is running, explore these features:Configure AI Endpoints
Add more AI providers and customize model settings
Create Agents
Build custom AI assistants with specialized tools and capabilities
Enable Web Search
Let your AI search the internet for real-time information
Set Up Authentication
Configure OAuth, LDAP, or SSO for your team
Troubleshooting
Port 3080 is already in use
Port 3080 is already in use
If port 3080 is already taken on your system, change it in your Then restart the containers:Access LibreChat at
.env file:http://localhost:3090 instead.Docker containers won't start
Docker containers won't start
Check if all containers are running:View logs for errors:Common issues:
- Docker Desktop not running (start it first)
- Insufficient disk space (free up at least 10GB)
- Port conflicts (change ports in
.env)
'API key not provided' error
'API key not provided' error
This means LibreChat can’t find your API key. Verify:
- You’ve replaced
user_providedwith your actual key in.env - There are no extra spaces or quotes around the key
- You’ve restarted the containers after editing
.env:
Database connection errors
Database connection errors
If you see MongoDB connection errors:
Images or files not uploading
Images or files not uploading
Check that the required directories exist and have proper permissions:Then restart:
Slow response times
Slow response times
If AI responses are slow:Ensure Docker has at least 4GB of RAM allocated in Docker Desktop settings.
- Check your internet connection
- Verify your API key has sufficient quota/credits
- Try a faster model (e.g.,
gpt-4o-miniinstead ofgpt-4o) - Check container resource usage:
Managing LibreChat
Getting Help
Need assistance? Here are your resources:- Documentation: librechat.ai/docs
- Discord Community: discord.librechat.ai
- GitHub Issues: github.com/danny-avila/LibreChat/issues
- Configuration Guide: Environment Variables