Self-host croc
v11.6.5Encrypted peer-to-peer file transfers from the command line
curl https://getcroc.com | bash- Stars
- 40 886
- Port
- 9009 (croc relay TCP ports (9009-9013 by default, at least 2 required))
schollz/crocWhat is croc?
croc is a command-line tool for sending files and folders directly between any two machines, with end-to-end encryption negotiated through a code phrase using PAKE. It attempts a peer-to-peer path first and falls back to a relay when a direct connection isn't possible, so no port-forwarding or local server is needed; the relay itself can be self-hosted via croc relay or a Docker container. Interrupted transfers can be resumed, multiple files or folders go in one batch, and text, stdin/stdout pipes, and QR-launched browser links are supported. An opt-in stored-transfer mode (croc store) uploads client-side-encrypted ciphertext to a service with a finite lifetime and a cap on downloads, and croc ssh shares a live terminal with read/write or read-only participants. Install via a curl one-liner, Homebrew, MacPorts, Scoop, Chocolatey, apt/dnf/zypper/pacman/apk/pkg, Nix, conda, or Docker; MIT-licensed, free, and sustained by donations.
croc alternatives
AirpipeSelf-hosted, open-source file transfer tool that streams files directly between devices using a shared passphrase with end-to-end encryption.CompareAirpipe with croc
zrokOpen-source zero-trust tunneling tool for sharing web apps, TCP/UDP services and folders through firewalls; self-host your own instance or use zrok.io.Comparezrok with croc
FileSyncSelf-hosted, open-source WebRTC file sharing: beam one file to many devices live, peer-to-peer, with resumable transfers and password-protected rooms.CompareFileSync with croc
ClipCascadeOpen-source clipboard sync for Windows, macOS, Linux and Android: text, images and files relayed by a self-hosted server or peer-to-peer, end-to-end encrypted.CompareClipCascade with croc
transfer.shA self-hosted, open-source file sharing server: upload with curl or a web front end, share expiring links, store on local disk, S3, Storj or Google Drive.Comparetransfer.sh with croc
GokapiAn open-source, self-hosted Firefox Send alternative: expiring download links, end-to-end encryption, user roles, file requests and optional S3-compatible storage.CompareGokapi with croc
PrivyDropPrivyDrop is a self-hosted, open-source P2P file and clipboard sharing tool using WebRTC — no server relay, no accounts, no size limits, with resumable transfers.ComparePrivyDrop with croc
DashBeamOpen-source P2P file transfer tool with self-hosted relay and discovery servers; direct device-to-device over QUIC + TLS 1.3, on desktop, Android, CLI and web.CompareDashBeam with croc
Should you self-host croc?
croc scores 81/100 on selfhost.directory (how scoring works) and ranks #1 of 11 in File Transfer & Sync. It has 40 886 GitHub stars, +366 in the last 30 days.
It shipped 54 stable releases in the past year. The latest, v11.6.5, came out on 7 November 2026. New versions land roughly every 2 days.
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 DashBeam (71/100, 10 256 stars). croc scores higher overall. See croc vs DashBeam side by side.
Features
- Browser (no-install) client
- Clipboard integration
- Custom code phrase
- Encrypted stored transfers
- End-to-end encryption via PAKE
- IPv6-first with IPv4 fallback
- Multiple files and folders
- Peer-to-peer transfer with relay fallback
- QR Code Sharing
- Resumable transfers
- Self-hostable relay
- Send text and URLs
- Shared terminal sessions (croc ssh)
- SOCKS5 proxy support
- Stdin/stdout piping
croc README
This project’s future depends on community support. Become a sponsor today.
croc is a tool that allows any two computers to simply and securely transfer files and folders. AFAIK, croc is the only CLI file-transfer tool that does all of the following:
- Allows any two computers to transfer data (p2p with relay fallback)
- Provides end-to-end encryption (using PAKE)
- Enables easy cross-platform transfers (Windows, Linux, Mac, Browser)
- Allows multiple file transfers
- Allows resuming transfers that are interrupted
- No need for local server or port-forwarding
- IPv6-first with IPv4 fallback
- Can use a proxy, like Tor
More in File Transfer & Sync
DashBeamOpen-source P2P file transfer tool with self-hosted relay and discovery servers; direct device-to-device over QUIC + TLS 1.3, on desktop, Android, CLI and web.
davosSelf-hosted web-based FTP/FTPS/SFTP download automation tool with scheduling, filtering, and notifications.- DelugeDeluge is a lightweight, free, cross-platform BitTorrent client with a daemon/client model, multiple user interfaces (GTK, Web, Console), and a plugin system.
docker-sftpSelf-hosted SFTP server using OpenSSH with Fail2ban for brute-force protection, packaged as a Docker image for easy deployment.
drivebaseDrivebase is a self-hosted, open-source file manager unifying Google Drive, S3, Dropbox, and local files into a desktop-like web UI with real-time transfers.
DropgateSelf-hosted file sharing with hosted uploads, P2P transfers, E2EE, web UI, desktop client, and TypeScript library.
erfanzadeh.irA self-hosted, open-source file sharing server in Go with drag-and-drop uploads, auto-eviction at 10 GB, and download tracking — no accounts needed.
ErugoErugo is an open-source, self-hosted file sharing platform with memorable URLs, password protection, expiration dates, download limits, and a customizable dashboard.
filestashSelf-hosted, open-source web file manager that puts S3, SFTP, WebDAV, SMB, FTP and around 20 more storage protocols behind one Dropbox-style interface.
FileZilla (LinuxServer.io)Self-hosted Docker container running FileZilla FTP/FTPS/SFTP client, streaming its GUI to a browser via HTTPS using LinuxServer.io's Selkies platform.
FTPGrabFTPGrab is a self-hosted, open-source CLI tool that pulls files from FTP/SFTP servers on a schedule with filtering, deduplication, and notifications.
GopeedOpen-source Gopeed is a self-hosted download manager written in Go and Flutter, handling HTTP, BitTorrent, magnet and ed2k links, plus a web UI, REST API and CLI.


0 comments