Railway

Deploy Ghostlight Basic

Ghostlight AI Basic companion

Deploy Ghostlight Basic

Ghostlight Basic

Just deployed

/qdrant/storage

/var/lib/postgresql/data

Just deployed

Deploy and Host Ghostlight Basic on Railway

Ghostlight Basic is a self-hosted AI companion starter system for Discord, powered by OpenRouter, PostgreSQL, and Qdrant memory storage. It gives users a private companion dashboard, configurable personality settings, persistent memory, and Discord bot connectivity in a lightweight deployable package designed for personal companions, client builds, and custom hosted AI experiences.

About Hosting Ghostlight Basic

Hosting Ghostlight Basic on Railway gives each user their own private deployment with a dedicated app service, PostgreSQL database, and Qdrant vector memory store. During deployment, users provide their own Discord bot credentials, OpenRouter API key, timezone, and admin dashboard password. Railway handles the infrastructure, networking, service orchestration, database hosting, and environment variable setup. Once deployed, users can access their Ghostlight dashboard, connect their Discord bot, and begin configuring their companion without managing servers manually.

Common Use Cases

  • Deploying a private AI companion connected to a personal Discord server
  • Hosting a client-ready Ghostlight companion instance with its own memory and dashboard
  • Creating a lightweight self-hosted AI companion starter build for testing, customization, or expansion

Dependencies for Ghostlight Basic Hosting

  • A Discord bot/application with a bot token, client ID, and server/guild ID
  • An OpenRouter API key for AI model access
  • PostgreSQL database service, included in this Railway template
  • Qdrant vector database service, included in this Railway template
  • A custom admin password created during deployment for dashboard access

Deployment Dependencies

Users will need accounts or credentials from:

Implementation Details

This template deploys three Railway services:

Ghostlight Basic App
PostgreSQL
Qdrant

Customer-filled environment variables:

ADMIN_SECRET=
DISCORD_TOKEN=
DISCORD_GUILD_ID=
DISCORD_CLIENT_ID=
OPENROUTER_API_KEY=
CHAT_TIMEZONE=

Preconfigured internal variables:

NODE_ENV=production
LOG_LEVEL=info
DATABASE_URL=${{Postgres.DATABASE_URL}}
QDRANT_URL=http://${{Qdrant.RAILWAY_PRIVATE_DOMAIN}}:6333
MEMORY_USER_SCOPE=default
QDRANT_COLLECTION=ghostlight_memories
QDRANT_VECTOR_DIM=1536

Why Deploy Ghostlight Basic 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 Ghostlight Basic 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.


Template Content

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

Agampreet Singh
290
View Template
Cobalt Tools [Updated Jun ’26]
Cobalt Tools [Jun ’26] (Media Downloader, Converter & Automation) Self Host

shinyduo
215
View Template
Railway Telegram Gateway
Multi-bot Telegram webhook gateway with real-time WebSocket event streaming

INAPP
1