A lightweight, modular Python CLI implementation of the LocalSend Protocol (v2). This tool allows you to discover devices, send files, and receive data directly from your terminal, fully compatible with official LocalSend clients.
- Device Discovery: Scan your local network for active LocalSend instances.
- File Transfer: Send one or multiple files to any LocalSend-enabled device.
- Receiver Mode: Start a local server to receive files, folders, or text messages.
- Self-Signed TLS: Automatic generation of required SSL certificates for secure transfers.
pip install localsend-cliFind other LocalSend devices on your network using UDP multicast.
localsend-cli scanOptions:
--timeout <seconds>: Duration to listen for responses (default: 5).--json: Output as a stream of JSON objects.--clean: Output only IP addresses.
Send files to a specific target IP.
localsend-cli send <device-ip> image.png report.pdfOptions:
--port <port>: Target port if different from default (53317). You dont need to change this most of the time.--json: Progress and status in JSON format.
Start a server to wait for incoming transfers.
localsend-cli receive --output ./incomingOptions:
--output <dir>: Directory to save received files (default: current directory).--pin <code >: Require a specific PIN from the sender.--json: Event-based JSON output (ready, incoming, saved, etc.).
Localsend Protocol: https://github.com/localsend/protocol