Cloudreve Mac is an unofficial macOS sync client for Cloudreve. Pair a folder on your Cloudreve site with a folder on your Mac, then work with your files in Finder. Synced files are stored locally and open offline. No WebDAV connection or mounted network drive is required.
Installation | Connect a drive | Sync behavior | Report an issue
- Two-way sync. Sync files and empty folders in both directions. Local changes and server notifications trigger a scan. The app polls if either watcher is unavailable.
- Multiple drives. Connect more than one account or site. Each drive has its own local folder, ignore patterns, and transfer queue.
- Menu bar activity. See active transfers and recent changes for one drive or all of them. The waiting list shows each file in queue order, with its drive, folder, and next operation: upload, download, or compare. Closing the panel keeps sync running; quitting the app stops it.
- Resumable transfers. After a restart, Cloudreve Mac checks unfinished work before retrying it. Uploads resume from confirmed chunks and downloads from verified partial files when the storage backend supports it.
The client requires a Cloudreve 4.12.0 or later site. Choose a remote folder that fits on your Mac: Finder shows full local copies, not on-demand placeholders.
For a packaged build, check Releases for Cloudreve-osx-arm64.zip (Apple Silicon) or Cloudreve-osx-x64.zip (Intel). Unzip the matching archive and open Cloudreve.app. The bundle includes its own .NET runtime. If no package is listed, build from source using the steps below. Project builds are ad-hoc signed, not notarized by Apple.
On a Mac, install the .NET 11 SDK and Apple's Command Line Tools for Xcode (xcode-select --install). The SDK version used by the project is recorded in global.json.
git clone https://github.com/799953468/cloudreve-mac.git
cd cloudreve-mac
rid=osx-arm64 # Use osx-x64 on an Intel Mac.
dotnet publish src/Cloudreve.Desktop -c Release -r "$rid" \
--self-contained true -p:MacBundle=true
open "artifacts/$rid/Cloudreve.app"On macOS 13 or later, turn on Settings > General > Launch at startup in Cloudreve.app to open it automatically when you log in. If macOS asks for approval, allow Cloudreve in System Settings > General > Login Items. Turn the same switch off to remove the login item.
- In Add Drive, enter the site's root URL (for example,
https://drive.example.com) and choose Connect. Use HTTPS to protect your tokens and files in transit. - Sign in on the site in your browser, choose the remote folder to authorize, and allow the browser to reopen Cloudreve. Leave the app running during sign-in. The app never asks for your site password.
- In Final Setup, name the drive, choose an empty local folder, and select Finish. Click the Cloudreve menu bar icon to follow the first sync.
Important
Deleting a synced file in Finder is not a way to free up local space: the app also asks Cloudreve to move the unchanged remote copy to its trash. For occasional access without keeping a local copy, use the web interface instead.
| When you... | What happens |
|---|---|
| Edit the same file on both sides | If the contents differ, the app reports a conflict and leaves both versions in place. Back up both copies before resolving it manually. |
| Delete a file on the site, or replace it with a newer version | The old local copy is kept in .cloudreve-recovery/ inside the paired folder. This folder is never uploaded or automatically cleared. Press Command+Shift+. in Finder to see it. |
| Delete a synced subfolder in Finder | The app requests that the matching remote folder be moved to the site's trash. If it finds new or changed remote content or ignored items, it leaves the folder in place and reports a conflict. |
| Rename a file or move it without changing its name | When the app can identify the unchanged file, it applies the move without uploading its contents again. Whole-folder renames and moves aren't supported. |
| Exclude files | In Settings > Drives > Ignore Patterns, enter one rule per line, such as *.tmp or /build/. Rules apply to both sides without deleting existing files. |
| Remove a drive from Settings | Sync stops for that drive. Local and remote files stay in place. Removing the drive from the Mac does not revoke authorization on the site. |
How scans and retries work
Click the Cloudreve menu bar icon to see which drives are scanning. Each drive shows whether it is checking the local or cloud folder and how many items it has found on that side. A failed scan stays visible until the next attempt.
After a successful pass, a drive with working local and cloud notifications waits for a change without periodically rescanning. If either watcher is unavailable, it polls after 30 seconds instead. A failed pass waits 30 seconds before retrying, even if more notifications arrive.
At startup the app scans the paired folders in full. During routine sync it groups local and cloud notifications by path. Editing a file checks that file and lists its parent directories. A directory notification covers its subtree, and a rename checks both the old and new paths. The app rechecks both paired roots before applying changes.
A lost notification, a change to ignore rules, or an uncertain move triggers a full scan. For example, when a tracked file disappears and the batch contains no matching destination, the app checks the rest of the pair before propagating the deletion. At Debug log level, the scan summary includes ScanScope (Paths or Full).
Local scans, remote scans, and transfers each start with two concurrent operations per drive and can grow to six while work is waiting. Rate limits, service-unavailable responses, or request timeouts stop the current pass and halve the affected limit, down to one. The next pass scans again. Folder changes, moves, deletions, and chunks within a single upload stay sequential.
- The browser doesn't return to the app. Launch the built
Cloudreve.apprather than usingdotnet run. Start Connect again and keep that instance open until sign-in finishes. - A transfer keeps failing. Check
Synchronize folder pair failedin~/Library/Logs/Cloudreve/desktop-*.log.PairIdidentifies the pair without exposing its paths.StageandElapsedMsidentify what the scan was doing and how long it ran. For HTTP failures,HttpStatus: nullmeans the exception carried no HTTP status code; look atHttpRequestError,SocketError, andCausesinstead. A numericCloudreveCodeis an application error, not an HTTP status. Warnings include these details by default; Settings > General > Log level > Debug also records successful scan counts and timing. - A local directory changed since the scan. If a directory recheck detects a change, the app defers that subtree and continues syncing unrelated edits. The debug scan summary counts these as
DeferredDirectories, not conflicts. A new scan starts after a 30-second wait. A missing or replaced paired root still stops the scan;DirectoryCheckFailurein the warning describes a failed local directory or marker check without logging paths. - Settings says real-time event push is lost. Push and folder scans are independent. Look for
GET /api/v4/file/eventsin the log for the disconnect reason, retry interval, or an unexpected response instead oftext/event-stream. A confirmed reconnection clears the warning and triggers a catch-up scan. While disconnected, the scanner still polls after at most 30 seconds of waiting; it can fail separately if the site is unreachable. - Reporting a problem? Don't share
drives.jsonfiles or thefolder-pairstransfer cache under~/Library/Application Support/Cloudreve/. The session files store access and refresh tokens in plaintext, not in Keychain. Other programs running as your macOS user can read them.
For a sync bug, file a bug report with your macOS and Cloudreve versions, which side changed first, and what you expected to happen. Use sample filenames and omit credentials.
The desktop app is written in C# with Avalonia. Cloudreve.Sync is a separate local-directory tool; the desktop app does not invoke it. Run the test suite from the repository root:
dotnet test --solution CloudreveMac.slnx -c ReleaseThe tests use temporary folders, simulated server responses, and headless windows. They do not use a live Cloudreve account. Check changes to sign-in or storage-provider behavior against a real site as well.
- Test runs the Release test suite on macOS for branch pushes and pull requests.
- Release build tests and packages both Mac architectures on a version tag (such as
v1.2.3orv1.2.3-rc.1), a published release, or a manual run. Tag builds take the app version from the tag; manual branch builds use the source version. - Tag pushes and manual runs produce a
Cloudreve-macOSworkflow artifact without creating a release. Publishing a mutable release attaches missing ZIPs without overwriting existing ones. For an immutable release, attach both ZIPs from the tag build to the draft before publishing.
Artwork and upstream interface translations come from Cloudreve Desktop and are covered by its MIT notice. The bundled Roboto font uses the SIL Open Font License 1.1. These notices cover those assets; the repository does not currently include a project-wide license.
