Host and manage your Discord bot

Deploy JavaScript, TypeScript or Python code with encrypted token storage, configurable environment variables and automatic restart attempts. Monitor the bot from the dashboard.

Create bot projectSee pricingPlans from CHF 5.90/month

general

3,214 online

M

maya today 12:03

Is the bot responding?

K

kai today 12:04

/uptime

H

hostybottoday 12:04

Online

uptime
47d 03:12:09
heartbeat
38 ms
restarts
0 this week

Message #general

hosterman container

your bot

node index.js · pid 1 · 512 MB

discord

gateway.discord.gg

session resumed · shard 0/1

Discord bots generally connect outbound to the gateway. This template provides the runtime, token and environment settings needed for that connection. Add a separate web application if your bot also needs an HTTP dashboard.

Configuration for Discord bots

Select the runtime and entry file, then provide your bot token and application ID. Optional fields cover a development server, shard count and a custom start command.

new project · discord bottemplate

Language / runtime

JavaScriptTypeScriptPython 3.12Python 3.13

Bot token→ encrypted vault

••••••••••••••••••••••••

Application ID

1146227934829680702

advanced — dev server ID · shard count · start command

  • Encrypted token storageEnter the token during setup or in Variables. It is encrypted at rest and supplied to the running bot as DISCORD_TOKEN.
  • Application and development server IDsThe Application ID and optional development server ID are available as DISCORD_APPLICATION_ID and DISCORD_GUILD_ID for your registration code.
  • Outbound Discord connectionThe bot connects to Discord’s gateway. A bot that does not serve HTTP does not need a public web port or domain.
  • Optional shard configurationSet SHARD_COUNT if your bot and Discord application require sharding. Otherwise leave the field blank.

Supported runtimes and dependencies

Install compatible libraries from package.json or requirements.txt. The template supports Node.js, TypeScript and Python workflows.

JavaScript

Node 22

node index.js

TypeScript

Node 22 · tsx, no build step

npx tsx index.ts

Python

3.12

python main.py

Python 3

3.13

python3 main.py

Restart controls and diagnostics

The runner attempts to restart the bot after its process exits. Review the logs to identify application errors, failed dependencies or connection problems.

  • Automatic restartsThe runner retries after a process exit. Persistent application errors require a code or configuration change.
  • Live logs & metricsView process output alongside CPU and memory metrics.
  • Browser terminal accessUse the browser terminal to inspect files, run diagnostic commands or manage your application.

For shared application data, connect a PostgreSQL hosting for member data or Redis instance for caching or queues. Use the connection details provided for each project. Web dashboards and APIs can run on the app template.

logs · live streaming

12:04:07[gateway] connection reset by peer

12:04:07process exited (code 1)

12:04:12restart ▸ npm install && node index.js

12:04:13[gateway] logged in as hosty#4041

12:04:13● online — session resumed

Example restart sequence

Set up your bot in three steps

  1. 01

    Create from the template

    Select JavaScript, TypeScript or Python and specify the entry file.

  2. 02

    Paste your token

    Enter the bot token in the encrypted Variables store. The process receives it as DISCORD_TOKEN.

  3. 03

    Deploy and forget

    Upload a ZIP or connect GitHub. Deploy manually, or configure a webhook for subsequent updates.

Discord bot hosting — FAQ

Can I host a discord.js or discord.py bot?

Yes. The template supports JavaScript and TypeScript on Node.js, and Python. Select a compatible runtime and entry file. Dependencies are installed from package.json or requirements.txt.

Does the bot stop when it is inactive?

Hosterman does not suspend paid bots solely because they are inactive. The runner attempts to restart a process that exits. Application failures and service interruptions can still affect availability.

How much does Discord bot hosting cost?

Application plans start at CHF 5.90/month, excluding applicable taxes. Choose resources according to the bot’s workload and connected services.

How do I deploy my bot?

Create a Discord bot project, then upload your code as a ZIP or connect a GitHub repository. Configure a webhook for automatic deployments from the selected branch.

Where do I put my bot token?

Enter the token in the setup form or Variables panel. Hosterman stores it encrypted and provides it to the process as DISCORD_TOKEN. Keep tokens out of source files and logs.

Can my bot use a database?

Yes. Store SQLite data in the persistent data volume or connect to a separately configured database. The dashboard provides the host and allocated port for database projects.

Do I get shell access to debug my bot?

Yes. Use the browser terminal to inspect files and run commands. The dashboard also provides logs and CPU and memory metrics.

What about slash commands and gateway intents?

The template provides DISCORD_APPLICATION_ID and an optional DISCORD_GUILD_ID. Your bot code handles command registration. Configure gateway intents in the Discord Developer Portal as required by your bot.

Discord bot deployment

Deploy your Discord bot

Create a project, configure its token and runtime, then deploy your code. Logs and resource metrics are available in the dashboard.