librechat

by joaquinito2051

Helm chartv1.9.0App v0.8.7Apache-2.0

A Helm chart for deploying LibreChat, an open-source, AI-powered chat application. Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active.

About this chart

LibreChat Helm Chart — Multi-Model AI Chat for OpenShift

Documentation & Screenshots: maximilianopizarro.github.io/librechat

A community Helm chart that deploys LibreChat as a unified chat interface for your existing inference services on Red Hat OpenShift — Granite, Qwen, Nemotron, or any vLLM model — with Red Hat UBI 9 certified images and Developer Sandbox support.

This Helm chart is designed exclusively for Red Hat OpenShift.

Key Features (v1.9.0)

  • LibreChat v0.8.7 — Chat projects, context usage gauge, agent skills (GitHub sync), settings redesign, Code Interpreter
  • Red Hat UBI 9 Container Image — 3-stage build on ubi9/nodejs-20-minimal pushed to quay.io/maximilianopizarro/librechat
  • LiteLLM Proxy Integration — Built-in OpenAI-compatible proxy for vLLM/KServe InferenceServices
  • Developer Sandbox Ready — Restricted SCCs, random UIDs, gp3-csi storage, RAG uploads via emptyDir
  • OpenShift AI Models — Connects to IBM Granite 3.1 8B, Qwen 3 8B, NVIDIA Nemotron Nano 9B v2
  • Chart Verifier Compliant — CI pipeline validates with Red Hat community chart-verifier
  • Full Stack — MongoDB 8.0.20, PostgreSQL (pgvector), Meilisearch, RAG API 0.5.3, optional Ollama

Architecture

┌─────────────────────────────────────────────────────────────┐
│                    OpenShift Cluster                         │
│                                                             │
│  ┌──────────────┐    ┌──────────────┐    ┌──────────────┐  │
│  │   LibreChat   │───▶│   LiteLLM    │───▶│  vLLM/KServe │  │
│  │   (UBI 9)     │    │   Proxy      │    │  Models      │  │
│  │   Port 3080   │    │   Port 4000  │    │  Port 8443   │  │
│  └──────┬───────┘    └──────────────┘    └──────────────┘  │
│         │                                                   │
│    ┌────┴────┐  ┌───────────┐  ┌────────────┐              │
│    │ MongoDB  │  │ PostgreSQL│  │ Meilisearch│              │
│    │  27017   │  │ (pgvector)│  │   7700     │              │
│    └─────────┘  │   5432    │  └────────────┘              │
│                 └─────┬─────┘                               │
│                       │                                     │
│                 ┌─────┴─────┐                               │
│                 │  RAG API   │                               │
│                 │   8000     │                               │
│                 └───────────┘                               │
└─────────────────────────────────────────────────────────────┘

Quick Start

Install on OpenShift

helm repo add librechat https://maximilianopizarro.github.io/librechat/
helm repo update
helm install librechat librechat/librechat

Install on Developer Sandbox

oc login --token=<your-token> --server=https://api.<cluster>.openshiftapps.com:6443

helm repo add librechat https://maximilianopizarro.github.io/librechat/
helm install librechat librechat/librechat -f values-sandbox.yaml

The sandbox deployment uses useServiceAccountToken: true by default, which auto-mounts the pod's ServiceAccount token for authenticating to the shared AI models (Granite, Qwen, Nemotron) via LiteLLM proxy. No manual token management required.

Install from Source

git clone https://github.com/maximilianoPizarro/librechat.git
cd librechat
helm repo add bitnami https://charts.bitnami.com/bitnami
helm dependency build
helm install librechat . -f values-sandbox.yaml

Container Image (Red Hat UBI 9)

A Red Hat UBI 9-based container image is available at quay.io/maximilianopizarro/librechat. It uses a 3-stage build: extracts the app from the official LibreChat image, rebuilds native modules on ubi9/nodejs-20, and packages on ubi9/nodejs-20-minimal.

PropertyValue
Imagequay.io/maximilianopizarro/librechat
Baseregistry.access.redhat.com/ubi9/nodejs-20-minimal
Sourceghcr.io/danny-avila/librechat:v0.8.7
Build3-stage: extract → rebuild native modules → minimal runtime
SCCRuns as non-root (UID 1000), restricted SCC compatible
CIGitHub Actions with redhat-actions/buildah-build

Build locally

podman build -t quay.io/maximilianopizarro/librechat:v0.8.7 \
  -f container/Containerfile \
  --build-arg LIBRECHAT_VERSION=v0.8.7 .

AI Model Configuration

LiteLLM Proxy (recommended)

LiteLLM is integrated into the Helm chart as an OpenAI-compatible proxy for vLLM/KServe InferenceServices. It includes its own OpenShift Route (enabled by default) and an admin API protected by a master key.

SettingDefaultDescription
litellm.masterKeysk-litellm-1234Master key for the LiteLLM admin API. Change in production.
litellm.route.enabledtrueCreates an OpenShift Route for external access
litellm.route.host'' (auto)Custom hostname for the route
litellm:
  enabled: true
  route:
    enabled: true
  masterKey: "sk-litellm-1234"
  models:
    - name: granite-3.1-8b
      modelId: isvc-granite-31-8b-fp8
      apiBase: "https://isvc-predictor.namespace.svc.cluster.local:8443/v1"

Access the LiteLLM admin UI via the route:

oc get route librechat-litellm -o jsonpath='{.spec.host}'

Cluster with ServiceAccount token (recommended)

Uses the pod's auto-mounted ServiceAccount token. No manual token management — the token refreshes automatically:

litellm:
  enabled: true
  useServiceAccountToken: true

The ServiceAccount needs permissions to access the InferenceService endpoints. For manual token override:

helm install librechat librechat/librechat \
  --set litellm.enabled=true \
  --set litellm.useServiceAccountToken=false \
  --set litellm.apiKey=$(oc whoami -t)

Developer Sandbox Models

The sandbox includes pre-configured models:

ModelIDEndpoint
IBM Granite 3.1 8Bisvc-granite-31-8b-fp8sandbox-shared-models.svc.cluster.local:8443
Qwen 3 8Bisvc-qwen3-8b-fp8sandbox-shared-models.svc.cluster.local:8443
NVIDIA Nemotron Nano 9B v2isvc-nemotron-nano-9b-v2-fp8sandbox-shared-models.svc.cluster.local:8443

Ollama (optional, local models)

ollama:
  enabled: true
# Then add to librechat.configYamlContent endpoints.custom:
#   - name: "Ollama"
#     apiKey: "${OPENAI_API_KEY}"
#     baseURL: "http://librechat-ollama:11434/v1"
#     models:
#       default: ["llama3.2"]
#       fetch: true

RamaLama (optional, Red Hat CPU Granite)

Lightweight in-cluster CPU inference using quay.io/ramalama/ramalama (llama-server) and a small IBM Granite GGUF. Disabled by default. On Developer Sandbox, prefer LiteLLM shared models instead.

ramalama:
  enabled: true
# Then add to librechat.configYamlContent endpoints.custom:
#   - name: "RamaLama Granite"
#     apiKey: "not-needed"
#     baseURL: "http://librechat-ramalama:8080/v1"
#     models:
#       default: ["granite-3.1-1b"]
#       fetch: true

Developer Sandbox Configuration

SettingValueReason
enableServiceLinksfalseAvoids environment variable conflicts
route.sccRoleDisabledtrueSandbox users cannot create SCC Roles
podSecurityContext{}No fsGroup (restricted SCC assigns random UID)
securityContext.runAsNonRoottrueRequired by restricted SCC
litellm.enabledtrueConnects to sandbox shared models
ollama.enabledfalseSaves resources; uses LiteLLM shared models
ramalama.enabledfalseLocal CPU Granite not needed; sandbox has shared models
*.persistence.storageClassgp3-csiSandbox default StorageClass
librechat-rag-api.persistence.enabledfalseAvoids PVC permission issues under random UIDs
librechat-rag-api.volumesemptyDirWritable /uploads for restricted SCC

Chart Components

ComponentVersionDefaultDescription
PostgreSQL (Bitnami)15.5.38EnabledPostgreSQL with pgvector for RAG embeddings
MongoDB (Bitnami)16.5.45EnabledApplication data storage (mongo:8.0.20)
Ollama1.26.0DisabledLocal LLM inference
RamaLama0.1.0DisabledRed Hat CPU Granite via llama-server (OpenAI-compatible)
Meilisearch0.7.0EnabledFull-text search engine
RAG API0.5.3EnabledRetrieval Augmented Generation (registry.librechat.ai)
LiteLLMv1.82.3DisabledOpenAI-compatible proxy for vLLM/KServe

Release Notes — v1.9.0

  • LibreChat v0.8.7 — Chat projects, context usage gauge, agent skills with GitHub sync, settings redesign, keyboard shortcuts, pinned conversations, Code Interpreter
  • RAG API 0.5.3 — Image registry moved to registry.librechat.ai; optional PVC via persistence.enabled
  • Sandbox permissions fix — RAG /uploads uses emptyDir under restricted SCC (random UID); no more PVC write failures
  • enableServiceLinks — Supported on the RAG API deployment (disabled in sandbox)
  • RamaLama subchart — Optional Red Hat CPU Granite (llama-server); disabled by default; sandbox uses LiteLLM shared models
  • Upstream highlights — Claude Fable 5 / GPT-5.5 model support, stronger OpenID/MCP/shared-link access controls, bundled Admin Panel

See the upstream changelog for the full LibreChat v0.8.7 feature list.

Chart Verification

Red Hat Community Helm Chart verification status (profile: community v1.1):

CheckStatus
chart-testingPass
has-readmePass
contains-testPass
has-kubeversionPass
not-contains-crdsPass
helm-lintPass
not-contain-csi-objectsPass
images-are-certifiedExempt (non-Red Hat app image)
contains-valuesPass
contains-values-schemaPass
required-annotations-presentPass

ArgoCD Deployment

apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
  name: librechat
  namespace: openshift-gitops
spec:
  generators:
    - list:
        elements:
          - name: librechat
            namespace: librechat
  template:
    metadata:
      name: '{{name}}'
    spec:
      project: default
      source:
        repoURL: 'https://github.com/maximilianoPizarro/librechat.git'
        targetRevision: main
        path: '.'
        helm:
          valueFiles:
            - values-sandbox.yaml
      destination:
        server: 'https://kubernetes.default.svc'
        namespace: '{{namespace}}'
      syncPolicy:
        automated:
          selfHeal: true
          prune: true
        syncOptions:
          - CreateNamespace=true

Requirements

RequirementVersion
OpenShift>= 4.12
Helm>= 3.8

Links


LibreChat Helm Chart — Maintained by maximilianoPizarro

LibreChat is licensed under MIT License. IBM Granite models are licensed under Apache 2.0.

Deploy librechat with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has librechat on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlibrechat is pinned at v1.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply