# SP2P

> SP2P is an open-source, end-to-end encrypted peer-to-peer transfer service. Agents can use its CLI for files and folders, incremental rsync, and one-use TCP, Unix-socket, or stdio streams, with JSON Lines lifecycle events.

Use the agent guide for the complete command contract. A transfer code is a secret capability: it lets its holder join the transfer and must not be placed in public logs or shared beyond the intended recipient.

## Agent integration

- [Choose a workflow](/llm#choose-a-workflow): Map files, archives, pipes, rsync, sockets, and duplex stdio to the correct command.
- [Files, folders, and pipes](/llm#files-folders-and-pipes): Browser-compatible file transfer, multiple-root archives, and one-way stdin/stdout.
- [Rsync synchronization](/llm#rsync-synchronization): Two option-selection modes, prerequisites, update/delete behavior, and completion.
- [Socket forwarding](/llm#socket-forwarding): TCP, Unix, mixed-endpoint, and duplex stdio tunnels.
- [Automation events and status](/llm#automation-events-and-status): JSON schema 1, subprocess bytes, status snapshots, and terminal results.
- [Relay decisions](/llm#respond-when-relay-is-required): Temporary response-file consent and unattended policy.
- [Agent skill](/.well-known/agent-skills/sp2p/SKILL.md): Installable Agent Skill for skill-aware agents; install with `npx skills add https://sp2p.io`.
- [Agent handoff prompts](/llm#agent-handoff-prompts): Required source, destination, endpoint, and code ownership context.
- [Full agent guide](/llms-full.txt): The same complete guide in a conventional full-context location.

## Project resources

- [SP2P repository](https://github.com/zyno-io/sp2p): Source code, releases, issue tracker, and complete README.
- [CLI manual](https://github.com/zyno-io/sp2p/blob/main/man/sp2p.1): Human-readable command reference.
