librechat
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-minimalpushed toquay.io/maximilianopizarro/librechat - LiteLLM Proxy Integration — Built-in OpenAI-compatible proxy for vLLM/KServe InferenceServices
- Developer Sandbox Ready — Restricted SCCs, random UIDs,
gp3-csistorage, RAG uploads viaemptyDir - 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.
| Property | Value |
|---|---|
| Image | quay.io/maximilianopizarro/librechat |
| Base | registry.access.redhat.com/ubi9/nodejs-20-minimal |
| Source | ghcr.io/danny-avila/librechat:v0.8.7 |
| Build | 3-stage: extract → rebuild native modules → minimal runtime |
| SCC | Runs as non-root (UID 1000), restricted SCC compatible |
| CI | GitHub 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.
| Setting | Default | Description |
|---|---|---|
litellm.masterKey | sk-litellm-1234 | Master key for the LiteLLM admin API. Change in production. |
litellm.route.enabled | true | Creates 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:
| Model | ID | Endpoint |
|---|---|---|
| IBM Granite 3.1 8B | isvc-granite-31-8b-fp8 | sandbox-shared-models.svc.cluster.local:8443 |
| Qwen 3 8B | isvc-qwen3-8b-fp8 | sandbox-shared-models.svc.cluster.local:8443 |
| NVIDIA Nemotron Nano 9B v2 | isvc-nemotron-nano-9b-v2-fp8 | sandbox-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
| Setting | Value | Reason |
|---|---|---|
enableServiceLinks | false | Avoids environment variable conflicts |
route.sccRoleDisabled | true | Sandbox users cannot create SCC Roles |
podSecurityContext | {} | No fsGroup (restricted SCC assigns random UID) |
securityContext.runAsNonRoot | true | Required by restricted SCC |
litellm.enabled | true | Connects to sandbox shared models |
ollama.enabled | false | Saves resources; uses LiteLLM shared models |
ramalama.enabled | false | Local CPU Granite not needed; sandbox has shared models |
*.persistence.storageClass | gp3-csi | Sandbox default StorageClass |
librechat-rag-api.persistence.enabled | false | Avoids PVC permission issues under random UIDs |
librechat-rag-api.volumes | emptyDir | Writable /uploads for restricted SCC |
Chart Components
| Component | Version | Default | Description |
|---|---|---|---|
| PostgreSQL (Bitnami) | 15.5.38 | Enabled | PostgreSQL with pgvector for RAG embeddings |
| MongoDB (Bitnami) | 16.5.45 | Enabled | Application data storage (mongo:8.0.20) |
| Ollama | 1.26.0 | Disabled | Local LLM inference |
| RamaLama | 0.1.0 | Disabled | Red Hat CPU Granite via llama-server (OpenAI-compatible) |
| Meilisearch | 0.7.0 | Enabled | Full-text search engine |
| RAG API | 0.5.3 | Enabled | Retrieval Augmented Generation (registry.librechat.ai) |
| LiteLLM | v1.82.3 | Disabled | OpenAI-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 viapersistence.enabled - Sandbox permissions fix — RAG
/uploadsusesemptyDirunder 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):
| Check | Status |
|---|---|
| chart-testing | Pass |
| has-readme | Pass |
| contains-test | Pass |
| has-kubeversion | Pass |
| not-contains-crds | Pass |
| helm-lint | Pass |
| not-contain-csi-objects | Pass |
| images-are-certified | Exempt (non-Red Hat app image) |
| contains-values | Pass |
| contains-values-schema | Pass |
| required-annotations-present | Pass |
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
| Requirement | Version |
|---|---|
| OpenShift | >= 4.12 |
| Helm | >= 3.8 |
Links
- LibreChat — Official documentation
- OpenShift MCP Server — AI model proxy
- n8n Helm Chart — Workflow automation companion
- Artifact Hub — Helm chart registry
- Developer Sandbox — Free OpenShift environment
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartlibrechat is pinned at v1.9.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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