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
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.
DisagreeAgree
Login and comment with
I allow to create an account
When you login first time using a Social Login button, we collect your account public profile information shared by Social Login provider, based on your privacy settings. We also get your email address to automatically create an account for you in our website. Once your account is created, you'll be logged-in to this account.