Deploy Devin AI Discord Bot
Deploy Devin, your friendly AI software engineer, directly into Discord.
Just deployed
/var/lib/postgresql/data
Devin AI
Just deployed
Deploy and Host Devin Discord Bot on Railway
A self-hosted Discord bot that integrates with the Devin AI API. Start autonomous coding sessions, review PRs, write tests, and fix bugs directly from Discord using slash commands or @mentions.
About Hosting Devin Discord Bot
Devin Discord Bot brings AI-powered autonomous coding to your Discord workspace. Deploy the bot as a persistent service on Railway, connect it to your Devin AI account, and let your team start coding sessions without leaving Discord. The bot manages real-time session polling, thread-based conversations, PostgreSQL-backed session persistence, and color-coded status updates—all self-hosted under your control.
Common Use Cases
- Start autonomous coding sessions with slash commands or @mentions
- Review pull requests and generate feedback directly in Discord
- Write test suites for existing codebases
- Fix bugs with AI assistance and real-time progress updates
Dependencies for Devin Discord Bot Hosting
- Node.js 22+ (26 recommended)
- PostgreSQL 14+ (session state storage)
- Discord bot token with Message Content intent and thread permissions
Deployment Dependencies
- Devin AI API Key (starts with
apk_) - Discord Developer Portal (to create and configure your bot)
- PostgreSQL on Railway (included in template)
Implementation Details
Environment variables for Railway:
DISCORD_BOT_TOKEN=your_bot_token
DISCORD_CLIENT_ID=your_client_id
DATABASE_URL=postgresql://... # Provided by Railway PostgreSQL plugin
DEVIN_API_KEY=apk_your_api_key
BOT_NAME=Devin # Optional: customize the bot's display name
Tech stack: TypeScript 5.8+, discord.js v14, Bun, PostgreSQL.
Why Deploy Devin Discord Bot 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 Devin Discord Bot 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
Devin AI
wgtechlabs/devin-discord-botDEVIN_ORG_ID
Devin Organization ID (format: org_...)
DEVIN_API_KEY
Devin API Key (format: cog_...)
DISCORD_BOT_TOKEN
Discord Bot Token
DISCORD_CLIENT_ID
Discord Application Client ID
