---
title: "Deploy Latitude"
description: "Open-source AI Agent Monitoring Platform"
category: "AI/ML"
url: https://railway.com/deploy/latitude
---

# Deploy Latitude

Open-source AI Agent Monitoring Platform

**[Deploy Latitude on Railway](https://railway.com/template/latitude)**

- **Creator:** Gerard Clos's Projects
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

### clickhouse https://devicons.railway.app/clc

- **Image:** clickhouse/clickhouse-server:26.2
- **Start command:** `sh -c "mkdir -p /etc/clickhouse-server/config.d && printf '<clickhouse><listen_host>::</listen_host></clickhouse>' > /etc/clickhouse-server/config.d/listen.xml && exec /entrypoint.sh"`

### workflows https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/workflows:latest

### temporal https://temporal.io/favicon.svg

- **Image:** temporalio/auto-setup:1.27.2
- **Start command:** `sh -c 'ip=$(getent hosts "$RAILWAY_PRIVATE_DOMAIN" | head -n1 | tr -s " " | cut -d" " -f1); export BIND_ON_IP="$ip"; exec /etc/temporal/entrypoint.sh autosetup'`

### ingest https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/ingest:latest
- **Public domain:** Yes

### web https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/web:latest
- **Public domain:** Yes

### redis_bullmq https://devicons.railway.app/redis

- **Image:** redis:7
- **Start command:** `redis-server --protected-mode no --maxmemory-policy noeviction --appendonly yes`

### api https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/api:latest
- **Public domain:** Yes

### seaweedfs https://seaweedfs.com/images/seaweed-logo.png

- **Image:** chrislusf/seaweedfs:4.32
- **Start command:** `sh -c '( until echo "s3.bucket.list" | weed shell >/dev/null 2>&1; do sleep 1; done; echo "s3.bucket.create -name latitude" | weed shell ) & exec weed server -dir=/data -s3 -s3.port=8333 -ip.bind=::'`

### redis_cache https://devicons.railway.app/redis

- **Image:** redis:7
- **Start command:** `redis-server --protected-mode no`

### postgres https://devicons.railway.app/postgres

- **Image:** pgvector/pgvector:pg16
- **Start command:** `sh -c 'printf "CREATE USER %s WITH PASSWORD '\''%s'\''; GRANT CONNECT ON DATABASE %s TO %s;" "$POSTGRES_RUNTIME_USER" "$POSTGRES_RUNTIME_PASSWORD" "$POSTGRES_DB" "$POSTGRES_RUNTIME_USER" > /docker-entrypoint-initdb.d/10-latitude-runtime-user.sql && exec docker-entrypoint.sh postgres -c wal_level=logical'`

### workers https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/workers:latest

### migrations https://framerusercontent.com/images/l5c1DNVxQ3iAvTDihvg9pFw2l2k.png

- **Image:** latitudedata/migrations:latest

## Documentation

# Deploy and Host Latitude on Railway

Latitude is the open-source observability platform for AI agents and LLMs — "Sentry, but for agents." It groups failing traces into tracked issues, runs human-aligned evaluations, and makes every trace semantically searchable. Send OpenTelemetry traces from any model provider or framework and see what will break next before your users do.

## About Hosting Latitude

This template deploys the complete Latitude stack: five application services (web UI, public API / MCP server, OTLP trace ingestion, background workers, and Temporal workflow workers), a one-shot database-migrations job, and all backing infrastructure — Postgres with pgvector, ClickHouse, two Redis instances (cache + durable queue), a Postgres-backed Temporal server, and a SeaweedFS object store. Everything runs from Latitude's published Docker images over Railway's private network. On the first deploy the services initialize the databases and Temporal schema and then settle. The encryption keys and infrastructure passwords are generated for you; you add an email transport and optional AI provider keys.

## Common Use Cases

- Monitor and debug production AI agents — failing traces grouped into tracked issues with status, size, and trend, plus alerts when new issues appear or escalate.
- Evaluate and improve LLM output quality with human-aligned evals and an alignment score that tracks drift from human judgment over time.
- Explore agent traces by meaning with semantic search across 100% of traffic, and query everything from your coding agent through the built-in MCP server.

## Dependencies for Latitude Hosting

- PostgreSQL (with the pgvector extension) — primary store
- ClickHouse — span/telemetry OLAP store
- Redis ×2 — cache + durable BullMQ queue
- Temporal — workflow engine (Postgres-backed, no Elasticsearch/Cassandra)
- SeaweedFS — S3-compatible object storage

All of the above are bundled in this template. Optional external dependencies you provide: an email transport (SMTP, Mailgun, or SendGrid) for magic-link sign-in, and AI provider keys (e.g. Voyage, OpenAI, Amazon Bedrock) to enable AI features.

### Deployment Dependencies

- [Latitude documentation](https://docs.latitude.so)
- [Self-host guide](https://docs.latitude.so/deployment/overview)
- [Configuration reference](https://docs.latitude.so/deployment/configuration)
- [Published Docker images (Docker Hub)](https://hub.docker.com/u/latitudedata)
- [Source on GitHub](https://github.com/latitude-dev/latitude-llm)

### Implementation Details

After the stack is up:

1. Add an email transport on the `web`, `api`, and `ingest` services (e.g. `LAT_MAILGUN_*` or `LAT_SMTP_*`) — magic-link sign-in needs it.
2. Open the `web` service's public URL and register; the first account creates your organization.
3. (Optional) Add AI provider keys to turn on AI features — `LAT_VOYAGE_API_KEY` (default embeddings + reranking), plus a generation provider such as `LAT_OPENAI_API_KEY` with `LAT_AI_GENERATION_PROVIDER` / `LAT_AI_GENERATION_MODEL`. Core trace ingestion and viewing work without any keys.

## Why Deploy Latitude on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Latitude on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/latitude
