Setup and install LibreChat on Ubuntu 24.04 running on Docker in Azure, AWS or Google GCP. AI chat platform to serve all AI conversations in one place with a familiar ChatGPT interface. This Web UI offers vast customization, supporting numerous AI providers, services, and integrations. Serves all AI Conversations in one place with a familiar interface, innovative enhancements, for as many users as you need.
Self-Host LibreChat in The Cloud
Setup LibreChat on Azure
Deploy LibreChat on Ubuntu 24.04 in Azure
Setup LibreChat on AWS
Deploy LibreChat on Ubuntu 24.04 in AWS
Setup LibreChat on GCP
Deploy LibreChat on Ubuntu 24.04 in GCP
Getting Started with LibreChat
Once your LibreChat server has been deployed, the following links explain how to connect to a Linux VM:
Once you’ve got your API Key, you will need to update the LibreChat .env file as follows. Run the following command to open the .env file.
sudo nano /usr/local/librechat/LibreChat/.env
Scroll down and under your chosen AI provider, for example Open AI, add you API key secret to the following field:
Â
OPENAI_API_KEY=
Â
If its commented out #. Remove the hash #.
Â
Next remove the comment # next to OPENAI_MODELS=
Â
So it should look like this in my example:
Save and exit the file. Then reload your browser and log back into LibreChat. You should now be able to use the chat. If you get any errors, check your local log file located:
Â
/usr/local/librechat/LibreChat/logs
Â
Common error you may receive which relates to LibreChat or API key is not being setup correctly:
Â
Something went wrong. Here’s the specific error message we encountered: An error occurred while processing your request. Please contact the Admin.
Â
First check the error log. This could be related to not setting up API key correctly (check you’ve added it correctly to your .env file and also check you’ve enabled the model you want to use by removing the # symbol) or you have reached your Open AI budget limit and needs topping up.
LibreChat File Locations
LibreChat is installed in the following directory:
Â
/usr/local/librechat/LibreChat
Â
Logs can be found in:
Â
/usr/local/librechat/LibreChat/logs
Â
Environment File is located:
Â
/usr/local/librechat/LibreChat/.env
LibreChat Firewall Ports
By default LibreChat runs as a Docker container on the following port:
Â
TCP3080
Â
The links below explain how to modify / create firewall rules depending on which cloud platform you are using.
If you have issues with getting the server up and running on any of the cloud platforms. Contact us directly.
Â
Disclaimer:Â LibreChat is licensed under MIT license. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.
00votes
Article Rating
Subscribe
Please login to comment
1 Comment
Most Voted
NewestOldest
Inline Feedbacks
View all comments
Sebastian Schroen
Member
4 months ago
Just gave it a try on GCP, great work, thank you. One question: Did you, by any chance, look into the RAG API?
Just gave it a try on GCP, great work, thank you. One question: Did you, by any chance, look into the RAG API?
https://www.librechat.ai/docs/configuration/rag_api#default-configuration