Easily and securely send things from one computer to another
open sourceMITself-hostablefree
croc is a command-line tool that sends files and folders between any two computers: croc send prints a code phrase, and typing it on the other machine starts an end-to-end encrypted transfer keyed by PAKE (password-authenticated key agreement). It needs no port forwarding or server of your own, connecting peer to peer over an in-process Tailscale WireGuard network where NAT traversal works and falling back to a public relay, and it resumes interrupted transfers, sends several files at once, pipes stdin and stdout, sends text and works through SOCKS5 proxies such as Tor. A browser client at getcroc.com sends to and receives from the CLI, croc store uploads client-side encrypted files for later download, and croc ssh shares a terminal. You can run your own relay (croc relay or the Docker image) and croc-web site. It is written in Go and MIT-licensed.
Ways to install
Package managers
Problems it solves
- send a large file from my laptop to a friend's computer without uploading it to a cloud drive
- copy a folder between two machines on different networks without setting up port forwarding
- transfer files from a remote server to my Windows PC with one command and a short code
- send files end-to-end encrypted so the relay in the middle can't read them
- resume a huge file transfer that dropped halfway through
- pipe the output of a command straight to another computer
- send a file from the terminal to someone who only has a web browser
- scan a QR code on my phone to receive a file sent from my computer
- run my own relay server for file transfers inside my company
- send a file through Tor or another SOCKS5 proxy
- a command-line alternative to WeTransfer for sending big files
- leave encrypted files for someone to download later with an expiry and download limit
- share my terminal with a colleague without giving them SSH access
- send a URL or snippet of text from one computer to another quickly
Features
- code phrase transfers between any two computers
- end-to-end encryption with PAKE, with a choice of elliptic curves
- peer-to-peer over Tailscale userspace WireGuard (DERP) with croc relay fallback
- resumes interrupted transfers
- multiple files and folders, with exclusions
- stdin and stdout piping and text sending
- QR codes that open the browser client
- browser client at getcroc.com compatible with the CLI
- client-side encrypted stored transfers with expiry and download limits
- croc ssh shared terminals with read/write and read-only invitations
View 4 more
- SOCKS5 proxy support (Tor), IPv6-first with IPv4 fallback
- self-hosted relay (croc relay or Docker) and self-hosted croc-web
- secret passed in an environment variable on Linux and macOS to keep it out of the process list
- built-in update helper (croc update, croc-update)
Ways to run it
croc with public relays
free3
Only in this edition
- a pool of three public relays that generated codes pick from
- the browser client at getcroc.com
- a default storage service for croc store
Self-hosted croc relay
free3
Only in this edition
- an optional relay password
- your own handshake and rate limits
You arrange
- a server with at least two open TCP ports (9009-9013 by default)
- a croc-web site (Linux amd64 build) if browser links and QR codes should point at your own
- a storage service for croc store, selected with --store-url
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what croc does.
- DashBeam Share files nearby and beyond
- PairDrop Transfer Files Cross-Platform. No Setup, No Signup.
- LocalSend An open-source cross-platform alternative to AirDrop
- ShareDrop Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
- Snapdrop Local file sharing in your browser. Inspired by Apple's Airdrop.
- OnionShare Share files, host websites and chat anonymously over Tor
