Where does a bot actually run?
A bot is a small program. It needs a computer that is switched on, online, and not doing anything that would interrupt it. You have two realistic choices.
Your own computer
Free, and the right place to start. Good for replaying history and for trying things out.
The catch: the bot stops when the lid closes, the laptop sleeps, the Wi-Fi drops or Windows restarts for an update.
A small rented server
A computer in a data center that stays on all day and all night. Usually a few dollars a month. This site and our own bots run on one.
The catch: there is no screen. You type commands into it from your own computer. That is the whole hurdle, and the steps below get you over it.
Our advice: learn on your own computer first. Move to a server only when you want a bot to watch the market around the clock.
Option 1: your own computer
Check for Python
Open a terminal. On Windows, press Start and type PowerShell. On a Mac, open Terminal. Then type:
python3 --versionYou need 3.11 or higher. On Windows, try python --version if the first one does nothing.
Install it if you need to
Download Python from python.org/downloads and run the installer. On Windows, tick Add python.exe to PATH on the first screen before you click Install.
Download and unzip the bot
Get the starter bot zip and unzip it somewhere you can find, such as your Documents folder.
Go to the folder and run it
cd Documents/yesornolab-starter-bot
python3 bot.pyYou should see a short report. That is the bot working.
We wrote these four steps from the standard Python instructions. We test on Linux, so if a step does not match what you see on Windows or a Mac, tell us and we will fix the guide.
Option 2: a small rented server
We tested these exact steps on an Ubuntu 24.04 server. Copy each block as it is.
Rent the smallest server
Any well-known host works. Look for the words VPS or cloud server, choose the cheapest plan, and pick Ubuntu 24.04 as the operating system. The bot needs almost nothing: 1 GB of memory is plenty.
The host gives you two things: an IP address (four numbers with dots) and a password for the user called root.
Connect to it
Open a terminal on your own computer (PowerShell on Windows, Terminal on a Mac) and type this, with your server's IP address in place of the example:
ssh root@203.0.113.10Type yes the first time it asks, then the password. Nothing shows while you type a password. That is normal. You are now typing commands on the server.
Get the bot onto the server
apt update && apt install -y python3 unzip wget
wget https://yesornolab.com/bots/starter-bot/yesornolab-starter-bot-1.0.zip
unzip yesornolab-starter-bot-1.0.zip
cd yesornolab-starter-bot
python3 bot.pyYou should see the same report you saw on your own computer.
Switch it to live practice
Open the settings file:
nano config.tomlFind run = "backtest" and change it to run = "paper". Press Ctrl+O then Enter to save, and Ctrl+X to leave.
Keep it running after you disconnect
If you just run the bot and close your terminal, it stops. This block tells the server to run it as a background service and to restart it if it ever crashes or the server reboots. Paste all of it at once:
cat > /etc/systemd/system/mybot.service <<EOF
[Unit]
Description=My paper trading bot
After=network-online.target
[Service]
WorkingDirectory=/root/yesornolab-starter-bot
ExecStart=/usr/bin/python3 -u bot.py
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable --now mybotCheck on it whenever you like
systemctl status mybot # is it running?
journalctl -u mybot -n 20 # the last 20 lines it printed
systemctl restart mybot # after you change config.toml
systemctl stop mybot # stop itA healthy bot prints one line per price bar, like this:
2026-11-24 15:00 UTC price $59,646 no trade account $1,000.00Type exit to disconnect. The bot keeps going.
Three safety habits before you ever use real money
- Run on pretend money for weeks, not days. You want to see it through a bad stretch first.
- If you ever connect a bot to an exchange, the key it uses should be able to trade and nothing else. Turn off withdrawals on that key. Every major exchange lets you.
- Keep the server updated. Once a month, connect and run
apt update && apt upgrade -y.
Stuck on a step? Reply to any issue of the newsletter with the step number and what you saw. We read every one, and the answers improve this page.