---
title: Deploy LibreChat with AI on Blossom
url: "/deploy/librechat/"
canonical_url: https://blossom88.com/deploy/librechat/
markdown_url: https://blossom88.com/deploy/librechat.md
summary: Deploy LibreChat with AI on Blossom. Run a private chat workspace with your
  model provider, managed MongoDB, and saved conversations.
categories:
- deployment
- ai
stack:
- Node.js
- Express
- React
- MongoDB
---

# Deploy LibreChat with AI on Blossom

[LibreChat](https://www.librechat.ai/) is a chat interface for working with
AI model providers. Sign in, choose a configured model, and keep conversations
in your own deployment.

## Ask Your Agent

> **Ask your AI agent:** Deploy LibreChat on Blossom for private chat with my model provider.
>
> Follow this guide: https://blossom88.com/deploy/librechat/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Your Chat Setup

| Part | Purpose |
|---|---|
| Chat Service | Sign-in, model selection, and conversations |
| Managed MongoDB | Accounts, messages, and saved settings |
| Your model provider | Generates responses |

Bring your model provider's API key; no local model or GPU is needed. Keep
Blossom Account access enabled, create the owner and disable open registration
for a private workspace. This recipe uses one chat instance.

![LibreChat displaying a saved conversation with a configured model.](/deploy/assets/images/librechat/conversation.png)

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Upstream requirements: [deployment requirements](https://www.librechat.ai/docs/local/docker).

Keep the site behind **Blossom Account access**. Create the initial owner,
then disable open registration unless you intend to accept new accounts.
Preserve authentication and credential-encryption secrets through updates.

[Source code](https://github.com/LibreChat-AI/LibreChat).

Create a prebuilt-image Environment, create MongoDB, and link it to the app:

    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data mongodb.yml --follow
    blossom environment_link:create --data mongo-link.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom service:create --data chat-service.yml
    blossom environment:deploy --id environment-100 --follow

Use a MongoDB Environment Link named `MONGO_URL`. At startup, export it as
`MONGO_URI`, the name LibreChat expects. Keep the supplied connection options
so the driver uses Blossom's private TLS connection.

Set `DOMAIN_CLIENT` and `DOMAIN_SERVER` from `BLOSSOM_SERVICE_URL`, or your
custom HTTPS domain. Listen on port `3080` and use `/health` for the HTTP check.
Preserve the image's supported startup command and non-root user.

Save `librechat.yaml` with the deployment and provide it at startup. Enable the presets menu
with `interface.presets: true`. Configure
only your intended providers and models. Keep `CREDS_KEY`, `CREDS_IV`,
`JWT_SECRET`, and `JWT_REFRESH_SECRET` stable, with formats required by the
selected release. Keep provider keys in environment variables.

This chat-only setup keeps records in MongoDB, logs to standard output, and
disables uploads and scheduled chats. Document retrieval, local files,
conversation search, and scheduled work
need their own storage and service configuration before you enable them.

</details>

## Start a Conversation

Select a configured model and send a message. Save your preferred settings as
a preset, then reopen the conversation. MongoDB keeps your messages and saved
settings across Container replacement.

<details class="optional-reading" markdown="1">
<summary>Updates and storage</summary>

Keep MongoDB, deployment configuration, and secrets. After Container
replacement, sign in again and confirm your previous messages and preset
remain, then continue the conversation.

This guide tests one chat instance. Follow LibreChat's current shared-state
requirements before adding replicas or background features.

</details>

## What You Get

- A private chat interface for your chosen model provider
- Accounts and conversation history in managed MongoDB
- Saved chat presets across Container replacement
- Regular App Capacity for the chat Service
