Deploy Devin AI — Telegram Bot
Deploy Devin, your friendly AI software engineer, directly into Telegram.
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host Devin Telegram Bot on Railway
A self-hosted Telegram bot that integrates with the Devin AI API. Start autonomous coding sessions, review PRs, write tests, and fix bugs directly from Telegram chats and group threads.
About Hosting Devin Telegram Bot
Devin Telegram Bot brings AI-powered autonomous coding to your Telegram 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 Telegram. The bot manages real-time session polling, chat/thread-based conversations, PostgreSQL-backed session persistence, and status updates—all self-hosted under your control.
Common Use Cases
- Start autonomous coding sessions from Telegram chats
- Review pull requests and generate feedback directly in Telegram
- Write test suites for existing codebases
- Fix bugs with AI assistance and real-time progress updates
Dependencies for Devin Telegram Bot Hosting
- Node.js 22+
- PostgreSQL 14+ (session state storage)
- Telegram bot token from BotFather
Deployment Dependencies
- Devin AI API Key (starts with
apk_orcog_) - Telegram BotFather (to create and configure your bot)
- PostgreSQL on Railway (included in template)
Implementation Details
Environment variables for Railway:
TELEGRAM_BOT_TOKEN=your_bot_token
DATABASE_URL=postgresql://... # Provided by Railway PostgreSQL plugin
DEVIN_API_KEY=apk_your_api_key_or_cog_your_api_key
DEVIN_ORG_ID=org_your_org_id # Required only when DEVIN_API_KEY starts with cog_
LOG_LEVEL=info # Optional: debug | info | warn | error
BOT_NAME=Devin # Optional: customize display name
Tech stack: TypeScript 5.8+, Telegraf v4, Bun, PostgreSQL.
Why Deploy Devin Telegram Bot on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway hosts your infrastructure so you don't have to deal with configuration, while allowing you to scale as needed.
By deploying Devin Telegram 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_ORG_ID
Devin Organization ID (format: org_...)
DEVIN_API_KEY
Devin API Key (format: cog_...)
TELEGRAM_BOT_TOKEN
Telegram Bot Token
