Railway

Deploy Ghostlight Plus+ Companion

Ghostlight Plus+ AI Companion

Deploy Ghostlight Plus+ Companion

Ghostlight Plus + AI Companion

/var/lib/postgresql/data

Just deployed

Just deployed

/qdrant/storage

storage

Bucket

Just deployed

Deploy and Host Ghostlight Plus+ Companion on Railway

Ghostlight Plus+ Companion is a self-hosted AI companion system for Discord with persistent memory, a private dashboard, OpenRouter-powered chat, Qdrant vector memory, PostgreSQL storage, and optional media features such as image generation, audio/TTS, web search, and storage integrations. It is designed for richer companion experiences, client deployments, and customizable AI companion hosting.

About Hosting Ghostlight Plus+ Companion

Hosting Ghostlight Plus+ Companion on Railway gives each user a 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, license key, and dashboard login details. Railway handles infrastructure, service networking, database hosting, volumes, and environment variable wiring. Once deployed, users can access their Ghostlight Plus+ dashboard, connect their Discord bot, configure their companion, and optionally enable advanced features such as image generation, voice/audio, web search, and external storage.

Common Use Cases

  • Deploying an advanced private AI companion connected to a Discord server
  • Hosting a client-ready Ghostlight Plus+ companion with dashboard access, memory, and optional media tools
  • Running a richer self-hosted AI companion build with expandable image, audio, web search, and storage features

Dependencies for Ghostlight Plus+ Companion Hosting

  • A Discord bot/application with a bot token, client ID, and server/guild ID
  • An OpenRouter API key for AI model access
  • A Ghostlight Plus+ license key
  • PostgreSQL database service, included in this Railway template
  • Qdrant vector database service, included in this Railway template
  • Optional API keys for image generation, audio/TTS, web search, or object storage if those features are enabled

Deployment Dependencies

Users will need accounts or credentials from:

Optional integrations may require:

  • getimg.ai for image generation
  • ElevenLabs for audio/TTS
  • An S3-compatible storage provider for media storage

Implementation Details

This template deploys three Railway services:

Ghostlight Plus+ Companion App
PostgreSQL
Qdrant

Customer-filled environment variables:

ADMIN_USERNAME=
ADMIN_PASSWORD=
CORE_LICENSE_KEY=
DISCORD_TOKEN=
DISCORD_GUILD_ID=
DISCORD_CLIENT_ID=
OPENROUTER_API_KEY=
CHAT_TIMEZONE=

Preconfigured internal variables:

NODE_ENV=production
LOG_LEVEL=info
PORT=3000
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
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
DISCORD_RESPOND_TO_MENTIONS_ONLY=false
TELEGRAM_ENABLED=false
WEB_SEARCH_ENABLED=false
IMAGE_GENERATION_ENABLED=false
AUDIO_TTS_ENABLED=false

Optional feature variables can be configured after deployment if needed:

GETIMG_API_KEY=
ELEVENLABS_API_KEY=
ELEVENLABS_VOICE_ID=
WEB_SEARCH_API_KEY=
TELEGRAM_BOT_TOKEN=
BUCKET=
ACCESS_KEY_ID=
SECRET_ACCESS_KEY=
ENDPOINT=
REGION=auto

Why Deploy Ghostlight Plus+ Companion 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 Plus+ Companion 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

storage

Bucket

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