# How to install Freqtrade on a VPS?

> How to install Freqtrade on a VPS with Docker in 8 steps. The project asks for 2 GB RAM and 2 vCPU; Leaf has 4 GB from $3.50.

- URL: https://blockgilt.com/guides/how-to-install-freqtrade-on-a-vps/
- Last updated: 2026-11-13
- Publisher: Blockgilt (https://blockgilt.com)

Freqtrade runs well in Docker on a small server. Install it, test in dry-run, keep the web interface off the public internet, then go live.

**Quick answer — How to install Freqtrade on a VPS?**

To install Freqtrade on a VPS, install Docker, download the official docker-compose.yml, pull the image, create the user directory and a config, then start the container in dry-run. The project asks for 2 GB RAM, 2 vCPU and 1 GB of disk; **Blockgilt** Leaf has 4 GB and 80 GB.

**In brief**

- Freqtrade lists 2 GB RAM, 2 vCPU and 1 GB of disk as its minimum.
- Leaf (2 vCPU, 4 GB RAM, 80 GB NVMe, 4 TB traffic) costs $3.50 a month on 12 months.
- Install with Docker: compose file, pull, create-userdir, new-config, up -d.
- Dry-run is the default; test there before any live trade.
- Use an exchange API key with trading rights only, never withdrawal rights.

## What does Freqtrade need on a VPS?

*Freqtrade minimums from its documentation next to the Blockgilt Leaf plan*

| Item | Freqtrade minimum | Leaf plan |
| --- | --- | --- |
| RAM | 2 GB | 4 GB |
| CPU | 2 vCPU | 2 vCPU |
| Disk | 1 GB | 80 GB NVMe |
| Price | - | $3.50 a month on 12 months, $21.00 for 3 months, the minimum |
| Install method | Docker (or Python 3.12 or newer with setup.sh) | Debian 13, Debian 12, Ubuntu 24.04 LTS |

Minimums from the Freqtrade documentation, read on 10 November 2026.

## What are the steps to install Freqtrade on a VPS?

Run the commands as a non-root user in the docker group, or prefix them with sudo.

1. **Order a Leaf and log in over SSH** — You get root over SSH. Paste a public key at checkout and password login stays disabled; leave it blank and the team sets a one-time root password, shown in your dashboard, that you change on first login. Harden the server first with how to secure a VPS for a crypto node or bot.
2. **Install Docker Engine** — Download Docker’s convenience script, read it, then run it. It installs the engine and the compose plugin.
3. **Download the compose file** — Create a folder named ft_userdata and fetch the official docker-compose.yml from the stable branch of the Freqtrade repository.
4. **Pull the image and create the user directory** — Two docker compose commands download the image and create the user_data folder structure.
5. **Generate the config** — The new-config command asks questions and writes user_data/config.json. Enable the web interface only if you reach it through an SSH tunnel.
6. **Run in dry-run first** — Dry-run is the default. Start the container and watch it trade with a simulated wallet before any real money is at stake.
7. **Create exchange keys without withdrawal rights** — In the exchange account, create an API key with trading rights only. Put the key and secret in the exchange block of the config.
8. **Go live and monitor** — Set dry_run to false, restart the container and follow the logs. Back up user_data off the server.

## How do you install Docker and the Freqtrade image?

You install Docker with its convenience script, then pull the Freqtrade image with the official compose file. Docker’s own page says to examine any script downloaded from the internet before you run it, so open it with `less` first.

*Docker Engine*

```bash
curl -fsSL https://get.docker.com -o get-docker.sh
less get-docker.sh
sudo sh get-docker.sh
```

*Freqtrade compose file, image, user directory*

```bash
mkdir ft_userdata
cd ft_userdata/
curl https://raw.githubusercontent.com/freqtrade/freqtrade/stable/docker-compose.yml -o docker-compose.yml
docker compose pull
docker compose run --rm freqtrade create-userdir --userdir user_data
```

The official compose file uses the image `freqtradeorg/freqtrade:stable`, restarts the container unless you stop it, mounts `./user_data` into the container and publishes the web interface on `127.0.0.1:8080` only. That last detail matters: Docker’s documentation warns that published container ports are not filtered by your firewall rules, so a binding to 127.0.0.1 keeps the interface private. The latest Freqtrade release on 10 November 2026 is 2026.10. Sizing, plans and bot-specific advice are in [Freqtrade VPS](https://blockgilt.com/freqtrade-vps/ "What VPS do you need to run Freqtrade?").

## How do you create the config and start in dry-run?

You run the `new-config` command, answer its questions, and start the bot with `docker compose up -d`. Freqtrade’s `dry_run` setting defaults to true, with a simulated wallet of 1000 units unless you change `dry_run_wallet`. In dry-run the bot performs only read-only operations on the exchange.

*Config, start, logs*

```bash
docker compose run --rm freqtrade new-config --config user_data/config.json
docker compose up -d
docker compose ps
docker compose logs -f
```

Without a strategy name in the compose file, the bot runs `SampleStrategy`, which is only a demo. Copy your own strategy into `user_data/strategies/` and add its class name to the command section of `docker-compose.yml`. Use `up -d`, not `run`, so the container restarts after a reboot. Logs are also written to `user_data/logs/freqtrade.log`, and trades are stored in `user_data/tradesv3.sqlite`.

> **Trading risk** Blockgilt sells servers, not trading advice. A bot can lose money as fast as it can make it; test strategies on paper first and give exchange API keys trading rights only, never withdrawal rights. Freqtrade’s own documentation says the software is for educational purposes only and tells you not to risk money you are afraid to lose.

## How do you reach the Freqtrade web interface safely?

You reach it through an SSH tunnel, not through a public port. Freqtrade’s documentation says the interface does not support HTTPS out of the box and recommends an SSH tunnel or a VPN. The REST API example binds `listen_ip_address` to 127.0.0.1 and port 8080.

From your own computer, forward a local port to the server, then open `localhost:8080` in your browser. The `-N` flag tells ssh not to run a remote command, which is what you want for pure forwarding.

*On your computer*

```bash
ssh -N -L 8080:127.0.0.1:8080 USER@YOUR.SERVER.IP
```

## Which exchange API key should the bot use?

The bot should use a key with trading rights and no withdrawal rights, and the key belongs in the exchange block of the config, not in a shared file. Freqtrade’s documentation says to keep `api_key` and `secret` private and recommends a second configuration file for them. Blockgilt never holds your coins, seeds or exchange API keys: the node and the wallet on your VPS are yours to run, and nobody on the team will ask for a seed phrase or a private key.

A key that cannot withdraw limits the damage if the server or the config leaks: the worst case is bad trades, not an emptied account. Restrict the key to your server’s IPv4 address in the exchange settings when the exchange offers it. No plan includes backups. Keep your wallet seeds, Lightning channel backups and bot configs somewhere other than the VPS, so copy `user_data/config.json` and your strategies to a place you control.

## Which VPS size and city does Freqtrade need?

A Leaf is enough for the live bot, and a larger plan only pays off for hyperopt and many bots. According to Blockgilt’s sizing of 10 November 2026, the 4 GB of a Leaf holds two Freqtrade minimum footprints of 2 GB on paper, and its 80 GB NVMe is 80 times the 1 GB the project lists. Hyperopt and backtests are heavier and have no documented figure, and the documentation advises against hyperopt on a Raspberry Pi, so size up before you run them. An Ingot with 16 GB fits several bots side by side.

For latency, an AWS industry post places Binance in Tokyo, Bybit in Singapore, Coinbase in the US and Deribit in London. Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan): all eight plans in all four cities, at one price. Keep the system clock synchronized with NTP, as Freqtrade requires. Compare options in [the best VPS for a trading bot](https://blockgilt.com/best-vps-for-trading-bot/ "What is the best VPS for a trading bot?") and read [how Freqtrade compares with Hummingbot](https://blockgilt.com/freqtrade-vs-hummingbot/ "Freqtrade vs Hummingbot: which trading bot should you run on a VPS?").

## Which plan for Freqtrade?

| Plan | Quantity | 30 days | 3 months | 6 months | 1 year |
| --- | --- | --- | --- | --- | --- |
| Leaf | 2 vCPU · 4 GB RAM · 80 GB NVMe | — | $21 | $33.60 (−20%) | $42 (−50%) |
| Gilt | 4 vCPU · 8 GB RAM · 250 GB NVMe | $25.22 | $75.66 | $121.05 (−20%) | $151.32 (−50%) |
| Ingot | 4 vCPU · 16 GB RAM · 500 GB NVMe | $38.50 | $115.50 | $184.80 (−20%) | $231 (−50%) |

In every plan: NVMe sized for the chain · Inbound P2P ports open · Nodes welcome, mining banned · IPv4 + IPv6 /64 · Root over SSH · No KYC

**Before you pay**

- Minimum top-up $25. Top up once in crypto, then buy any plan from your balance.
- Credit on your balance does not expire and renews any of your VPS. When a top-up is only made to reach the minimum, the unspent part comes back on request within 30 days of payment, in USDT or USDC. The rest of a balance is not paid out unless the law requires it.
- Credited once your payment is checked on the blockchain. Typical network confirmation time: BTC ≈ 20 min · USDT TRC-20 ≈ 1 min · USDT ERC-20 ≈ 5 min · USDC ERC-20 ≈ 5 min · ETH ≈ 5 min · SOL ≈ 1 min · LTC ≈ 15 min · XMR ≈ 20 min

**Verdict**

- **Blockgilt Leaf is the better choice if** you install one Freqtrade bot with Docker: 4 GB of RAM covers the documented 2 GB, for $3.50 a month.
- **Your own computer is the better choice if** you only backtest and never need the bot online around the clock.

## Sources

1. [Freqtrade documentation home (hardware, disclaimer)](https://www.freqtrade.io/en/stable/) — Freqtrade (checked 2026-11-10)
2. [Freqtrade with Docker quickstart](https://github.com/freqtrade/freqtrade/blob/develop/docs/docker_quickstart.md) — Freqtrade (checked 2026-11-10)
3. [Freqtrade installation](https://github.com/freqtrade/freqtrade/blob/develop/docs/installation.md) — Freqtrade (checked 2026-11-10)
4. [Freqtrade configuration](https://github.com/freqtrade/freqtrade/blob/develop/docs/configuration.md) — Freqtrade (checked 2026-11-10)
5. [Freqtrade REST API](https://github.com/freqtrade/freqtrade/blob/develop/docs/rest-api.md) — Freqtrade (checked 2026-11-10)
6. [Install Docker Engine on Debian](https://docs.docker.com/engine/install/debian/) — Docker (checked 2026-11-10)
7. [ssh(1) manual](https://man.openbsd.org/ssh.1) — OpenBSD project (checked 2026-11-10)
8. [Ultra-low latency cross-region crypto trading with Avelacom and AWS](https://aws.amazon.com/blogs/industries/ultra-low-latency-cross-region-crypto-trading-with-avelacom-and-aws/) — Amazon Web Services (checked 2026-11-10)

## Freqtrade on a VPS questions

### Can Freqtrade run on a 2 GB VPS?

Yes for the live bot: the project lists 2 GB RAM, 2 vCPU and 1 GB of disk as its recommended minimum. Hyperopt and backtests need more memory and have no documented figure.

### Should I install Freqtrade with Docker or Python?

Docker is the simpler route on a server, and the documentation tells server users to consider Docker or a terminal multiplexer such as screen or tmux. The Python install needs Python 3.12 or newer and a setup script.

### Is dry-run the default in Freqtrade?

Yes. The dry_run setting defaults to true, and the dry-run wallet defaults to 1000 units. The project advises you to always start in dry-run.

### How do I keep Freqtrade running after a reboot?

Start it with docker compose up -d. The official compose file restarts the container unless you stop it, so it comes back after a reboot.

### Does Blockgilt give trading advice?

No. Blockgilt sells servers, not trading advice. A bot can lose money as fast as it can make it; test strategies on paper first and give exchange API keys trading rights only, never withdrawal rights.

**Install Freqtrade on a Leaf** 2 vCPU, 4 GB of RAM and 80 GB of NVMe for $3.50 a month on 12 months. [Order Leaf](https://blockgilt.com/app/checkout/?plan=leaf&from=how-to-install-freqtrade-on-a-vps&lang=en) · [Compare all plans](https://blockgilt.com/pricing/ "How much does a VPS for a crypto node cost?")

---

Blockgilt: Blockgilt is a VPS provider for crypto nodes and trading bots, paid in crypto with no ID upload and operated by DomaineGoat LLC, a Panama-registered company. Its eight NVMe plans, from 80 GB to 6 TB, are sized for Bitcoin, Lightning, Monero and Ethereum nodes, Electrum servers, BTCPay Server, Freqtrade and Hummingbot, in Amsterdam (Netherlands), Zurich (Switzerland), Singapore and Tokyo (Japan). On the 12-month term, each plan is priced at least 25% under a named comparable plan, chosen among 72 crypto-accepting VPS hosts read on 10 November 2026.
