Self-hosted app·Automation, scraping and trading
LEAN engine server for backtesting, hosted in the Swiss Alps.
Run a LEAN engine server on a Swiss dedicated server: sizing for parallel backtests, Docker setup with the Lean CLI, cost from $84.99/month, and the limits.
- QuantConnect LEAN
- Python
- Docker
ALP1·Swiss Alps
In stockRecommended for this use case
- 10 Gbps portunmetered traffic, fair useIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4KVM console and full rootIncluded
Optional: NVMe +$10 per 2 TB, up to 12 TB · 25 Gbps port +$25 · 32 GB memory +$12
Pay quarterly for 10% less, yearly for 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 8 cores, 16 threads AMD EPYC 4344P
- 2 TB NVMe, up to 12 TB
- 10 Gbps port, unmetered traffic
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes. LEAN runs on our dedicated servers in ALP1 without modification, and for an independent quant we would start on Pilatus: an AMD EPYC 4344P with 8 cores and 16 threads, 64 GB of DDR5 ECC and 2 TB of NVMe Gen4 for $84.99 a month. With Debian 13, Docker and the Lean CLI it gives you the one resource QuantConnect's cloud tiers ration most tightly, which is the number of backtests you can run at the same time.
What decides whether this works for you is not the CPU. The Lean CLI, QuantConnect's recommended way to run LEAN locally, requires membership of a QuantConnect organisation on a paid tier, and a local backtest reads only the data already sitting on the server's disk. Price both before you price hardware. If you want no QuantConnect account at all, the engine is Apache-2.0 and builds from source with the .NET 10 SDK; that route works, and it costs you the CLI's tooling.
02/06
What LEAN is and who runs it.
LEAN is the open-source, event-driven trading engine behind QuantConnect's hosted platform. The core is written in C#, strategies are written in Python or C#, and because the same engine does backtesting and live execution, a strategy that passes locally can go to a broker without a rewrite. Integrations cover Interactive Brokers, Charles Schwab, Alpaca, Binance, Kraken, Bybit and others; historical data comes from QuantConnect's own datasets or from providers such as Polygon, Databento and Theta Data.
Few people run the engine binary directly. The Lean CLI, a Python package (version 1.0.233 at the time of writing), wraps it in Docker images, quantconnect/lean for backtests, optimisation and live trading and quantconnect/research for Jupyter Lab, and adds commands such as lean backtest, lean optimize, lean research and lean live deploy.
The people who move LEAN onto their own server are mostly independent quants who have run into the cloud quotas. A Quant Researcher organisation can hold at most two backtesting nodes, and the largest standard node, B8-16, has 8 cores and 16 GB. That is enough to iterate on one idea and too little for a ten-year walk-forward study or a grid of four hundred parameter combinations. If you want to compare notes before ordering, the LEAN forum on quantconnect.com and r/algotrading are where local setups are discussed in the most detail.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
QuantConnect does not publish a hardware minimum for local LEAN; the CLI's documented prerequisites are pip, a running Docker daemon and local data. The better reference is QuantConnect's own backtesting nodes, which run from 2 cores with 8 GB to 8 cores with 16 GB, with the documented caveat that machine learning, options and large universes are what consume memory.
Two properties of the engine drive the sizing. One backtest is one event loop, so it gets faster with a quicker core rather than with more of them; extra cores pay off when several backtests run at once, which is exactly what lean optimize does. And every concurrent backtest is its own container with its own .NET runtime and, for Python strategies, its own interpreter, so memory grows in step with concurrency. For planning we use a theoretical budget of one backtest per physical core, 6 GB each for minute-resolution equity strategies and 16 GB each for options or universes of several thousand symbols, after holding back 8 GB for the system and page cache. Replace those figures with what docker stats shows for your own strategy.
| Plan | Cores / threads | RAM | NVMe | Per month | Concurrent backtests, theoretical (6 GB / 16 GB each) |
|---|---|---|---|---|---|
| Pilatus (EPYC 4344P) | 8 / 16 | 64 GB | 2 TB | $84.99 | 8 / 3 |
| Säntis (EPYC 4464P) | 12 / 24 | 64 GB | 3 TB | $109.99 | 9, memory-bound / 3 |
| Titlis (EPYC 4564P) | 16 / 32 | 96 GB | 4 TB | $139.99 | 14 / 5 |
| Matterhorn (EPYC 9254) | 24 / 48 | 192 GB | 8 TB | $219.99 | 24 / 11 |
The table leaves out the one specification that matters most for sweeps. The EPYC 4004 processors in Rigi through Eiger have two DDR5 memory channels; the EPYC 9254 in Matterhorn has twelve. Eight backtests decompressing minute bars at the same moment are a memory-bandwidth workload as much as a compute one, and on a two-channel machine we expect throughput to flatten before every core is busy. That is the real argument for Matterhorn, and the reason we would test your parameter grid on Pilatus before paying for Titlis on core count alone.
LEAN reads market data from the workspace's data/ folder, stored as zipped CSV files in a fixed directory layout, and a single backtest opens a great many of them. Keep that folder on the server's NVMe. Tick and options history are what fill disks, so check a dataset's size before you buy it and size the disks when you order: extra NVMe comes in 2 TB steps at $10 a month, up to 12 TB per server. Our S3-compatible object storage is the right home for archived results and restic backups, not for the live data folder: a bucket is not a filesystem, and an rclone mount under thousands of small reads makes every backtest wait on the network.
A backtest server needs no inbound port besides SSH, and live trading only opens outbound connections to the broker. The trap is the research environment. lean research publishes Jupyter's port 8888 without a host address, which Docker binds on every interface, and Docker's documentation warns that published ports get past rules set with ufw or firewalld. On a machine with a public IPv4, that is a notebook server, remote code execution by design, facing the internet. The deployment steps below close it before the first container starts.
04/06
How to deploy it with us.
Order Pilatus with Debian 13 from the Pilatus deploy page, or compare it with the rest of the range on dedicated servers in ALP1. Once you have root over SSH (the KVM console is there if a firewall rule locks you out), install Docker from Docker's own repository, which supports Debian 13 "trixie", and change the daemon's default bind address before running any LEAN container:
# Docker Engine from Docker's repository
sudo apt update && sudo apt install -y ca-certificates curl pipx
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian trixie stable" \
| sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update && sudo apt install -y docker-ce docker-ce-cli containerd.io
# Publish container ports on loopback unless an address is given explicitly
echo '{ "ip": "127.0.0.1" }' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
sudo usermod -aG docker "$USER"
# Lean CLI in its own environment; Debian's system Python is externally managed
pipx install lean && pipx ensurepathMembership of the docker group is equivalent to root on that machine, so give it only to the account that runs LEAN, and remember that any container you do want public now needs 0.0.0.0 spelled out. After logging back in, create the workspace and run a first backtest and sweep:
mkdir ~/lean && cd ~/lean
lean login # QuantConnect user id and API token
lean init # links the folder to your organisation, writes lean.json and data/
lean project-create "Momentum"
lean backtest "Momentum"
lean optimize "Momentum" --max-concurrent-backtests 8For real history you have three routes: buy QuantConnect datasets with lean data download, pull from a supported provider with --data-provider-historical (Polygon, Databento, Theta Data and others, each on its own subscription), or convert your own files to LEAN's format. lean data generate produces synthetic data, which only proves that the pipeline runs.
For research, start Jupyter detached on the server, reach it through an SSH tunnel, and confirm with ss -tlnp that port 8888 listens on 127.0.0.1 and nowhere else. If notebooks are most of what you need, our JupyterLab guide covers that setup on its own.
# on the server
lean research "Momentum" --no-open --detach
# on your laptop
ssh -N -L 8888:127.0.0.1:8888 you@your-serverPin the engine image as soon as a strategy matters. By default the CLI uses quantconnect/lean:latest and may pull a newer build before a run, so Monday's and Friday's backtests can come from different engines. lean config set engine-image quantconnect/lean:<tag>, or --no-update on each run, keeps results comparable. Long sweeps belong in tmux or behind --detach, not in an SSH session that dies with your laptop's Wi-Fi.
Without a QuantConnect account, clone the LEAN repository, install the .NET 10 SDK, run dotnet build QuantConnect.Lean.sln and start dotnet QuantConnect.Lean.Launcher.dll from Launcher/bin/Debug, with the run described in Launcher/config.json. Python strategies then need the environment set out in the repository's Algorithm.Python guide, and sweeps go through the separate Optimizer.Launcher. It is the cleaner choice if you want nothing of yours on third-party servers, and the one where every dependency upgrade is your problem.
05/06
Cost.
| Item | Price | Note |
|---|---|---|
| Pilatus: 8 cores / 16 threads, 64 GB, 2 TB | $84.99 per month | monthly billing |
| Pilatus, quarterly billing (10 % off) | $229.47 per quarter | about $76.49 a month, theoretical calculation |
| Pilatus, yearly billing (25 % off) | $764.91 per year | about $63.74 a month, theoretical calculation |
| +32 GB RAM | $12 per month | up to 192 GB per server |
| +2 TB NVMe | $10 per month | up to 12 TB per server |
| Backup space, 1 TB | $5 per month | 2, 5 and 8 TB at $10, $25 and $40 |
| Priority support | $10 per month | optional |
Every dedicated server includes a 10 Gbps port with unmetered traffic under fair use, DDoS protection, one IPv4 address, the KVM console, full root, DDR5 ECC memory and NVMe Gen4. ECC earns its place here: a sweep that runs for four days is precisely the job where one flipped bit corrupts one result out of four hundred and nobody notices.
The configuration to order depends on what your sweeps will run out of. Pilatus with 32 GB more RAM and 2 TB more NVMe comes to $106.99 a month for 8 cores, 96 GB and 4 TB; Säntis costs $109.99 for 12 cores, 64 GB and 3 TB. For options or large universes the upgraded Pilatus is the better $107. For hundreds of small equity backtests, take Säntis and its four extra cores.
Payment is in cryptocurrency only (Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins), with prices and balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. Opening an account is no-KYC: an email address is enough, and the full catalogue is on the pricing page. Your QuantConnect subscription and any datasets are billed by QuantConnect, not by us.
06/06
Jurisdiction, limits and acceptable use.
The server sits in ALP1 in the Swiss Alps and is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen). The revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still ensures an adequate level of protection, so personal data, yours or a small client list if you keep one, can move from the EU to this server without additional safeguards. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. Our offshore hosting page sets out what that does and does not mean.
Be precise about what this buys a quant. Data-protection law protects personal data, not alpha; your strategy stays private mainly because you do not copy it elsewhere. lean cloud push, cloud backtests and cloud live deployments put your code on QuantConnect's servers, and your broker sees every order wherever LEAN runs. If confidentiality is the reason you self-host, keep the whole workflow local.
On a dedicated server there are no CPU credits and no neighbours, and a sweep that holds every core at 100 % for a week is normal use. Keep market manipulation such as spoofing, layering or wash trading off the server, and do not republish market data you licensed. QuantConnect licenses data per organisation, which is why each workspace has its own data/ folder, and in Switzerland making a protected work available online without permission is unlawful even where downloading it for private use is not. Whether managing other people's money or selling signals needs a licence where you and your clients live is for you to establish, as is compliance with your broker's terms. For a crypto trading bot rather than LEAN, see our Freqtrade guide. Broker API keys end up in lean.json or ~/.lean/credentials, so restrict those files to your user and issue keys without withdrawal rights.
A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where content is manifestly unlawful, in line with the Swico Code of Conduct Hosting 2025. For anything else, open a support ticket from the client panel; routine questions are answered in the FAQ.
Catalogue·Options
Every configuration, every option, every price.
Six dedicated servers, all with a 10 Gbps port and unmetered traffic. Add NVMe, memory, a faster port or more addresses when you order.
| Server | CPU | Cores / threads | Memory | Storage | Port, traffic | Price | Order |
|---|---|---|---|---|---|---|---|
| Rigi1,798 mEntry level | EPYC 4244P | 6 / 12 | 32 GB DDR5 | 1 TB NVMe | 10 Gbps unmetered | $64.99/mo | Order Rigi |
| Pilatus2,128 mRecommendedBalanced | EPYC 4344P | 8 / 16 | 64 GB DDR5 | 2 TB NVMe | 10 Gbps unmetered | $84.99/mo | Order Pilatus |
| Säntis2,502 mMore cores | EPYC 4464P | 12 / 24 | 64 GB DDR5 | 3 TB NVMe | 10 Gbps unmetered | $109.99/mo | Order Säntis |
| Titlis3,238 mHigh frequency | EPYC 4564P | 16 / 32 | 96 GB DDR5 | 4 TB NVMe | 10 Gbps unmetered | $139.99/mo | Order Titlis |
| Eiger3,967 mLarge memory | EPYC 4584PX | 16 / 32 | 128 GB DDR5 | 6 TB NVMe | 10 Gbps unmetered | $164.99/mo | Order Eiger |
| Matterhorn4,478 mMaximum density | EPYC 9254 | 24 / 48 | 192 GB DDR5 | 8 TB NVMe | 10 Gbps unmetered | $219.99/mo | Order Matterhorn |
Each configuration is named after a Swiss summit, drawn from its real silhouette. NVMe can be added in 2 TB steps up to 12 TB.
Every plan
- 10 Gbps port25 Gbps for $25 more
- Unmetered trafficfair use, no per-TB bill
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- KVM consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Do I need a QuantConnect subscription to run LEAN on this server?
For the Lean CLI, yes. QuantConnect's documentation requires membership of an organisation on a paid tier, Quant Researcher or above, and lean init links your workspace to that organisation. The engine itself does not: it is Apache-2.0 and builds and runs from source with the .NET 10 SDK and no account, at the price of configuring the launcher, the Python environment and the optimiser yourself.
Can I trade live from the server, or only backtest?
Both. lean live deploy runs a live algorithm in a local container against brokers such as Interactive Brokers, Alpaca, Binance or Kraken, using outbound connections only. Deploying live locally requires lean login, and Interactive Brokers needs a weekly restart with two-factor confirmation, which the CLI schedules for Sunday. ALP1 is also a transatlantic round trip from US exchanges, so the server suits minute-bar and daily strategies rather than latency-sensitive execution.
How many backtests will Pilatus run at once?
In theory eight memory-light equity backtests, or three that each need 16 GB, after keeping 8 GB for the system. The two memory channels may cap throughput below that, so start lean optimize with --max-concurrent-backtests 8, repeat the same grid at 6 and 12, and keep whichever setting finishes soonest.
Can I keep the LEAN data folder on object storage?
No. LEAN expects a local directory of many small zipped files, and object storage is an S3 bucket reached over the network. Keep the data on NVMe, sized at order time (extra 2 TB drives are $10 a month each, up to 12 TB per server), and use a bucket for result archives and restic or rclone backups; 1 TB of object storage costs $7.96 a month with no request fees.
Do I have to prove my identity to rent the server?
No. An email address is enough to open an account, and you pay in cryptocurrency. The law still applies to what you run on the server, as set out in the acceptable-use section above.
Does hosting in Switzerland keep my strategy confidential?
It places the server, its disks and its operator under Swiss law. It does nothing for copies kept elsewhere: code pushed to QuantConnect's cloud, orders visible to your broker, backups sent to third parties. Run research, backtests and optimisation locally and the code stays on the hardware you rent from us.
Sources
Every fact on this page, with its source
Consulted 6 Nov 2026 unless noted.
Swiss law and authorities
- Federal Act on Data Protection (FADP), in force since 1 September 2023fedlex.admin.ch · verified 31 Oct 2026
- Swiss Federal Institute of Intellectual Property (IPI), copyright on the internet: private downloading permitted (software excepted), making available online without permission is notige.ch · verified 31 Oct 2026
EU and other countries
- European Commission, adequacy decisions: review of 15 January 2024, decision 2000/518/EC on Switzerland remains in forcecommission.europa.eu · verified 31 Oct 2026
- US Department of Justice, CLOUD Act resources: executive agreements with the United Kingdom and Australia onlyjustice.gov · verified 31 Oct 2026
Industry, providers and software
- QuantConnect, LEAN repository readme: Apache-2.0 licence, .NET 10 SDK, dotnet build and Launcher on Debian/Ubuntugithub.com
- Lean CLI source, lean/commands/research.py: Jupyter port 8888 published without a host addressgithub.com
- Docker documentation, "Install Docker Engine on Debian" (Debian 13 trixie)docs.docker.com
- Swico, Code of Conduct Hosting, revised version published 13 March 2025 and in force since April 2025swico.ch
Other references
- QuantConnect, Lean CLI "Getting Started": paid-tier requirement, prerequisites (pip, Docker, local data), lean login and lean init, authentication for local live deploymentquantconnect.com
- QuantConnect, "Tier Features": Quant Researcher tier, CLI access, two backtesting nodesquantconnect.com
- QuantConnect, Backtesting "Deployment": node models B-MICRO to B8-16, node quotas per tier, memory guidancequantconnect.com
- QuantConnect, lean optimize API reference: --max-concurrent-backtestsquantconnect.com
- Lean CLI on PyPI: version 1.0.233, engine-image setting, --no-update, --extra-docker-config, Interactive Brokers weekly restart with 2FApypi.org
- Docker documentation, "Port publishing and mapping": ports published without an address are reachable from outside; binding to 127.0.0.1; default bind addressdocs.docker.com
- Docker documentation, "Packet filtering and firewalls": published ports and ufwdocs.docker.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
