1. Install Hummingbot With Docker
On Ubuntu 24.04, after securing the server and installing Docker:
sudo apt install -y git make git clone https://github.com/hummingbot/hummingbot.git cd hummingbot make setup # asks whether to include Gateway, the add-on for decentralised exchanges make deploy # starts the container docker attach hummingbot
The client opens full screen and asks for a password on first use; it encrypts the exchange keys you add. Leave it running and step out with Ctrl+P then Ctrl+Q, Docker's detach keys; Ctrl+C would stop it.
2. Paper Trade First
Hummingbot also has a command-line client, hbot. Install it on the server with make link-cli, then create and start a simple market-making bot on the paper-trade exchange:
hbot create simple_pmm --name conf_paper_bot.yml --set exchange=binance_paper_trade --set trading_pair=BTC-USDT hbot start conf_paper_bot.yml hbot status hbot stop
The paper exchange simulates fills against live Binance prices, so you see how the strategy places and moves orders without any money involved. Leave it for days, not minutes.
3. Connect a Real Exchange
hbot connect binance
Before you paste the keys in, set them up on the exchange:
- Trading only: allow reading and trading, never withdrawals, so a leaked key cannot move funds off the exchange.
- Locked to the server: most exchanges let you allow a key only from given IP addresses. Your VPS keeps the same address, so a key restricted to it is useless anywhere else.
- Small first: start live strategies with a small amount and watch the first trades.
Decentralised Exchanges and Security
With Gateway included, Hummingbot can trade on decentralised exchanges. Its README notes that Gateway starts in development mode over unencrypted HTTP; for real use, switch it to production mode and generate its certificates as Hummingbot's Gateway documentation describes. Keep any Hummingbot API or dashboard off the public internet: reach it over an SSH tunnel or WireGuard.
Update by pulling the repository and redeploying, and back up its configuration folder, which holds your strategies and encrypted keys, with Borg. Prefer a strategy-first bot with backtesting? See running Freqtrade on a VPS.