Skip to content

Implement Proton Drive support (find a maintainer) #9252

Open

Description

@celesteking

We need to find a responsible person to re-implement Proton Drive support now that their new SDK is available.

What's needed:

  • ProtonDrive API library rewritten in Go (I don't think they'll ever release it in golang) - use LLM to help as the original contains thousands LOC.
  • rclone proton provider [re-]coded

Activity

  1. clayliddell commented on Mar 24, 2026

    @clayliddell

    Worked on a Go SDK with updated SRP auth and operations that would be needed for rclone.

    I created a PR (here) against the official Proton Drive SDK Repo, but no telling whether it'll be accepted.

    If anyone want's to pickup migrating RClone to it, here's the golang repo: https://github.com/clayliddell/proton-drive-go-sdk.

  2. SylwesterZarebski commented on May 29, 2026

    @SylwesterZarebski

    Wasn't Proton Drive support merged month ago? See PR: #9260

  3. DaniGuardiola commented on Jun 2, 2026

    @DaniGuardiola

    hi there! i am the Proton Docs/Sheets lead, which is part of the Proton Drive org. i am in no way speaking on behalf of Proton and this is something i do in my free time.

    i have been vibe coding an rclone backend that uses the modern Proton Drive (C#) SDK (through a sidecar), and i was wondering if this is something the project would be willing to adopt, at least as an experimental thing. using the official SDK is the modern and most stable way to interact with Proton Drive, so this should be the long term vision anyway. not sure how the maintainers feel about LLM-heavy contributions though.

    to be clear, this is a personal side project i do on my free time and is in no way supported nor endorsed by Proton. i only do this because as a Linux and Proton user i want to see this implemented. please let me know if you would be willing to take a look at my slop lol. thank you :)

  4. fictiontoreality commented on Jun 10, 2026

    @fictiontoreality

    The SDK approach is one way forward. My understanding is the SDK likely will never provide a language agnostic interface so will have to remain a sidecar in perpetuity, like the one @DaniGuardiola made above.

    An alternative to consider: Proton team just released a CLI. That would also effectively be a sidecar, but it is an official one that has a straightforward interface.

  5. DaniGuardiola commented on Jun 10, 2026

    @DaniGuardiola

    The CLI does not support events. It is a wrapper for the SDK, and mostly a Proton-focused and simpler rclone-like toolkit. The proper way forward is using the SDK directly.

    I have my implementation mostly ready, and will submit a PR soon (wanna do some more testing and polish first so it's not just a bunch of one-shotted slop :P).

    While not official in any way, and I want to again make it super clear that this is a personal project not supported or created by Proton in any official manner - I still work very closely with everyone at Proton Drive so I'm able to validate some things.

    SDK is more stable, more efficient, and better supported, so it is the way to go for this kind of thing. I hope that makes sense!

    I am open to chatting about this face to face if that helps, fwiw :)

  6. fictiontoreality commented on Jun 10, 2026

    @fictiontoreality

    Hi @DaniGuardiola, by events are you referring to file system or Drive events, or something rclone specific? It sounds like the sidecar you built is also an SDK wrapper, so I am curious how its interface differs from the CLI.

  7. DaniGuardiola commented on Jun 10, 2026

    @DaniGuardiola

    The Drive backend has an events system which SDK uses to keep nodes and trees up to date without the need for polling. The CLI, afaik, doesn't have a sync system and is for one-off commands, so I don't think it uses events, and in any case its purpose is not to be used as a lower-level library like the SDK is. Events, as well as caching, are very important to prevent rclone and similar projects from hammering the Drive API, which is obviously bad for us but also for users who can more easily trigger antiabuse measures, hit rate limits, and overall have a slower and less efficient software that takes up higher amounts of bandwidth.

    To be clear, usage of events is a hard requirement, see the "Operational requirements" section of the SDK README.

    Image

    See also:

    Image

    As for the difference between this sidecar and the CLI - this sidecar is specifically designed for rclone, that is its only purpose and it isn't much more than an implementation detail of the SDK-based rclone backend. Whereas the CLI is a higher-level tool, which of course can be used for some basic scripting, but is not meant for this deep level of integration.

    Using the CLI for rclone is akin to faking clicks in a desktop Proton Drive app, or maybe a headless browser running the Proton Drive web application in the background. Would it work? Maybe. Does it make sense? Absolutely not, especially when there's an official SDK. I hope this analogy and the overall explanation makes sense!

  8. fictiontoreality commented on Jun 10, 2026

    @fictiontoreality

    Thanks for the detailed explanation, much clearer now! The CLI is more limited than I imagined. I expected it to handle event-based sync to some degree and rclone could piggyback on that. I was imagining the CLI would to be a lower-level SDK wrapper than it actually is - now that I've had a chance to download it, it seems to be basically just for CRUD ops at the moment.

    I am still unclear on how your C# sidecar interfaces with rclone's Go, but I'll wait for the PR to see. =)

  9. samuelexferri commented on Jun 16, 2026

    @samuelexferri
  10. DaniGuardiola commented on Jun 16, 2026

    @DaniGuardiola

    @celesteking could you and other rclone maintainers chime in about whether the C# sidecar approach is okay with you? it is the only way to use the official SDK currently, and for the foreseeable future. my prototype works well with it, but before i move forward with it as a proper PR to rclone i'd like to know if you would be agreeable to it in the first place. thank you!

  11. ncw commented on Jun 17, 2026

    @ncw
    Member

    It depends on how the c# is interfaced. We can't accept anything which uses cgo. We could do wasm with wazero but we haven't done that before.

  12. DaniGuardiola commented on Jun 17, 2026

    @DaniGuardiola

    @ncw thanks for the response. in my current implementation, the C# sidecar is a separate binary that is spawned by the go driver in the rclone side. basically like a daemon with some basic lifecycle mechanics (spawn if not previously spawned, reuse if currently running, then sidecar shuts itself down after a brief inactivity timeout). rclone talks to the sidecar process (IPC) through simple json-rpc-ish over TCP.

    i believe the sidecar binary can be made self-contained.

  13. gerardsimons commented on Jun 29, 2026

    @gerardsimons

    Hey @DaniGuardiola, nice that you are working on this. I actually was keen to try rclone with Proton drive on Mac for a personal project, so happy to see some development in this regard. Do you have a branch or clone for it somewhere? This assuming the sidecar approach is viable - I am quite new to rclone, but happy to try out any code you may have.

  14. StereotypicalCat commented on Nov 23, 2026

    @StereotypicalCat

    An update on this: """"I"""" have been working on a pure-Go rewrite of the protondrive backend, built with heavy AI assistance (Claude Fable 5.2 + Opus 5.5). It's mostly complete and working well on my own system.

    Some points that may matter given the discussion above:

    • No cgo and no sidecar. It talks to the Proton API directly in Go, so it avoids the problem raised about interfacing with the C# SDK.
    • No new dependencies. It uses ProtonMail/go-srp and gopenpgp/v3 directly, which were already in go.mod as indirect dependencies. It drops Proton-API-Bridge and go-proton-api.
    • It follows what Proton asked for in the forum thread:
      • volume-based and v2 routes only;
      • the upload block verifier;
      • the external-drive-rclone@ app version;
      • the current AEAD content format;
      • event polling, at most every 30 s, which also gives rclone mount change notification.
    • The change is almost entirely in backend/protondrive/: about 8.4k lines of Go and 12.1k lines of tests, plus a fake Proton server (5.7k lines) so the tests can run without an account. Outside that folder it only touches the user docs, go.mod and the test config, plus a small data-race fix in fstests.

    To be upfront: this is AI-written, and I'm not yet able to vouch for every line the way CONTRIBUTING.md (https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md) asks. So I'm not opening a PR yet. If someone familiar with Proton's crypto/API model would like to go through it with me, or co-own it, I'd love to get it into shape for merging. The branch is here: https://github.com/StereotypicalCat/rclone-protondrive/tree/protondrive (for the full history and the design docs/specs: https://gitea.lucaswinther.info/lucasw89/rclone).

    Feedback on whether the approach is acceptable in principle would also help before anyone puts serious time into reviewing it.

  15. fictiontoreality commented on Nov 24, 2026

    @fictiontoreality

    Hi @StereotypicalCat - thanks for the contribution. A few thoughts.

    1. If your Go-native backend approach is taken, I tend to think it should be primarily a separate Proton Drive Go library that other Go projects could also use. That way you could have multiple projects contributing to it, not just rclone. It also increases the odds of Proton itself adopting it or something similar that can be swapped in. The backend in rclone then could be a thin wrapper around the library, with some rclone-specific logic on top.
    2. Without official Proton support, I personally wouldn't rely on any unofficial implementation, especially not a vibe coded one. Proton needs to provide a proper sidecar (like Proton Bridge for mail), multi-language library, or CLI that people can rely on. Having to create a sidecar binary for each language / use case is pretty inefficient engineering, but I am guessing the SDK was more of an afterthought from their perspective.
    3. Properly done, a sidecar approach could be made reliable and reasonably performant, but I am not sure if that is possible with C#. A Go library sidesteps many of these issues, but the risk of drifting over time from the official Proton SDK is pretty significant. I think combining efforts with Proton is important here for reliability and long term usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions