Self-host Langfuse
An open-source LLM engineering platform: traces for LLM calls and agents, prompt management and versioning, evaluations (including LLM-as-judge), datasets and a playground. Its SDKs and OpenTelemetry ingest feed a Postgres + ClickHouse + Redis + S3-compatible-storage stack, so it is a real multi-service deployment, not a single container.
Key facts
Pick Langfuse when you are building LLM apps or agents and need traces, prompt versioning and evaluations on infrastructure you control. It is the most capable open-source option here for LLM-specific observability, but it is a real multi-service stack, not a one-container tool — if you only need general metrics and logs, Grafana or OpenObserve are far lighter.
What you need
- Any VPS with at least 4096 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About an afternoon — budget time for troubleshooting
Paid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# Langfuse — upstream docker-compose.yml from the v4.57.0 tag, secrets generated into .env (compose reads it automatically)
git clone --depth=1 --branch v4.57.0 https://github.com/langfuse/langfuse.git && cd langfuse
PG=$(openssl rand -hex 16); S3=$(openssl rand -hex 16)
cat > .env <<EOF
POSTGRES_PASSWORD=$PG
DATABASE_URL=postgresql://postgres:$PG@postgres:5432/postgres
SALT=$(openssl rand -hex 16)
ENCRYPTION_KEY=$(openssl rand -hex 32)
NEXTAUTH_SECRET=$(openssl rand -hex 32)
NEXTAUTH_URL=http://SERVER_IP:3000
CLICKHOUSE_PASSWORD=$(openssl rand -hex 16)
REDIS_AUTH=$(openssl rand -hex 16)
MINIO_ROOT_PASSWORD=$S3
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY=$S3
LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY=$S3
LANGFUSE_S3_BATCH_EXPORT_SECRET_ACCESS_KEY=$S3
TELEMETRY_ENABLED=false
EOF
docker compose up -d # → http://SERVER_IP:3000 (sign up: the first account becomes the owner)
# web (3000) and MinIO (9090, used for media uploads) are published on all interfaces, no TLS; every other service binds 127.0.0.1What you take on
Langfuse's self-hosted footprint and licence structure are the things to check first: