Rclone libraries and SDKs for JavaScript, Python, PHP, Rust and Go

Call rclone from your own code through its RC API, its crypt format or the embedded library.

There are three ways to drive rclone from another program. The simplest is to spawn the binary and parse its output, which most wrapper packages do. The more robust one is the remote control API: run rclone rcd and talk to it over HTTP, which is what the typed SDKs target. The third is librclone, the official C interface that embeds rclone in the same process.

The libraries below are grouped by language. Where a package is inactive or superseded, the note says so; the RC API has been stable for years, so older clients often still work, but the maintained ones follow the OpenAPI specification and cover the full endpoint list.

11 projectsUpdated

01

JavaScript / TypeScript

rclone

JavaScript implementation of rclone cryptography for the browser (filename encryption). GitHub stars

rclone-sdk

Typed SDK for browser and Node. Integrates with vanilla fetch, React Query, and SWR. GitHub stars

rclone-api

JavaScript client for rclone's RC HTTP API. Promise-based functions for all RC endpoints. Inactive, superseded by rclone-sdk GitHub stars

rclone.js

Node.js wrapper exposing rclone functions via JavaScript. Downloads rclone binary on install and provides Promise-based API. Inactive, superseded by rclone-sdk GitHub stars

@fyears/rclone-crypt

Rclone's Crypt encryption algorithm implemented in TypeScript. Enables encrypting/decrypting compatible with rclone's crypt remote.

02

Python

rclone-api (PyPI)

High-level Python API focusing on performance. Auto-downloads rclone binary if not in PATH. Includes HTTP server for ranged file access.

PyClone (ltgiv)

Python package wrapping rclone with Pythonic interface. Run operations in threads and get results as Python data structures.

03

PHP

Flyclone

Object-oriented PHP library wrapping rclone operations. Supports many backends with progress tracking and transfer stats. GitHub stars

04

Rust

rclone-sdk

Rust crate providing full client to rclone's RC REST API. Based on the OpenAPI spec. Used internally by Rclone UI. GitHub stars

05

Go

Librclone

Official C library interface for rclone. Enables embedding rclone in other programs (C, Python via ctypes, etc.). Part of rclone core.