---
title: "Deploy Rift"
description: "Rift Its a OSS AI Chat for teams"
category: "AI/ML"
url: https://railway.com/deploy/rift-1
---

# Deploy Rift

Rift Its a OSS AI Chat for teams

**[Deploy Rift on Railway](https://railway.com/template/rift-1)**

- **Creator:** Compound
- **Category:** AI/ML
- **Total deploys:** 11

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18
- **Start command:** `docker-entrypoint.sh postgres -c wal_level=logical`

### Rift https://rift.mx/logo-dark.svg

- **Source:** https://github.com/Compound-inc/rift
- **Start command:** `bun run start`
- **Health check:** /health
- **Public domain:** Yes

### Zero https://pbs.twimg.com/profile_images/1868725523267878912/BlAYEcqM_400x400.jpg

- **Image:** rocicorp/zero:1.3.0
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### qdrant https://qdrant.tech/img/brand-resources-logos/qdrant-brandmark-red.svg

- **Image:** qdrant/qdrant:dev

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Rift on Railway

Rift is a AI Chat app for teams. It gives teams one place to chat with every AI model, work with files, organize conversations, and manage access inside a shared workspace. It supports major AI providers, native model tools, and Zero Data Retention controls for providers

## About Hosting Rift

Hosting Rift on Railway gives you a simple way to run the full Rift stack in one place. This template includes the main web app, database, Redis, Qdrant, storage bucket, and Zero, so the main infrastructure is already set up for you.
After deployment, you mainly need to provide a setup token so the first user can claim the instance and create the first admin account, plus an API key for model access. 

Self-hosting Rift on Railway is a good fit for teams that want more control over their data, privacy settings, provider configuration, and overall environment without having to hasle every service manually.

## Common Use Cases

- Running a private AI workspace for a company, school, or organization
- Asking questions over internal files and knowledge bases
- Using multiple AI providers from one interface
- Managing access to AI tools in a shared team environment
- Self-hosting an AI workspace with more control over privacy and provider-level Zero Data Retention settings

## Dependencies for Rift Hosting

- PostgreSQL database
- Redis
- Qdrant
- Storage bucket
- Zero cache / sync layer
- AI Gateway access for model providers

### Deployment Dependencies

- [Rift GitHub Repository](https://github.com/Compound-inc/rift)

### Implementation Details

Required environment variables:

```env
SELF_HOSTED_SETUP_TOKEN=your-setup-token
AI_GATEWAY_API_KEY=your-ai-gateway-api-key
````

`SELF_HOSTED_SETUP_TOKEN` is required during signup so the first user can claim the instance and create the first admin account.

`AI_GATEWAY_API_KEY` is required so Rift can connect to supported AI models. You can get it visting Vercel AI gateway website

This template already includes rest of the environment variables needed to run Rift, including the main web app, database, Redis, Qdrant, storage bucket, and Zero cache.

## Why Deploy Rift 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 Rift 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/rift-1
