What it is
Freqtrade is a free, open-source algorithmic crypto trading bot written in Python that connects to exchanges via CCXT (Binance, Kraken, Bybit, OKX and dozens more). It runs your own backtested strategies in dry-run or live mode, exposes a REST API and the FreqUI web dashboard, and can hyperopt/backtest strategies and train FreqAI machine-learning models.
Why host it offshore
A trading bot needs to stay online around the clock and holds exchange API keys that can move money — you want it on infrastructure you control, not a shared cloud tied to your legal identity.
An offshore, no-KYC VPS paid in crypto keeps your strategy IP, key material, and trading footprint off any KYC'd provider account, while unmetered bandwidth and included DDoS protection keep the bot reachable and the exchange connection stable.
A working reference setup
Copy this onto a fresh KernelVPS instance. Replace the placeholders, then bring it up.
# Ubuntu 24.04 — install Docker first:
# curl -fsSL https://get.docker.com | sh
#
# Then scaffold Freqtrade's user_data + config, then start.
# Bootstrap (run once, before bringing the stack up):
# docker compose run --rm freqtrade create-userdir --userdir /freqtrade/user_data
# docker compose run --rm freqtrade new-config --config /freqtrade/user_data/config.json
# # edit user_data/config.json: exchange keys, pairs, dry_run:true to start,
# # and set api_server.listen_ip_address 0.0.0.0 + a strong jwt_secret_key/password.
#
# docker-compose.yml:
services:
freqtrade:
image: freqtradeorg/freqtrade:stable
restart: unless-stopped
container_name: freqtrade
volumes:
- "./user_data:/freqtrade/user_data"
# Bind FreqUI/REST API to localhost only — reach it via SSH tunnel:
# ssh -L 8080:127.0.0.1:8080 user@your-vps
ports:
- "127.0.0.1:8080:8080"
command: >
trade
--logfile /freqtrade/user_data/logs/freqtrade.log
--db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
--config /freqtrade/user_data/config.json
--strategy SampleStrategy
Ports to open
| Port | Protocol | Purpose |
|---|---|---|
| 8080 | TCP | FreqUI web dashboard + REST API — keep bound to 127.0.0.1 and reach it over an SSH tunnel, never expose raw to the internet |
| 22 | TCP | SSH for management and for tunneling to FreqUI; move off 22 and use key-only auth |
| 443 | TCP | Optional — only if you front FreqUI with an authenticated HTTPS reverse proxy instead of an SSH tunnel |
Which plan you need
VPS Nano/Small (1 vCPU, 1-2 GB RAM)
Single bot, dry-run or live on a handful of pairs, no on-box hyperopt. Freqtrade idles at a few hundred MB; this is plenty for 24/7 trading.
VPS Pro (2-4 vCPU, 4-8 GB RAM)
Live bot on many pairs plus occasional backtesting and hyperopt runs. Extra cores cut multi-day hyperopt jobs from hours to minutes; SSD helps large OHLCV datasets.
Dedicated (or top VPS with 8+ vCPU / 16+ GB)
FreqAI ML model training, big multi-year backtests, or several bots side by side. FreqAI is CPU/RAM hungry — dedicated cores avoid noisy-neighbor stalls during model retrains.
Best locations: Freqtrade holds exchange API keys and your strategy edge, so it fits the privacy tier (NL, CH, RO, IS, MD, LU) — CH and IS are strong picks for jurisdictional privacy. There is a real tradeoff: trading latency depends on distance to your exchange's matching engine, so if you run tight timeframes on a Binance-style venue, NL gives the best mix of low European latency and privacy. Freqtrade trades on candle closes (not sub-millisecond HFT), so tens of milliseconds of latency is harmless for most strategies — pick privacy-tier locations freely.
Hardening checklist
- Never expose port 8080 to the public internet. Keep the localhost bind shown above and reach FreqUI through an SSH tunnel (ssh -L 8080:127.0.0.1:8080), or put it behind an authenticated HTTPS reverse proxy. An open FreqUI with the /forceexit and /forcebuy endpoints is a direct path to draining your account.
- Start every strategy in dry_run:true and only flip to live after backtesting confirms behavior. Set a hard stoploss and max_open_trades in config.json so a bug can't over-leverage.
- Create exchange API keys with trading enabled but withdrawals DISABLED, and IP-whitelist the key to your VPS's static IP. That way a leaked key can trade but cannot move coins off the exchange.
- Lock down config.json: it contains keys and the FreqUI jwt_secret_key/password in plaintext — chmod 600 it, set a long random jwt_secret_key, and never commit it to git. Consider passing secrets via environment variables instead.
- Harden the box itself: key-only SSH on a non-default port, UFW allowing only SSH, unattended-upgrades on, and back up user_data/ (config, sqlite trade DB, strategies) off-server on a schedule.
- Enable Freqtrade's Telegram integration for trade alerts and remote /status, /stop, /forceexit control — it lets you kill a misbehaving bot from your phone without opening the web UI.