Host a Discord bot for free
Keep a Discord bot online after you close the terminal without managing a server yourself. Tokay runs the Node or Python process as a background Service on a dedicated virtual machine and restarts it when needed.
Last updated
Start with the bot code you have
You can move from a local bot to a hosted connection with the same source. Paste the code or push the repository, and Tokay detects libraries such as discord.js or discord.py along with the packages and environment variables the bot uses.
Before deployment, you provide the bot token as a secret. Tokay encrypts it in storage and supplies it through the environment variable the code already reads. If the token appears in the source, we flag it so you can move the value out of the code.
The connection stays watched
Tokay keeps the bot running and tells you when it needs attention, so a silent crash does not leave it offline indefinitely. A crashed process restarts automatically, its output stays available, and incident and recovery email show when the bot went down and came back.
Live logs stream to the Project while the bot is running. A new version replaces the old process cleanly after deployment.
The bot can grow inside the same Project
Adding storage, a scheduled digest, or a companion dashboard does not require another hosting setup. When the bot expects Postgres, MySQL, MongoDB, or Redis, Tokay creates the resource and supplies its connection. Other Services can share the same secrets and data.
Your AI agent can host the bot it wrote
A coding agent like Claude Code or Codex can return a connected bot instead of leaving deployment instructions for you. Through Tokay's GraphQL API, it can submit the code, set the write only token you provide, deploy the worker, and read the logs to confirm the Discord connection.
Point your agent to app.tokay.io/llms.txt for the deployment protocol.
Tokay has a very generous free tier with no credit card. See background workers or get started.