Freqtrade deployment guide

Deploy Freqtrade on a VPS and trade crypto 24/7 without babysitting

Freqtrade is the most popular open-source crypto trading bot with built-in backtesting, strategy optimization, and Telegram control. Running it on a VPS gives you 24/7 uptime, sub-10ms latency to exchanges, and automatic trade execution without keeping your laptop on.

What is probably broken

Running Freqtrade on your local machine means downtime during power outages, internet drops, and sleep mode. Missed trading opportunities cost more than a VPS.

What production should look like

Freqtrade running 24/7 on a VPS, connected to your exchange via API keys, monitored through Telegram, with automatic restart on failure and daily data backups.

STEP 01

Choose a VPS and install Docker

Freqtrade is lightweight. A $5-10/month VPS is sufficient for most strategies.

  • Provision an Ubuntu 22.04 VPS with 2 vCPU and 2-4 GB RAM from Hetzner, DigitalOcean, or Vultr.
  • Install Docker: curl -fsSL https://get.docker.com | sh
  • Choose a VPS location close to your exchange's API servers for lowest latency.

STEP 02

Deploy Freqtrade with Docker

Freqtrade maintains official Docker images. Use docker-compose for persistent config.

  • Create a project directory and download the Freqtrade docker-compose.yml template.
  • Configure config.json with exchange API keys, stake currency, and trading pairs.
  • Set the trading strategy file and risk parameters before starting.

STEP 03

Connect exchange API keys securely

API key security is critical. Use IP-restricted keys with trading-only permissions.

  • Generate API keys from your exchange with trade permission only (no withdrawals).
  • Whitelist your VPS IP address in the exchange API settings.
  • Store keys in environment variables or Docker secrets, never in the repo.

STEP 04

Add Telegram monitoring

Freqtrade's Telegram integration lets you monitor trades, start/stop the bot, and check P&L from your phone.

  • Create a Telegram bot via @BotFather and copy the API token.
  • Configure Telegram settings in Freqtrade config.json.
  • Test by running in dry-run mode first before live trading.

STEP 05

Run as a service and monitor

Keep Freqtrade running even after SSH disconnects.

  • Use docker-compose up -d to run in detached mode with auto-restart.
  • Monitor resource usage with docker stats and set up swap if RAM is tight.
  • Back up the user_data directory regularly: it contains config and trade history.

Quick check

Is your app production-ready?

If you cannot tick all five, we can fix it. Send us the repo and we handle the rest.

  • ?Custom domain with HTTPS
  • ?Environment variables configured
  • ?Database wired and backed up
  • ?Auto-deploy on push
  • ?Smoke tested and live

Free checklist

Deploying this yourself?

Get the exact 5-step checklist we run before every deploy. No fluff, just the things that actually break.

No spam. Your email is only used to send the checklist.

Done-for-you deploy

Freqtrade setup takes 1-2 hours. RepoAssistant deploys Freqtrade + exchange connection + Telegram monitoring on your VPS: fixed price, shipped within 24h.

Fixed price per repo. 24h delivery or full refund. No hourly billing.

Deploy my app

Related guides