Secure file transfer CLI for sending files, folders, and text between computers over public or self-hosted relays.
$curl https://getcroc.schollz.com | bash
AI Analysis
croc is a peer-to-peer file transfer CLI for sending files, folders, or short text between two machines using a shared code phrase and a relay for rendezvous. It covers ad hoc cross-machine transfers when SSH, shared storage, or a longer-lived sync setup is not the right fit.
What It Enables
- Send files, folders, or short text from one machine to another with end-to-end encryption and resumable transfers.
- Stream data from stdin into a transfer or receive directly to stdout, which helps move artifacts through shell pipelines.
- Run your own relay and relay password so transfers stay on infrastructure you control instead of the default public relay.
Agent Fit
- Non-interactive flags such as
--yes,--overwrite,--stdout,--out,--relay, and--textmake scripted transfers feasible. - There is no user-facing JSON or other structured output mode, so follow-up parsing relies on human-readable logs and exit status.
- Best fit is artifact handoff between machines or sessions; coordination still depends on both sides sharing a code phrase and running paired sender and receiver commands.
Caveats
- On Linux and macOS, secure usage expects the secret in
CROC_SECRET; passing it on the command line requires opting back into classic mode with an explicit local-security tradeoff. - Unattended workflows are narrower than tools like
scpor object-store CLIs because a receiver still needs the matching code phrase and a live transfer session.