LibreChat on Railway
Private ChatGPT-style chat for many model providers with agents and file chat, on Railway.
LibreChat is an open-source AI chat platform. One interface connects to OpenAI, Anthropic, Google, OpenRouter and other providers, with multi-user accounts, conversation search, agents with tools and MCP servers, and chat with uploaded documents through a RAG API.
Teams use it as a private alternative to hosted chat products, keeping conversations in their own database and managing who has an account. It is often compared with Open WebUI.
LibreChat is released under the MIT license.
What LibreChat can do
- Multiple providers in one interface
- Agents with tools and MCP servers
- File chat through a RAG API
- Full-text conversation search
- Multi-user accounts with an administrator
- Per-user or shared model API keys
What people use it for
- A private ChatGPT-style workspace for a team
- One interface for several providers with per-user keys
- Shared agents inside a team
- Chatting with PDFs and other documents
- A controlled AI entry point for a company
Videos
Running LibreChat on Railway
The LibreChat template deploys the app (v0.8.8) with MongoDB, Meilisearch for search and the RAG API backed by Postgres with pgvector, with images pinned and secrets generated. Uploads and avatars live on a volume and an administrator account is created on first start. Idle RAM is measured at about 0.35 GB for LibreChat and 0.5 GB for MongoDB, with the other services smaller, so MongoDB and the app drive cost.
LibreChat templates on Railway
Tracklayer templates are listed first. Other LibreChat templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about LibreChat
Do I need model API keys to deploy?
No. By default each user adds their own key in the chat interface, and you can switch to shared keys later.
How do I log in the first time?
Sign in with LIBRECHAT_ADMIN_EMAIL (default admin@example.com) and the generated LIBRECHAT_ADMIN_PASSWORD from the LibreChat service's Variables. The account has the ADMIN role.
Can strangers register?
The administrator is created on first start so the instance cannot be claimed by an outsider. Registration settings can be adjusted through LibreChat's configuration.
What drives the cost?
The services running together: the app, MongoDB, Meilisearch, the RAG API and Postgres. MongoDB uses the most idle memory.
Where are files stored?
Uploads and avatars are on a Railway volume; document embeddings are in Postgres with pgvector.
Guides
Similar apps
Tracklayer maintains the templates marked as such; LibreChat is a trademark of its owners and this site is not affiliated with them.