croc
$ croc Community Med Riskcroc transfers files and folders between any two machines using PAKE-authenticated AES-256 end-to-end encryption and automatic NAT traversal or relay fallback. Passing --yes and --code (or CROC_SECRET) allows unattended transfers, though commands block until the peer completes handshakes.
brew install croc Direct P2P/relay encrypted byte streaming belongs in croc without routing binary payloads through MCP context.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --yes, --overwrite, and CROC_SECRET for non-TTY scripting, but emits human progress bars with no --json mode and blocks awaiting peers.
- Non-interactive
--yesandCROC_SECRETenv var support - No
--jsonoutput; blocks synchronously until peer handshakes
Strong PAKE + AES-256 E2E encryption, though default transfers traverse public relays and --overwrite can replace local files.
- E2E encrypted via PAKE; optional private
--relay - Passing code via
--codeexposes secret in process list unlessCROC_SECRETis used
Static Go binary packaged across Homebrew, apt, winget, Scoop, go install, and GitHub releases on macOS, Linux, and Windows.
- Zero-dependency static binary across major OSes
Solves ad-hoc cross-NAT file delivery in one command without SSH port forwarding or cloud uploads.
- Automatic P2P hole-punching with relay fallback and resume support
Widely adopted MIT-licensed Go tool (schollz/croc) with active maintenance.
- Popular, actively maintained GitHub project
Clear README documentation covering flags, self-hosted relays, and CROC_SECRET usage.
- Documented CLI flags and
--helpoutput
Security, Auth & Guardrails
Ephemeral PAKE code phrases passed via --code or CROC_SECRET env var; optional custom relay password via --pass.
100% free OSS (MIT); default public relay is free, or self-host croc relay.
# croc Agent Rules - Pass transfer secrets via `CROC_SECRET` instead of `--code` on multi-user systems, and always pass `--yes` when receiving in headless shells. - Note `croc send` blocks until a peer connects; run with a timeout or explicit background job.
Agent-Ready Command Recipes
Safe Read-Only Queries
croc --version
Checks the local croc version without opening network relay connections.
Controlled Writes & Previews
CROC_SECRET="amber-river-42" croc --yes --out ./incoming
Uses CROC_SECRET (avoiding process-arg secret exposure) and --yes to accept into ./incoming without a TTY prompt.
Strengths for Agents
- + Zero-setup PAKE end-to-end encrypted transfer across NATs and firewalls.
- +
--yesandCROC_SECRETallow headless automation without interactive[y/N]hangs.
Caveats & Pitfalls
- !
croc sendandcrocreceive block indefinitely until a peer connects unless wrapped with a timeout. - ! No
--jsonstatus output; emits terminal progress bars.