Deploy LibreChat on Northflank

Published 19th November 2025

LibreChat is an open source chat platform designed for developers and teams to run AI- and vector-powered chat applications with complete control over infrastructure and data. It’s widely used for building custom chatbots, knowledge retrieval systems, and conversational AI applications.

With Northflank, you can deploy LibreChat in minutes using the LibreChat stack template. This prebuilt setup handles scaling, networking, storage, and security, so you can focus on building chat applications instead of managing servers.

What is LibreChat?

If you’re new to the platform, LibreChat is a self-hosted chat system that integrates database, search, and retrieval-augmented generation (RAG) capabilities into a single environment.

You can store chat data in PostgreSQL and MongoDB, power search using Meilisearch, and run the RAG API for document-based responses. Many developers host LibreChat on Docker, sync configuration with GitHub, and use it to power AI chat applications or internal knowledge bots that run 24/7.

What this template deploys

The LibreChat stack template provisions everything needed for a production-ready chat application environment.

It includes:

  • PostgreSQL addon for structured data, user credentials, and runtime storage
  • MongoDB addon for flexible document storage
  • Meilisearch service for fast search and vector retrieval
  • RAG API service to enable retrieval-augmented responses
  • LibreChat service deployment running the official Docker image
  • Secret groups for securely managing database credentials, API keys, and runtime environment variables

This setup ensures reliable chat functionality by separating storage, search, and API layers while keeping the main service responsive under load.

How to get started

  1. Create an account on Northflank
  2. Click deploy LibreChat now
  3. Click deploy stack to save and run the LibreChat template
  4. Select the LibreChat service once the deployment finishes
  5. Open the public URL to access LibreChat and start building conversational AI applications

Key features

This stack template gives you a full-featured setup for LibreChat:

  • Run AI- and vector-powered chat applications with persistent storage
  • Store structured and unstructured data securely in PostgreSQL and MongoDB
  • Perform fast search and retrieval using Meilisearch
  • Serve retrieval-augmented responses through the RAG API
  • Manage API keys, secrets, and environment variables securely
  • Scale chat applications without manually handling infrastructure

It follows production best practices and can integrate seamlessly with GitHub repositories for version-controlled deployment and configuration updates.

How it works

  • LibreChat Service – Hosts the chat platform, frontend, and API for managing conversations
  • PostgreSQL Database – Stores structured chat data, user credentials, and runtime information
  • MongoDB Database – Stores documents, knowledge base entries, and unstructured chat data
  • Meilisearch – Powers fast search and vector-based retrieval for chat responses
  • RAG API – Handles retrieval-augmented generation for context-aware responses
  • Environment Variables – Automatically configured for secure, production-ready operation, including database credentials, API keys, and configuration settings

Conclusion

Deploying LibreChat on Northflank is the fastest way to run a modern, self-hosted chat platform that is scalable, secure, and developer-friendly.

You now have a production-ready environment for AI and vector-powered chat applications, with everything you need to build conversational experiences without worrying about infrastructure.

Share this template with your network
X