Zwift on Linux, set up in five steps.
Tretlager installs the official Windows version of Zwift on your Linux computer, signs you in and connects your smart trainer and heart rate strap over Bluetooth. No terminal, no Wine tinkering, no phone needed. If you prefer, the Zwift Companion app can hold the sensors instead. One button starts the ride.
Download Flatpak · Flathub: not planned · Project page · Tested hardware · Changelog
Warning
Not an official Zwift app, use at your own risk. Tretlager is a private project. Zwift does not support Linux and has nothing to do with Tretlager. The sign-in happens outside the Zwift launcher, which contradicts Zwift's terms of service.
With the sensor bridge: Zwift may not be happy that a software bridge sends data to Zwift that could be manipulated; restrictions up to a suspended account, including the XP and drops you earned, cannot be ruled out. Not for races: there is no guarantee that the bridge passes power, cadence and heart rate to Zwift correctly.
With the Zwift Companion app instead of the bridge, Zwift's own app delivers power, cadence and heart rate, and the two notes on the bridge do not apply.
Tretlager shows these points before the first start and only goes on once you accept them.
|
From the first start to the finish line: Tretlager checks the system, installs Wine and Zwift by itself, signs in, pairs a trainer and a heart rate strap and starts Zwift on the NVIDIA graphics card. Zwift then finds the sensors through the bridge, and Tretlager keeps watch during the ride. Watch the demo (3:43, MP4, 43 MB). The rider data in the video is simulated, everything else is real. |
|
|
Getting Zwift to run under Wine usually means a long list of commands, .NET installers and registry tweaks. Tretlager turns that into a guided setup. It checks graphics, Bluetooth, disk space and network first, without changing anything, and tells you what is missing. |
Tretlager brings its own Wine and downloads the official Zwift installer straight from Zwift, verifies its signature and sets up fonts, .NET 4.8 and WebView2. Then the Zwift launcher fetches the 5 GB game. Tretlager shows the progress and needs about 15 minutes on a normal connection. Zwift's own files stay untouched. |
The sign-in page of the Zwift launcher does not work under Wine. Tretlager opens Zwift's own sign-in page in a private window instead and keeps the session in your desktop's keyring (KWallet or GNOME Keyring). You type your password into Zwift's page, never into Tretlager. This step is optional and only happens after you agree. |
| Runs on | Linux with Flatpak; TUXEDO OS with Plasma is the main target, GNOME works |
| Your system provides | BlueZ with a Bluetooth LE adapter, avahi-daemon and a Secret Service keyring (KWallet or GNOME Keyring); Tretlager brings its own Wine |
| Works with | Bluetooth LE trainers and heart rate straps (FTMS, Cycling Power, Cycling Speed and Cadence, Heart Rate), or the Zwift Companion app; no ANT+ |
| Account | your Zwift account, signed in on Zwift's own page |
| Languages | English and German |
| Licence | GPL-3.0-or-later |
Note
Tretlager targets current distributions with Flatpak. TUXEDO OS with Plasma is the main target, GNOME works. Ubuntu 26.04 (GNOME) was tested with the Debian package, the Flatpak is untested there. Fedora and openSUSE are planned but untested; reports are welcome.
Your system needs Flatpak with the Flathub remote, BlueZ with a Bluetooth LE adapter, a running
avahi-daemon and a Secret Service keyring (KWallet or GNOME Keyring). Tretlager brings
everything else, including its own Wine.
-
Download
tretlager-<version>-x86_64.flatpakfrom the latest release. -
Install it:
flatpak install --user tretlager-*.flatpak
git clone https://github.com/freiversum/tretlager.git
cd tretlager
build-aux/flatpak/build.shThe first build compiles Wine and takes a while (about 15 minutes on 20 cores).
Flatpak fetches the KDE 6.11 runtime from Flathub if it is missing, and on NVIDIA systems the matching driver extension. Start Tretlager from the application menu and follow the assistant; setting up Wine and downloading Zwift takes about 15 minutes.
Tip
Bundles don't update themselves, so check the Releases page for new versions and install the new bundle the same way.
To remove Tretlager including the Zwift installation (about 10 GB), run
flatpak uninstall --delete-data de.linuxundich.Tretlager. Sign out in Tretlager first to remove
the Zwift session from your keyring.
Windows 10 no longer gets updates, and plenty of the computers that only ever run Zwift cannot officially run Windows 11. Zwift has already dropped support for Windows 8, and Windows 10 will probably follow at some point. Then it is either upgrading the hardware or switching to Linux. That is where Tretlager comes in: the old computer can stay, only the system underneath changes.
- Tretlager runs as a Flatpak with its own Wine (built from source, WoW64) and everything else Zwift needs. Your system only provides Bluetooth, Avahi and a keyring.
- Zwift is the unmodified Windows game from Zwift's servers. It renders with OpenGL through XWayland, on NVIDIA via PRIME offload.
- The sensor bridge talks to BlueZ on one side and speaks Wahoo's Direct Connect protocol (DIRCON) to Zwift on the other, announced over mDNS on the local machine.
- Experimental: the Watch remote page lets a Garmin watch running the Wristpilot app steer Zwift (turns, Ride On, power-up). Tretlager offers a Bluetooth LE service for the watch and types Zwift's keyboard shortcuts into the game window, or – with the optional Companion link – talks to the game like the Zwift Companion app and shows junctions and power-ups on the watch. Off by default; the watch app is not published yet.
No telemetry, no changed Zwift files, no bypassing of sign-in or licence checks. Network traffic goes only to Zwift, to GitHub for winetricks and to the download sources of winetricks (Microsoft fonts, .NET and WebView2) during setup.
The interface uses Kirigami and Kirigami Addons on PySide6, the bridge uses Bleak. qdomyos-zwift served as the reference for the DIRCON protocol.
Tretlager is tested on two laptops with one smart trainer and two heart rate straps. Details, versions and known quirks are in docs/HARDWARE.md.
| Main system | Second system | |
|---|---|---|
| Computer | TUXEDO InfinityBook Pro Gen7, Intel Core i7-12700H, 32 GB RAM | Dell XPS 15 9560, Intel Core i7-7700HQ, 16 GB RAM |
| Graphics | Intel Iris Xe + NVIDIA GeForce RTX 3050 Ti Laptop (driver 580.178.04) | Intel HD Graphics 630 + NVIDIA GeForce GTX 1050 Mobile (driver 580.196.07) |
| System | TUXEDO OS (Debian forky base), KDE Plasma 6.7 on Wayland | Arch Linux, GNOME 51 on Wayland |
| Bluetooth | Intel AX201, TP-Link UB500 USB adapter | Qualcomm Atheros QCA61x4 |
| Sensor | Connection | Status |
|---|---|---|
| Wahoo KICKR V4 smart trainer | Bluetooth LE (FTMS, Cycling Power) | power, cadence, ERG mode and climbs work |
| Wahoo TICKR heart rate strap | Bluetooth LE (Heart Rate) | works |
| Garmin HRM-Pro Plus heart rate strap | Bluetooth LE (Heart Rate) | works with the Intel AX201 and the TP-Link UB500; ends its connection by itself every 7–15 minutes and reconnects after a few minutes |
Other trainers and straps that use the standard Bluetooth services (FTMS, Cycling Power, Cycling Speed and Cadence, Heart Rate) should work but are untested. ANT+ is not supported.
- Tested hardware and software in detail
- Project page on my blog · Changelog · Backlog
- Technical notes: requirements, everyday use, troubleshooting, development
- Background: feasibility study, UX concept, Flatpak plan, updates, QA audit
- Found a bug or tested other hardware? Open an issue
Tretlager has its own page on my blog Linux und Ich, with more details on the app and news about upcoming versions. The project overview lists everything else I build for the Linux desktop. Questions, ideas or feedback that don't fit into an issue? Get in touch, I read every message.
Tretlager is AI-assisted. Most of the code, the icon and the translations were written with AI
assistance, directed by me: I set the requirements, made the design decisions, reviewed the
results and tested everything on my own trainer, heart rate straps and laptops. Commits written
with AI assistance carry a Co-Authored-By line.
Tretlager is free software under the GPL-3.0-or-later. It is a personal project, not affiliated with or endorsed by Zwift, Inc. Zwift is a trademark of Zwift, Inc.; Wahoo, KICKR and TICKR are trademarks of Wahoo Fitness; Garmin and HRM-Pro are trademarks of Garmin Ltd. Names of other riders in the screenshots are blurred.








