---
title: "Deploy discord-ai"
description: "Discord AI bot using OPENROUTER APIs"
category: "AI/ML"
url: https://railway.com/deploy/discord-ai
---

# Deploy discord-ai

Discord AI bot using OPENROUTER APIs

**[Deploy discord-ai on Railway](https://railway.com/template/discord-ai)**

- **Category:** AI/ML
- **Total deploys:** 32

## Template content

### DiscordAI

- **Source:** xynnpg/DiscordAI

## Documentation

# Deploy and Host DiscordAI on Railway

DiscordAI is an AI-powered Discord bot that integrates with OpenRouter to provide conversational AI via slash commands. It comes with a built-in Flask web interface to manage models, making it a complete solution for building interactive, customizable Discord chatbots.

## About Hosting DiscordAI

Hosting DiscordAI on Railway enables you to deploy a full-stack AI Discord bot in minutes. Once deployed, the bot connects to your server and responds to user inputs using OpenRouter models like GPT-4 or Claude. The web interface gives you control over which models are available, and users can switch models on-the-fly. With Railway, the backend runs seamlessly with PostgreSQL and your environment variables securely managed in one place.

## Common Use Cases

- Create an AI chatbot in a community server
- Manage different AI models for multiple users
- Build Discord automation with natural language responses

## Dependencies for DiscordAI Hosting

- Discord Developer Portal (for bot token)
- OpenRouter API key (for AI models)
- Railway PostgreSQL (optional, but recommended)

### Deployment Dependencies

- [OpenRouter API](https://openrouter.ai)
- [Discord Developer Portal](https://discord.com/developers/applications)
- [Railway](https://railway.app)

## Why Deploy DiscordAI 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 DiscordAI 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/discord-ai
