Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

croc

$ croc Community Med Risk
Zack Scholl · Files & Search · MIT · macos / linux / windows

croc 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.

FCRS-1.0 Score
73 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install croc
CLI vs MCP Decision CLI Only

Direct P2P/relay encrypted byte streaming belongs in croc without routing binary payloads through MCP context.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

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 --yes and CROC_SECRET env var support
  • No --json output; blocks synchronously until peer handshakes
Trust & Safety 17 / 25

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 --code exposes secret in process list unless CROC_SECRET is used
Setup & Portability 14 / 15

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
Utility & Efficiency 12 / 15

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
Maintenance & Lineage 8 / 10

Widely adopted MIT-licensed Go tool (schollz/croc) with active maintenance.

  • Popular, actively maintained GitHub project
Docs & Verifiability 8 / 10

Clear README documentation covering flags, self-hosted relays, and CROC_SECRET usage.

  • Documented CLI flags and --help output

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Ephemeral PAKE code phrases passed via --code or CROC_SECRET env var; optional custom relay password via --pass.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

100% free OSS (MIT); default public relay is free, or self-host croc relay.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Verify installed croc binary and options
croc --version

Checks the local croc version without opening network relay connections.

Controlled Writes & Previews

Receive an encrypted transfer non-interactively
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.
  • + --yes and CROC_SECRET allow headless automation without interactive [y/N] hangs.

Caveats & Pitfalls

  • ! croc send and croc receive block indefinitely until a peer connects unless wrapped with a timeout.
  • ! No --json status output; emits terminal progress bars.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI