Skip to content

Croc

Command-line tool for sending files between two computers with a short code phrase

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

90

Health

Thriving

Overview

Stars

41,029

Last commit

2 days ago

Nov 2026

Repository age

9 years

since Oct 2017

Latest version

v11.6.6

Nov 2026

Contributors

–

17 active in 90 days

Releases

25

last 12 months

Docker pulls

1.1M

schollz/croc

Language

Go

Croc is a command-line tool that moves files and folders between any two computers. The sender gets a short code phrase, the receiver types it, and the transfer starts. Data is end-to-end encrypted using PAKE, so the relay never sees file contents.

It connects peer to peer when it can and falls back to a relay when it cannot, so you do not need a local server or port forwarding. It prefers IPv6 and falls back to IPv4. It can send several files at once, resume interrupted transfers, and route traffic through a proxy such as Tor.

Croc is written in Go and released under the MIT license. It runs on Windows, Linux and macOS, and there is a Homebrew formula and a Docker image. A browser version at getcroc.com is compatible with the CLI, so you can send between the two. It also works as a self-hosted relay. It fits anywhere you would otherwise email large files, use a cloud share link, or set up scp.

Who it's for

Developers moving files between their own machines

One command on each side, with no accounts, servers or open ports.

Skip if: You need a permanent shared folder with version history.

Sysadmins sending logs or configs to a colleague

Transfers are encrypted end to end and work across NAT without setup.

Skip if: Your policy requires transfers to go through audited internal storage.

People who want to hand a file to a non-technical recipient

The browser version interoperates with the CLI, so the receiver needs no install.

Skip if: The recipient cannot be online at the same time as you.

The problem it solves

Sending a large file to another computer usually means uploading it to a cloud service, setting up SSH, or opening ports. Croc lets two machines exchange files directly with a short shared code and encryption by default.

Strengths

  • End-to-end encryption using PAKE
  • Peer-to-peer transfer with relay fallback, no port forwarding
  • Resumes interrupted transfers and sends multiple files
  • Browser version works with the CLI
  • MIT license, with a Docker image for running your own relay

Trade-offs

  • Sender and receiver must be online at the same time
  • Command-line first; no native desktop app
  • Public relay is used by default unless you host your own

Self-host Croc

Self-hostable
Yes
Docker image
schollz/croc

Quick start

curl https://getcroc.com | bash

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is croc free?

Yes. It is released under the MIT license.

Which platforms does it run on?

Windows, Linux and macOS from the command line, plus a browser version at getcroc.com that works with the CLI.

Can I self-host it?

Yes. A Docker image is available, and you can run your own relay.

Are transfers encrypted?

Yes. Croc uses PAKE for end-to-end encryption.

Can I resume an interrupted transfer?

Yes. Croc supports resuming transfers that were cut off.

Similar tools in File sharing and transfer tools

kubo

File sharing and transfer tools

17k 3.2k today Thriving Unknown

sftpgo Community Edition

File sharing and transfer tools

File transfer server for SFTP, FTP/S, WebDAV and HTTP backed by local or cloud storage

13k 991 3 days ago Active AGPL-3.0

LocalSend

File sharing and transfer tools

Cross-platform app for sending files and messages to nearby devices on your network

101k 5.8k today Active Apache-2.0

dufs

File sharing and transfer tools

Single-binary Rust file server with uploads, WebDAV and access control for quick sharing

11k 626 10 days ago Active Apache-2.0

transfer.sh

File sharing and transfer tools

Self-hosted file sharing server you upload to with curl from the command line

16k 1.6k yesterday Active MIT

copyparty

File sharing and transfer tools

Single-file Python file server with resumable uploads and many protocols, for any device

47k 1.9k today Thriving MIT