Self-host transfer.sh
v1.6.1Command-line file sharing with expiring links
- Stars
- 15 909
- Ports
- 8080 (HTTP listener used by the official Docker image entrypoint), 80 (Default HTTP listener when run without a listener flag), 443 (Default HTTPS listener when TLS is enabled)
dutchcoders/transfer.shWhat is transfer.sh?
transfer.sh is a file sharing server you run yourself, aimed at people who want to hand over a file with a single curl command instead of a cloud drive. Uploads go through HTTP with --upload-file, and each one comes back with a short link plus a delete URL in the x-url-delete response header. Links can be capped by a maximum number of downloads or a maximum lifetime in days, and a scheduled purge removes old uploads on local or Google Drive storage. Files can be encrypted server side with AES-256, submitted to VirusTotal, or prescanned by a ClamAV daemon; access can be restricted with basic auth, IP allow/deny lists, rate limits, upload size caps and CORS domains. Storage is pluggable between the local filesystem, Amazon S3 (and custom S3 endpoints), Storj and Google Drive. TLS is handled either with your own certificates or via Let's Encrypt with an optional redirect to HTTPS, so it usually sits behind a reverse proxy on your own domain. Run it with the official Docker image (dutchcoders/transfer.sh), including rootless -noroot variants, or with the compiled Go binary. Two caveats: a published security advisory covers an IP-filter and auth bypass through spoofed X-Forwarded-For headers, and the maintainers state that server-side encryption should only be trusted on an instance you host yourself.
transfer.sh alternatives
ErugoErugo is an open-source, self-hosted file sharing platform with memorable URLs, password protection, expiration dates, download limits, and a customizable dashboard.CompareErugo with transfer.sh
DufsSelf-hosted Rust file server that shares folders over HTTP or WebDAV with drag-drop uploads, search, per-path access control and HTTPS. Open-source.CompareDufs with transfer.sh
ProjectSendSelf-hosted, open-source client file sharing: each client gets a private portal, with expiring links, quotas, LDAP/2FA sign-in, S3 storage and a REST API.CompareProjectSend with transfer.sh
folderhostA self-hosted, open-source cloud platform offering file sharing, real-time collaboration, and user management in a ~19MB binary as a lightweight Nextcloud alternativeComparefolderhost with transfer.sh
SuperBinSelf-hosted open-source tool combining pastebin, file sharing, and URL shortening with AES encryption, QR codes, and curl uploads. Handles large files with fixed memory.CompareSuperBin with transfer.sh
Goploadergoploader is a self-hosted, open-source file sharing server with server-side encryption that works with curl, wget, and a CLI client for terminal uploads.CompareGoploader with transfer.sh
QuickShareA self-hosted, open-source file sharing server you run in Docker, offering resumable uploads, anonymous folder sharing, user roles, space quotas and speed limits.CompareQuickShare with transfer.sh
cloudboxioA lightweight Go-based file server you host yourself, offering JWT login, shareable links, a themed web interface, and embedded SQLite storage.Comparecloudboxio with transfer.sh
Should you self-host transfer.sh?
transfer.sh scores 68/100 on selfhost.directory (how scoring works) and ranks #9 of 90 in File Sharing. It has 15 909 GitHub stars, +13 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is copyparty (82/100, 47 274 stars). It scores higher overall, so compare the two before you pick. See transfer.sh vs copyparty side by side.
Features
- Automatic purge of old uploads
- Command-line uploads
- Delete links for uploads
- Direct download and inline links
- Download-count limits
- HTTP basic auth on uploads
- IP allow- and blocklists
- Link expiry after N days
- Pluggable storage backends
- Rate and size limits
- Server-side AES-256 encryptionMaintainers warn to use it only on an instance you host yourself.
- TLS with Let's Encrypt or own certificates
- VirusTotal scanning
- Web upload front end
transfer.sh README
IP filter and HTTP auth bypass via unauthenticated X-Forwarded-For header spoofing
Easy and fast file sharing from the command-line. This code contains the server with everything you need to create your own instance.
Transfer.sh currently supports the s3 (Amazon S3), gdrive (Google Drive), storj (Storj) providers, and local file system (local).
More in File Sharing
Transfer.zipTransfer.zip is a self-hosted, open-source WeTransfer alternative with end-to-end encrypted P2P transfers, no size limits, and resumable stored transfers via tus.
UguuSelf-hosted, open-source temporary file host where visitors drop, paste or upload files with no account; it offers a JSON/CSV/text upload API and configurable expiry.
upgistSelf-hosted web file uploader that stores files in GitHub Gists with SSH authentication, built with Go and HTMX for a minimal footprint.
UploadySelf-hosted file upload script with multi-file drag-and-drop, role-based access, admin panel, REST API, and optional ClamAV virus scanning.
Versity S3 GatewayVersityGW is an open-source, Apache-2.0 S3 object-storage gateway in Go: it turns POSIX filesystems, ScoutFS or Azure Blob into an S3 API, with IAM, WebUI and Helm.
virtual-dsmBoots Synology's Virtual DSM in a KVM-accelerated VM via an open-source Docker image, giving a self-hosted NAS desktop you reach in a browser on port 5000.
VueTorrentSelf-hosted web interface for qBittorrent built with Vue.js 3 and Vuetify 3. Features light/dark themes, mobile PWA support, keyboard shortcuts, configurable dashboards.
webdavSelf-hosted, open-source WebDAV server written in Go: basic auth with bcrypt hashes, fine-grained read/create/update/delete rules, built-in TLS, and Docker images.
WeddingShareSelf-hosted, open-source photo and video galleries (formerly WeddingShare) that guests view and fill via share links or printed QR codes, with an admin panel.
WsgiDAVOpen-source, self-hosted WebDAV server written in Python on WSGI: share folders from the command line with SSL, Basic/Digest auth, and a browser directory listing.
XBackBoneSelf-hosted file and media sharing with ShareX support, S3/FTP/SFTP storage, deduplication, and modern auth including 2FA and passkeys.
YopassOpen-source, self-hosted secret sharing: Yopass encrypts passwords and files in the browser with OpenPGP, so links carry the key and secrets expire or burn after reading.
0 comments