Locker | Open-Source File Storage Platform

2 min read Original article ↗

Your files, Your cloud,
Your rules.

The self-hostable alternative to Dropbox and Google Drive. Upload, organize, and share files from your own infrastructure.

Bring your own storage — local disk, S3, R2, or Vercel Blob. One env var to switch. Full type-safe API with tRPC.

Built for power users

Everything you need to manage files

Locker gives you the full toolkit for file management, sharing, and collaboration—all self-hosted on your own terms.

Multi-Store Replication

Attach multiple storage backends per workspace. Designate a primary store, fan out writable replicas for redundancy, and ingest files from read-only sources.

Search Inside Images & PDFs

Find files by what's in them, not just the name. Locker transcribes images and PDFs into searchable text so every document is discoverable.

Virtual Bash Shell

Navigate your files with familiar commands. Use ls, cd, find, cat, and grep through a virtual filesystem API.

Workspace Teams

Invite team members with role-based access. Organize files across workspaces with granular permissions.

Secure by Default

Email/password and Google OAuth authentication. Sessions managed server-side with encrypted cookies.

API Keys

Programmatic access to your files through API keys. Build integrations and automate workflows with full tRPC type safety.

Why self-host?

Full control over your data

No vendor lock-in, no surprise pricing, no third party reading your files. Deploy on your own servers and keep everything under your roof.

Type-safe

End-to-end with tRPC

Bring your own backend

Mix and match storage providers

Attach multiple stores per workspace. Choose a primary for writes, add replicas for redundancy, and ingest from read-only sources—each with its own credentials.

Local Filesystem

Store files directly on your server. Zero config, zero cost.

AWS S3

AWS S3

The industry standard. Reliable, scalable, globally distributed.

Cloudflare R2

Cloudflare R2

S3-compatible with zero egress fees. Great for bandwidth-heavy workloads.

Vercel Blob

Vercel Blob

Serverless-native storage. One token, no infrastructure to manage.

Frequently Asked Questions

Ready to own your files?

Deploy Locker in minutes and take back control of your file storage. Free forever, open source, no strings attached.