Open source · self-hosted · AGPLv3
Your own cloud, running on your own rules.
LibreDrive is a self-hosted alternative to Drive and Dropbox that puts you in charge of every setting most platforms hide from you: storage quotas per user, the payment methods you accept, and where the data actually lives.
git clone https://github.com/iiaanloopez/LibreDrive.git
cd LibreDrive
cp .env.example .env
docker compose up -d Runs on the infrastructure you already have
- Docker
- Docker Compose
- PostgreSQL
- Nginx / Traefik
- S3-compatible storage
- Let's Encrypt
How it works
From empty server to running instance in four steps.
- 1
Deploy the containers
Copy the Docker Compose file, set your domain, and start the stack. No build step required.
- 2
Define plans and quotas
Create storage plans (5GB, 50GB, 1TB, unlimited) and assign them to users or groups.
- 3
Turn on a payment method
Enable Stripe, PayPal, crypto or manual bank transfer — pick as many as you want to accept.
- 4
Add your users
Create accounts from the admin panel or open registration. Your instance, your terms of service.
What you get
Every setting a hosting provider needs, none of the lock-in.
Per-user storage quotas
Set limits by plan or by individual account, and change them at any time without touching code.
Configurable payment methods
Stripe, PayPal, crypto and manual transfer ship as modules you switch on — none are hardcoded.
Self-hosted by design
Runs anywhere Docker runs: a VPS, a home server, or your company’s own datacenter.
Encryption at rest
Files are encrypted on disk, with keys you control and can rotate independently of the app.
A complete REST API
Automate provisioning, quota changes, and file operations from your own scripts and tools.
Multi-tenant from day one
Run one instance for many organizations, each with isolated users, plans, and billing.
Configure everything
No forked code required to change how your instance works.
Quotas, payment providers, upload limits, allowed file types, trash retention and backup targets are all environment-driven. Edit one file, restart the stack.
Storage plans
Payment methods
Why not just use...
How LibreDrive compares
| LibreDrive | Nextcloud | Google Drive | |
|---|---|---|---|
| Hosting model | Self-hosted only | Self-hosted or paid cloud | Vendor cloud only |
| Per-user quota configuration | Built in, per plan or account | Available, more setup | Fixed tiers only |
| Built-in payment methods | Stripe, PayPal, crypto, manual | Requires paid add-ons | Not applicable |
| License | AGPLv3, fully open | AGPLv3 core, paid apps | Proprietary |
Quick install
Live in minutes on any VPS.
Requires Docker and Docker Compose. See the full installation guide for reverse proxy and TLS setup.
Read the full installation guide →git clone https://github.com/iiaanloopez/LibreDrive.git
cd LibreDrive
cp .env.example .env
# edit .env: LIBREDRIVE_DOMAIN, POSTGRES_PASSWORD, LIBREDRIVE_SECRET_KEY,
# and LIBREDRIVE_ENCRYPTION_KEY (openssl rand -base64 32)
docker compose up -d
docker compose logs -f libredriveCommunity
Built in the open, with the people who run it.
"We migrated our 40-person team in an afternoon. Per-department quotas replaced an entire spreadsheet."
"I use it to sell storage to my Discord community. Turning on Stripe took minutes, not a sprint."
"Nothing to envy in Nextcloud for our case: fewer modules, more control over the essentials."
Ready to run your own cloud?
LibreDrive is free, open source, and yours to modify. No account required to get the source.