Install LibreChat Locally Using npm
Prerequisites
- Node.js 18+: https://nodejs.org/en/download
- Git: https://git-scm.com/download/
- MongoDB (Atlas or Community Server)
Installation Steps
Preparation
Run the following commands in your terminal:
Clone the Repository
git clone https://github.com/danny-avila/LibreChat.gitNavigate to the LibreChat Directory
cd LibreChatCreate a .env File from .env.example
cp .env.example .envNote: If you’re using Windows 10, you might need to use
copyinstead ofcp.
Update the MONGO_URI
Important: Edit the newly created `.env` file to update the `MONGO_URI` with your own MongoDB instance URI.❗
Update the MONGO_URI
Build and Start
Once you’ve completed the preparation steps, run the following commands:
Install dependencies
npm ciBuild the Frontend
npm run frontendStart LibreChat!
npm run backend🎉
Access LibreChat!
🔥
Tip
Update LibreChat
To update LibreChat to the latest version, run the following commands:
Pull latest project changes
git pullUpdate dependencies
npm ciRebuild the Frontend
npm run frontendStart LibreChat!
npm run backendAdditional Setup
Unlock additional features by exploring our configuration guides to learn how to set up:
- Meilisearch integration
- RAG API connectivity
- Custom endpoints
- Other advanced configuration options
- And more
This will enable you to customize your LibreChat experience with optional features.
see also: