adrive

A personal file drive that runs entirely on Cloudflare.

adrive is a small, self-hosted alternative to consumer file drives, built for exactly one user: you. File bytes stream straight into R2, metadata and append-only version history live in D1, and everything is served by a single Cloudflare Worker โ€” no servers to run, nothing to patch.

What it does

How access works

One passcode signs you into the dashboard with a strict, host-only session cookie. The CLI authorizes itself through a device flow and gets a scoped API key โ€” read-only or read/write, revocable at any time. Scheduled Worker maintenance sweeps expired sessions, trashed files, and storage lifecycle in the background.

Getting started

Install the CLI (needs Node 20+):

curl -fsSL https://raw.githubusercontent.com/davis7dotsh/aDrive/main/scripts/install-cli.sh | bash

Then point it at a deployment with adrive login <your-drive-url>. The README walks through local setup, and docs/release.md in the repo covers deploying your own instance to Cloudflare with two custom domains.