Affordable Python bot hosting
JustRunMy.App can host container-compatible Python bots as continuously running applications. Deploy with Zip, Git, or Docker, configure credentials through environment variables, and allocate CPU, RAM, and disk for your actual dependency footprint.
A good fit for: aiogram, python-telegram-bot, discord.py, custom API clients, and Python automation workers.
Make dependencies part of the deployment
Include requirements.txt or the dependency and lock files used by your project. Use a Python version compatible with the bot library. Install dependencies in the deployment environment rather than uploading a virtual environment from your laptop, which may contain platform-specific files.
Use a Docker image when packages need native system libraries or a particular build setup. Keep runtime dependencies focused: development tools and unused machine learning packages increase the image size and may increase the memory needed to start.
Choose a command that keeps the bot process running
For a project whose entry file is bot.py, a typical command is python -u bot.py. Replace the filename with your own. The -u option makes standard output and error unbuffered, which helps status messages reach container logs promptly.
Your entry point must start the event loop, worker, or web server and remain running. If it exits immediately, check that you deployed the correct file and that required environment variables are present. Log errors without printing bot tokens or provider keys.
Plan for files, restarts, and concurrent tasks
A reminder bot needs durable schedules, while a notification relay may be nearly stateless. Put files that must survive restarts on persistent storage or use your chosen external database. Test recovery with realistic saved data rather than assuming process memory will survive.
Limit concurrent downloads and background jobs to fit the allocation. A busy bot can run out of RAM when several handlers process large files at once. Check the logs after a burst of messages and increase resources only when the workload needs them.
Deployment checklist
Prepare a clean project
Include source, dependency files, and the Python entry point. Exclude local virtual environments and secrets.
Choose a deployment method
Use Zip or Git for a straightforward project, or Docker when you need control over system packages and the runtime.
Configure the process
Set environment variables and a startup command such as python -u bot.py, adjusted for your project.
Verify logs and saved data
Send a real request, inspect output, and restart the app to test recovery and storage.
Example resource allocations
Monthly USD rates: $1.90 per vCPU, $1.95 per GB RAM, and $0.25 per GB disk. All allocated resources are billed per minute across applications, including idle allocations.
Measure Python plus all imported packages. Image tools, browser libraries, and local embedding models can outweigh the bot code itself; a text-only worker is a different workload.
| Example | vCPU | RAM (GB) | Disk | Monthly estimate |
|---|---|---|---|---|
| Minimal allocation example | 0.15 | 0.15 | 0 GB | $0.58 |
| Lightweight worker example | 0.25 | 0.25 | 0.3 GB | $1.04 |
| More memory for dependencies | 0.25 | 0.5 | 1 GB | $1.70 |
| Larger worker example | 0.5 | 1 | 1 GB | $3.15 |