---
tags: [infrastructure, server, gcp, librechat, oliver-internal]
updated: 2026-04-24
---

# LibreChat Servers (Dev + Prod)

## librechat-dev

> SSH alias: `librechat-dev` → `vadym.samoilenko@10.220.168.2:22`
> Key: `~/.ssh/id_rsa_vadym`

- **Hostname**: optical-librechat-dev.europe-west2-b.c.optical-414516.internal
- **Platform**: GCP europe-west2-b
- **OS**: Ubuntu 24.04 LTS
- **Disk**: 116 GB / ~58 GB used (50%)

### Apps in `/opt/`

| Dir | Purpose |
|-----|---------|
| LibreChat | LibreChat app (Node.js/React) |
| LibreCodeInterpreter | Code execution sandbox for LibreChat |
| librechat-analytics | Analytics pipeline |
| librechat-balances | Token balance tracking |
| site24x7 | Monitoring agent |

### Ports

| Port | Service |
|------|---------|
| 80 / 443 | — (SSL, no nginx sites-enabled found — likely nginx.conf inline or traefik) |
| 3080 | LibreChat main app |
| 3001 / 3002 | LibreChat workers/API |
| 6379 | Redis |
| 6791 | Internal |
| 8000 | Analytics / balance API |
| 8888 | Jupyter / Code Interpreter |
| 9000 / 9001 | Code Interpreter |

### Key Services (systemd)

- elastic-collector.service, filebeat.service, metricbeat.service — log/metric shipping to Elasticsearch
- site24x7monagent.service — uptime monitoring
- docker.service — Docker engine (no containers shown but containerd running)

---

## librechat-prod

> SSH alias: `librechat-prod` → `vadym.samoilenko@10.220.168.4:22`
> Key: `~/.ssh/id_rsa_vadym`

- **Hostname**: optical-librechat.europe-west2-c.c.optical-414516.internal
- **Platform**: GCP europe-west2-c
- **OS**: Ubuntu 24.04 LTS
- **Disk**: 484 GB / 313 GB used (65%) — **⚠ getting full**

### Apps in `/opt/`

| Dir | Purpose |
|-----|---------|
| LibreChat | LibreChat production app |
| LibreCodeInterpreter | Code execution sandbox |
| Librechat-backups | Backup storage |
| agent-sync | Agent synchronization service |
| librechat-analytics | Analytics |
| librechat-balances | Token balance tracking |

### Ports

| Port | Service |
|------|---------|
| 443 | HTTPS (SSL) |
| 3080 | LibreChat app |
| 3001 / 3002 | LibreChat workers |
| 5001 | mongodb-api (custom API on top of MongoDB) |
| 6379 | Redis |
| 8000 | Internal API |
| 9000 / 9001 | Code Interpreter |
| 20201/20202 | Monitoring agents |
| 27017 | MongoDB (⚠ exposed publicly — confirm firewall rules) |

### Key Services (systemd)

- **mongodb-api.service** — custom MongoDB REST API
- google-cloud-ops-agent — GCP metrics/logging
- filebeat, metricbeat — Elastic log shipping
- site24x7monagent — uptime monitoring

---

## Key Takeaways

- librechat-prod disk is **65% full** on a 484 GB disk (313 GB used) — monitor backups
- MongoDB :27017 on prod is listening on all interfaces — verify GCP firewall
- Both servers use SSL but no nginx sites-enabled found — likely nginx.conf inline or cert-manager
- LibreCodeInterpreter provides sandboxed code execution (port 8888 Jupyter + 9000/9001)
- Many developers have home dirs on both servers (team-wide access)

## Related

- [[wiki/infrastructure/ssh-aliases|ssh-aliases]]
- [[wiki/infrastructure/server-optical|server-optical]]
