Experimental, unofficial, and used at your own risk. Not affiliated with Proton. Built for my own personal use case; I am not responsible for any data loss. See Read this first.
A Linux desktop app that syncs a folder with Proton Drive.
- Your whole Drive appears in
~/ProtonDriveat ~0 bytes. - Files hydrate when opened.
- A capped local cache keeps SSD usage near zero.
- Prefer everything offline? A Settings toggle switches the same folder to full mirror mode.
- Product spec: SPEC.md — source of truth
- Agent notes: AGENT.md
- NSH migration plan and status: docs/research/nsh-migration.md
Stack: NSH 0.7.2 TSX desktop shell (app/) · thin Rust native bridge (ext/pds-native/) · Go sync engine (engine-go/, binary pds-engine-go) · Node.js sidecar running the official Proton Drive SDK · SQLite state. Linux only; macOS and Windows were supported in an earlier iteration and have been dropped. MyGo (mygo-shell/) remains in the tree as the one-release rollback shell.
- Experimental. This project is a work in progress and is not ready for production or for data you cannot afford to lose. Expect bugs, sync edge cases, and breaking changes.
- Not affiliated with Proton. This is an independent, third-party project. It is not endorsed by, supported by, or connected to Proton AG in any way, and it is not an official Proton product.
- Personal project. I built this for my own personal use case. With Proton Drive now having an official SDK, I wanted to build a Linux desktop sync client on top of it for fun and for my own workflow. Your needs may differ.
- Use at your own risk. I am not responsible for any data loss or corruption caused by using this software. Keep independent backups of anything important before pointing this at a folder.
If any of that is a dealbreaker, please use the official Proton Drive apps instead.
The sync root is a FUSE view of your Drive. Every file is visible at ~0 bytes, hydrating on open, with an LRU-capped local cache (default 10 GiB). Nothing downloads until you use it.
Settings → Sync mode switches the same folder between On demand and Mirror everything. Switching moves existing content (no re-download) and never deletes from Drive.
- Upload on new/changed files.
- Local deletes are sent to the Proton Drive Trash, never permanently deleted.
- A mass-deletion guard pauses sync when too many files are deleted at once.
- Single NSH main window with Overview, Activity, Conflicts, and Settings pages.
- Optional start at login via an XDG autostart entry that launches the app with
--minimized. - Tray icon with pause/resume, open folder, preferences, and quit. The current icon is the app icon with a status tooltip; dynamic status-dot icons are a deferred enhancement.
- Closing the dashboard hides the window; sync keeps running. Quit is explicit and stops the engine first.
- No-tray-host limitation: NSH 0.7.2 exposes no StatusNotifierItem host probe. Without a tray host (for example a bare compositor with no panel, or GNOME without the AppIndicator extension), the app keeps running window-only, but closing the window leaves no visible icon — relaunch
proton-drive-syncto show the dashboard again. A graceful no-tray fallback is deferred.
The sync engine (pds-engine-go) is headless-only: it runs as a child process of the NSH shell, which controls it over a JSON-line Unix socket. The engine owns the Node sidecar. (The old pds CLI was removed with the Rust workspace.)
Ubuntu 24.04 is the release baseline: the NSH shell needs GTK4 and WebKitGTK 6.0, and the Node sidecar needs Node.js >= 20. Tarballs and Nix packages carry the sidecar dependencies; .deb/.rpm packages expect the distro's Node.js and npm.
The Nix package consumes the pinned, self-contained NSH release tarball (runner + nsh/ bundle) and adds the Go engine and Node sidecar — it does not rebuild the NSH runtime in the Nix sandbox. Once the artifact for a version is published and its hash is pinned in nix/release.nix:
# Try without installing
nix run .#proton-drive-sync
# Install app + engine + sidecar into a profile
nix profile install .#default
# Or install straight from GitHub
nix profile install github:Christopher2K/proton-drive-sync-linuxFor an unpublished or local NSH build, bypass the pinned URL with PDS_ARTIFACT:
nsh package --target linux -o .nsh/out .
(cd engine-go && go build -o pds-engine-go ./cmd/pds-engine-go)
PDS_ARTIFACT="$PWD/.nsh/out/Proton Drive Sync" \
nix build --impure .#proton-drive-sync# 1. Enter the pinned development environment (NSH 0.7.2, Bun, Rust, Go, Node)
devenv shell
# 2. Install the shell's JS dependencies
bun install --frozen-lockfile
# 3. Build the Go sync engine
(cd engine-go && go build -o pds-engine-go ./cmd/pds-engine-go)
# 4. Build the NSH app tree
nsh package --target linux -o .nsh/out .
# 5. Install system-wide (or PREFIX=$HOME/.local for a user install)
sudo packaging/linux/install.shinstall.sh stages the same layout as the release tarball: the launcher in $PREFIX/bin, and the runner, nsh/ bundle, Go engine, and vendored sidecar under $PREFIX/lib/proton-drive-sync/.
Download proton-drive-sync-<version>-<arch>.tar.xz from
GitHub Releases,
then run:
tar -xJf proton-drive-sync-*.tar.xz
sudo proton-drive-sync-*/install.sh.deb and .rpm packages are also published on releases. They require GTK4,
WebKitGTK 6.0, Node.js >= 20, and npm at runtime; FUSE 3 is recommended for
on-demand placeholders.
- Open Proton Drive Sync from your application menu.
- Click Sign in with Proton. Your browser handles login; the app never sees your password.
- Choose your sync folder (default:
~/ProtonDrive). - The app starts syncing in the background. Closing the window hides it to the tray (see the no-tray-host limitation above).
The NSH 0.7.2 toolchain, Bun, Rust, Go, Node.js 22, and the Linux GTK4/WebKitGTK
6.0 and FUSE libraries are declared in devenv.nix and locked in devenv.lock,
so local development and CI build against the same environment. The NSH pin
lives in nix/nsh.nix and nsh.json.
Install Nix and devenv once, then from the repository root:
devenv shell # enter the environment
# or, with direnv installed: direnv allowdevenv test runs the Go engine tests (-short), the sidecar typecheck/tests,
nsh check/nsh test, and the native adapter's Rust formatting/compile checks.
Kernel-FUSE tests additionally need the host's setuid fusermount3 (package
fuse3), which Nix cannot provide.
# Go sync engine
(cd engine-go && go build -o pds-engine-go ./cmd/pds-engine-go)
# Development run (NSH host with hot reload)
nsh run .
# Production-style app tree
nsh package --target linux -o .nsh/out .nsh run . discovers engine-go/pds-engine-go from the repository tree; the
engine finds the repository sidecar/ through its discovery paths. For a
packaged or relocated tree, use the generated launcher, or point
PDS_ENGINE_BIN and PDS_SIDECAR_DIR at the binaries explicitly.
Environment knobs:
| Var | Meaning |
|---|---|
PDS_SYNC_ROOT |
Sync folder (default: ~/ProtonDrive) |
PDS_SYNC_MODE |
placeholders (on demand) or mirror (materialize everything); session-only override of the persisted Settings choice (never rewrites it) |
PDS_CACHE_CAP |
Backing-cache cap: bytes with an optional K/M/G/T suffix (500M, 10G) or unlimited; session-only override of the persisted Settings choice (never rewrites it) |
PDS_ENGINE_BIN |
Engine binary override |
PDS_SIDECAR_DIR |
Sidecar directory override for discovery |
PDS_SIDECAR_CMD |
Sidecar command override, e.g. node sidecar/dist/index.js |
PDS_AUTOSTART_EXE |
Executable path written to the XDG autostart entry (packaging points this at the launcher) |
PDS_APP_DIR |
Packaged app tree override used by the launcher |
PDS_ARTIFACT |
Build-time Nix override: path to a local NSH app tarball or nsh package output |
The app is the sync service: the NSH shell supervises the Go engine
(pds-engine-go) as a child process, and the engine owns the Node sidecar.
Closing the dashboard hides the window and sync keeps running; Quit stops
the engine and sidecar before the app exits.
- Start at login is opt-in:
Settings → Startuptoggles the XDG entry at~/.config/autostart/proton-drive-sync.desktop, which launchesproton-drive-sync --minimized. Installing the app does not create the entry; an existing MyGo login entry is migrated on first launch.--minimizedkeeps the dashboard hidden until you open it from the tray or launch it again. - Tray icon: NSH's StatusNotifierItem tray shows the app icon, a status tooltip, and the menu (Open Dashboard, Pause/Resume syncing, Open Sync Folder, Preferences…, Quit). Left-clicking the icon opens the dashboard. The icon is currently static, not a colored status dot — that enhancement is deliberately deferred.
- No tray host? GNOME needs the AppIndicator extension; some bare
compositors (e.g. niri) need a panel such as waybar with a tray module. NSH
0.7.2 cannot probe for a StatusNotifierItem host. Without one, tray creation
logs an error and the app runs window-only: closing the window leaves it
running invisibly, so relaunch
proton-drive-syncto bring the dashboard back. The graceful no-tray fallback is still deferred. - One instance only:
nsh.jsonenables NSH's single-instance lock before the app entry and engine start. Launchingproton-drive-syncagain asks the running instance to show its dashboard and exits, protecting the SQLite state and the FUSE mount from two writers.
Releases are versioned as a single product (MAJOR.MINOR.PATCH, semver while
pre-1.0: breaking changes bump the minor). One version is shared by the shell,
engine, sidecar, NSH manifest/lock, and Nix packages — scripts/check-versions.sh
enforces this in CI.
To cut a release (inside the devenv shell, so git-cliff and gh are
available):
scripts/release.sh minor # or: patch | majorThe script bumps every version site, regenerates CHANGELOG.md from
conventional commits, and opens a release/vX.Y.Z PR titled
chore(release: vX.Y.Z) (review and squash-merge it like any other change —
main is protected). Once the PR merges, the Tag Release workflow
(.github/workflows/tag-release.yml) sees the new product version, tags
vX.Y.Z, and dispatches the release workflow. That workflow builds on Ubuntu
24.04 (GTK4/WebKitGTK 6.0 baseline) for amd64, stages the
self-contained /usr/lib/proton-drive-sync app tree, and publishes:
proton-drive-sync-<version>-<arch>.tar.xz— launcher, NSH runner +nsh/bundle, Go engine, vendored sidecar, andinstall.sh.deb/.rpmpackages (runtime GTK4/WebKitGTK 6.0, Node.js >= 20, npm)checksums.txt(sha256)
The Nix package pins the published NSH tarball rather than rebuilding it; the
artifact URLs and SRI hashes live in nix/release.nix, and PDS_ARTIFACT
overrides them for local builds.
Release acceptance is not complete yet. Before treating a release as
production-ready, the published amd64 NSH artifact hash must be pinned in
nix/release.nix, and the packaged app must be smoked on a clean Ubuntu 24.04
x86_64 machine without a repository checkout.
devenv test # all legs below, in the pinned environment
nsh check # TSX type/contract checks
nsh test # NSH app tests (component/headless)
(cd ext/pds-native && cargo test --all-targets)
(cd engine-go && go vet ./... && go test ./... -short)
(cd sidecar && npm ci && npm run typecheck && npm test)The current tree passes 168 shell tests (1 skipped), 60 native pds-native
tests (1 ignored real-engine smoke), and the Go/sidecar suites. The shell tests
run through NSH's headless host; they are not a substitute for packaged smoke.
Notes for VM development (OrbStack et al.): inotify over shared folders is unreliable — run the engine tests on VM-native disk. See AGENT.md for details.

