How Discord bots run on osModa
1
Dashboard channel

Discord is a native deployment channel. Add bot token.

2
Or deploy custom bots

Discord.js, discord.py, Serenity — any framework via SSH.

3
Watchdog keeps it alive

osmoda-watch auto-restarts. No downtime, no cold starts.

Deploy Discord BotFrom $14.99/mo · full root SSH

Discord Bot Hosting on osModa

Deploy Discord bots on a dedicated NixOS server with watchdog auto-restart and full root SSH access. Use Discord as a native deployment channel through the osModa dashboard, or SSH in and run custom bots built with Discord.js, discord.py, Serenity, or any other library. Your bot maintains a persistent gateway connection with no cold starts. Plans start at $14.99/month.

Discord has over 200 million monthly active users across millions of servers. Discord bots power moderation, community engagement, gaming integrations, AI assistants, and server management. Production bots need to maintain persistent WebSocket connections to the Discord gateway, handle rate limits gracefully, and respond to interactions without delay. Serverless hosting cannot maintain persistent connections. Free hosting tiers sleep after inactivity. osModa provides a dedicated server where your bot runs continuously, supervised by osmoda-watch for automatic crash recovery and osmoda-routines for scheduled operations.

TL;DR

  • • Discord is a native deployment channel in the osModa dashboard — connect bot token, deploy AI agent
  • • Or SSH in and run custom Discord.js, discord.py, or Serenity bots on your dedicated NixOS server
  • • osmoda-watch maintains persistent Discord gateway connections with auto-restart on crash
  • • Dedicated server means no sleeping, no cold starts, no shared resources — from $14.99/mo

Two Ways to Run Discord Bots on osModa

Choose the approach that matches your needs.

Dashboard Native Channel

The osModa dashboard includes Discord as a built-in deployment channel. Create an AI agent, configure your Discord bot token, select an LLM provider (Claude Opus 4, Sonnet 4, GPT-4o, o3-mini), and deploy. The platform handles the Discord gateway connection and message routing. Your AI agent responds to messages in Discord channels and DMs.

Custom Bot via SSH

SSH into your dedicated NixOS server and deploy any custom Discord bot. Install Node.js for Discord.js, Python for discord.py, or Rust for Serenity. Full control over bot logic, slash commands, voice channels, database connections, and external API calls. osmoda-watch monitors and auto-restarts your bot process. NixOS makes deployments atomic with instant rollback.

Deploy a Custom Discord Bot on osModa

Step-by-step setup for deploying a custom Discord bot on your dedicated server.

  1. 1

    Create a Discord application

    Go to the Discord Developer Portal, create a new application, add a bot, and copy the bot token. Configure OAuth2 scopes (bot, applications.commands) and permissions. Generate an invite URL and add the bot to your server.

  2. 2

    Spawn an osModa server

    Provision a server at spawn.os.moda. Solo ($14.99/mo) works for most bots. Choose your region: Frankfurt, Helsinki, Virginia, or Oregon. Pick the region closest to your Discord server's user base for lower latency.

  3. 3

    SSH in and install dependencies

    SSH into your server with the provided credentials. Add Node.js or Python to your NixOS configuration and run nixos-rebuild switch. Clone your bot repository and install packages (npm install or pip install).

  4. 4

    Configure and run

    Set your DISCORD_TOKEN as an environment variable. Define a systemd service in NixOS configuration for production use. Start the bot. osmoda-watch automatically monitors the process and restarts on crash. Use osmoda-routines for any scheduled tasks.

  5. 5

    Secure outbound access

    Configure osmoda-egress to allowlist discord.com, gateway.discord.gg, and any external APIs your bot calls. Block all other outbound traffic to prevent data exfiltration if the bot is compromised.

Discord Bot Hosting: osModa vs Alternatives

How osModa compares for running Discord bots.

FeatureosModaRailwayFly.ioGeneric VPS
Persistent gatewayYesYesYesYes
Auto-restartosmoda-watchBasicBasicDIY
Dedicated resourcesYesSharedSharedDepends
Root SSHYesNoNoYes
Atomic rollbackNixOSRedeployRedeployNo
Pricing modelFlat $14.99+Usage-basedUsage-basedFlat

Frequently Asked Questions

How does Discord bot hosting work on osModa?

osModa supports Discord in two ways. The osModa dashboard includes Discord as a native deployment channel — configure your Discord bot token, connect an AI agent, and the platform handles the Discord gateway connection. Alternatively, SSH into your dedicated NixOS server and deploy any custom Discord bot built with Discord.js, discord.py, Serenity (Rust), or any other library. osmoda-watch monitors the bot process and restarts it on crash.

Will my Discord bot stay online 24/7?

Yes. Your osModa server is a dedicated machine that runs continuously, not a serverless function that sleeps. The osmoda-watch daemon monitors your Discord bot process. If it crashes due to an unhandled exception, a Discord API disconnection, or a memory issue, osmoda-watch restarts it automatically. Your bot maintains its presence in Discord servers without gaps.

Can I run a Discord bot with slash commands and interactions?

Yes. Since you have full root access to a dedicated server, you can run any Discord bot that uses the full Discord API: slash commands, message components (buttons, select menus), modals, autocomplete, voice connections, and webhooks. The always-on server means your bot is always available to respond to interactions without cold start delays.

How do I handle Discord gateway intents on osModa?

You configure gateway intents in your bot code, not in osModa. osModa provides the server infrastructure where your bot runs. The bot connects to the Discord gateway from your dedicated server and maintains a persistent WebSocket connection. osmoda-watch ensures this connection stays alive by restarting the bot process if it crashes or disconnects.

Can I run multiple Discord bots on one server?

Yes. Your osModa server supports multiple bot processes running simultaneously. Each bot is independently monitored by osmoda-watch. Resource availability depends on your plan: Solo (2 CPU, 4 GB RAM) can comfortably run several bots, while Pro (4 CPU, 8 GB) and Team (8 CPU, 16 GB) handle larger deployments with databases and additional services.

How much does Discord bot hosting cost on osModa?

Plans start at $14.99/month for a Solo server with 2 CPU cores, 4 GB RAM, and 40 GB storage. This handles most Discord bots comfortably. Bots with databases, music streaming, or heavy API usage may benefit from Pro at $34.99/month. All plans include osmoda-watch, osmoda-routines, root SSH, and NixOS atomic rollbacks. No per-message or per-interaction charges.

Keep Your Discord Bot Online 24/7

Your Discord community depends on your bot being available. osModa provides a dedicated NixOS server with watchdog auto-restart, atomic rollbacks, and full root SSH. No sleeping dynos, no cold starts, no per-message charges. From $14.99/month.

Last updated: March 2026