# Host a Discord bot

Keep your Discord bot online with your computer off: your AI agent puts it on Estiba, and you pay for the memory and CPU it uses, from cents a month.

## Why it stops when you close your laptop

A Discord bot is a program that stays connected to Discord and answers when someone writes. While it runs on your computer, it is online only while your computer is on and the program is open. To keep it online, it has to run on a server, a computer that is always on.

## Put it online

1. [Sign up](https://app.estiba.cloud) and [connect your agent](https://estiba.cloud/docs/connect-your-agent) to Estiba, once.
2. Ask it, in the folder of your bot: "put this Discord bot online on Estiba".
3. Give it the bot's token, from your application's **Bot** page in the [Discord Developer Portal](https://discord.com/developers/applications) (**Reset Token** shows a new one). Your agent creates the service with the token as a secret, an environment variable stored encrypted whose value is never shown again, adds a `Dockerfile` if the project has none and sends the code, leaving out files such as `.env`, so the token is never in the code.
4. [Add credit](https://estiba.cloud/docs/credit-and-prices), from $5. Estiba builds the bot and starts it once there is credit.
5. Stop the copy that runs on your computer: two copies with the same token both get every message and can both answer it.

Any language works: discord.js, discord.py, JDA, or anything that runs in a container. Your agent reads the logs after each change and fixes what fails. To change the bot later, ask it again.

If the bot's code is on GitHub or GitLab, your agent can instead have it built there on every push and published as an image, which Estiba runs and updates by itself.

## It does not sleep

A bot with no domain and no ports runs all the time. It needs neither: it connects to Discord, Discord does not connect to it. Only websites and apps with ports, such as game servers, sleep when nobody uses them.

If your bot gets Discord's slash commands through an **Interactions Endpoint URL** instead of the connection, it is a small website: it needs a [domain](https://estiba.cloud/docs/domains), and Discord expects a first answer within 3 seconds, so ask your agent to keep it always on.

## What it costs

You pay for what the bot uses, measured every second: $4 per GB of memory and $8 per vCPU busy, a month, taxes included. Traffic is free.

For example, a bot that holds 100 MB of memory and keeps 1 % of a vCPU busy on average costs 0.1 × $4 + 0.01 × $8 = $0.48 a month. A bot built from your code also keeps its image, at $0.10 per GB a month: a 300 MB image adds $0.03. About **$0.51 a month**. The dashboard shows what yours really uses and costs each day.

Credit is prepaid, from $5 with PayPal: $5 keeps that bot online for about nine months. No bill arrives; if the credit runs out, the bot stops until you add more. See [Credit and prices](https://estiba.cloud/docs/credit-and-prices).

## Keep its data

A bot that saves data in files (levels, settings, a SQLite database) loses them when it is deployed again, unless they are in a volume. Ask your agent to put that folder in a volume: it keeps its files and costs $0.10 per GB a month. See [Deploy an app](https://estiba.cloud/docs/deploy-an-app).

## If a server goes down

A bot with no volume starts on another server by itself within a couple of minutes. A bot with a volume, which every bot built from your code has (it holds its image), waits for its server to come back instead, so its files are never left behind.

## Compared with other places

Month-to-month plans that keep a bot on all the time, as listed on their own pages on 18 November 2026 (Estiba's prices include taxes):

| | Price | Notes |
| --- | --- | --- |
| [Render](https://render.com/pricing) | $7 a month | 512 MB, 0.5 CPU. Its [free instances](https://render.com/docs/free) are not for background workers. |
| [Railway](https://railway.com/pricing) | $5 a month | Hobby, which includes $5 of usage; past it, about $10 per GB of memory and $20 per vCPU a month. Its Free plan gives $1 of usage a month. |
| [Cybrancee](https://cybrancee.com/discord-bot-hosting) | $1.99 a month | Starter: 512 MB, 15 GB of disk; less a month if paid for longer. |

Where they are better: a fixed plan is easier to predict, some have free plans, and a bot that holds 1 GB of memory all month costs $4 on Estiba for the memory alone, plus its CPU and volume, but $2.99 on Cybrancee's 1 GB plan. Estiba is for the small bot that sits waiting most of the day, and for having your agent put it online and look after it. Hosting a Telegram bot instead? See [Host a Telegram bot](https://estiba.cloud/docs/telegram-bot-hosting).
