Skip to main content
Open Source

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.

Storage Provider Agnostic

Swap between local filesystem, AWS S3, Cloudflare R2, or Vercel Blob with a single environment variable. Your data, your infrastructure.

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.

We moved 4TB of team files off Google Drive in a weekend. Same S3 bucket we already had, fraction of the cost. 
Engineering Lead, 50-person startup
Self-hosting on AWS with S3 storage
100%
Open source
4
Storage providers
Type-safe
End-to-end with tRPC
0
Vendor lock-in

Bring your own backend

One env var. Any storage provider.

Set BLOB_STORAGE_PROVIDER in your .env and you're done. Switch providers anytime without touching a line of code.

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

Locker is an open-source, self-hostable file storage platform. Think of it as your own Dropbox or Google Drive that you control completely—deploy it on your own servers, use your own storage backend, and own your data.

Locker supports local filesystem, AWS S3, Cloudflare R2, and Vercel Blob out of the box. You can switch between them by changing a single environment variable. No code changes required.

Yes. Locker is free and open source. You can use it for personal projects, your team, or your entire organization at no cost. You only pay for the infrastructure you choose to host it on.

You can generate shareable links for any file or folder. Each link can optionally have password protection, an expiration date, and a maximum number of downloads. Recipients don’t need an account to access shared files.

Yes. Upload links let anyone send files to your storage without creating an account. Great for collecting documents from clients, students, or collaborators.

Next.js 16 with App Router, PostgreSQL with Drizzle ORM, tRPC for type-safe APIs, BetterAuth for authentication, and Tailwind CSS for the UI. The project uses a Turborepo monorepo with pnpm workspaces.

Clone the repo, run pnpm install, start a PostgreSQL database, configure your .env file, run migrations, and start the server. The defaults work out of the box for local development. For production, deploy to any Node.js-compatible platform.

Ready to own your files?

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