Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Command-Line Apps
  3. croc

croc

MITGov10.6.0

A CLI tool for secure, cross-platform file transfers between any two computers using end-to-end encryption and a relay.

Visit WebsiteGitHubGitHub
38.1k stars1.5k forks0 contributors

What is croc?

croc is a command-line file transfer tool that enables secure, cross-platform sending of files and folders between any two computers. It uses a relay server to facilitate transfers without requiring local server setup or port forwarding, and employs end-to-end encryption via PAKE to protect data in transit. The tool solves the problem of quickly and safely sharing files across different operating systems with minimal configuration.

Target Audience

Developers, system administrators, and technical users who need a reliable, secure, and easy-to-use method for transferring files between computers via the command line.

Value Proposition

Developers choose croc for its combination of security, simplicity, and cross-platform compatibility, offering features like resumable transfers, self-hosted relay options, and no need for complex network setup, making it a versatile alternative to traditional file-sharing methods.

Overview

Easily and securely send things from one computer to another :crocodile: :package:

Use Cases

Best For

  • Securely transferring sensitive files between different operating systems
  • Sharing multiple files or folders quickly via the command line
  • Resuming large file transfers after network interruptions
  • Using a self-hosted relay for controlled file-sharing infrastructure
  • Sending files through proxies like Tor for enhanced privacy
  • Automating file transfers in scripts with quiet mode

Not Ideal For

  • Users who require a graphical interface for file transfers without command-line interaction
  • High-bandwidth local network transfers where direct methods like SCP or rsync offer better speed without relay overhead
  • Enterprise environments needing centralized management, auditing, or integration with existing file-sharing platforms

Pros & Cons

Pros

End-to-End Encryption

Uses PAKE for secure transfers, ensuring data is encrypted before leaving the sender's device and only decrypted by the recipient, as highlighted in the README's security features.

Cross-Platform Ease

Works on Windows, Linux, and macOS with simple install commands like Homebrew or Scoop, eliminating the need for port forwarding or local servers.

Resumable Transfers

Allows interrupted transfers to be resumed without restarting, saving time and bandwidth for large files, a key feature emphasized in the documentation.

Self-Hosting Flexibility

Supports running custom relay servers with Docker or bare metal, giving users full control over their transfer infrastructure, as detailed in the self-host relay section.

Cons

Unix Security Workaround

On Linux and macOS, to prevent secret leakage (CVE-2023-43621), users must use environment variables or run 'croc --classic', adding complexity compared to the default behavior.

Relay Server Dependency

Relies on relay servers for NAT traversal, which can introduce latency and requires trust in the relay operator; self-hosting needs at least two open ports, adding setup burden.

Limited to File Transfers

Focuses solely on transferring files and folders, lacking built-in features for syncing, versioning, or cloud integration, which may limit use in more complex workflows.

Frequently Asked Questions

Quick Stats

Stars38,133
Forks1,512
Contributors0
Open Issues8
Last commit13 hours ago
CreatedSince 2017

Tags

#tcp#data-transfer#pake#cli-tool#end-to-end-encryption#secure-communication#file-transfer#golang#cross-platform#file-sharing#go#self-hosted#ipv6#peer-to-peer#transfer

Built With

G
Go

Links & Resources

Website

Included in

Go169.1kCommand-Line Apps19.2k
Auto-fetched 2 hours ago

Related Projects

rclonerclone

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Stars58,665
Forks5,247
Last commit16 hours ago
resticrestic

Fast, secure, efficient backup program

Stars35,133
Forks1,819
Last commit1 day ago
gorgor

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.

Stars19,300
Forks90
Last commit5 months ago
JuiceFSJuiceFS

JuiceFS is a distributed POSIX file system built on top of Redis and S3.

Stars14,223
Forks1,264
Last commit23 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub