deadrop
Passcode-authenticated, ephemeral cloud pipeline file transfer and selective extraction CLI.
deadrop is a fast, zero-configuration command-line tool for sharing files and folders across machines using simple, human-readable keys (3 letters + 4 digits, e.g. abc-1234). It includes built-in archive inspection, selective file extraction, JSON manifest export, automatic unzipping, TTL expiration management, and headless/AI-agent friendly flags.
Features
- Zero Config: No account or login required. Upload and get a short key instantly.
- Human-Readable Keys: Standard format
[a-z]{3}-[0-9]{4}(e.g.xyz-9876). - Selective Extraction: Inspect zip contents before extracting. Download only the specific files you need by index, exact name, or wildcard pattern.
- Remote Inspection (
-i see): Preview all files and sizes inside a drop directly in your console without downloading or saving anything to disk. - JSON Metadata Export (
-i getjson): Generate detailed JSON manifests of drop contents. - Headless & Script Friendly: Explicit flags (
-cr,-dl,-cx) eliminate interactive prompts for CI/CD pipelines, shell scripts, and autonomous AI coding agents. - Auto-Packaging: Automatically packages folders, multi-file arguments, or executable/sensitive scripts into a secure zip archive.
- Auto TTL & Key Management: Configurable time-to-live (
-1d,-12h,-30m), rekeying, and deadline extension. - Path Traversal Protection: Safe extraction prevents zip-slip vulnerabilities.
Installation
Install via pip:
pip install deadrop
Or upgrade to the latest version:
pip install --upgrade deadrop
Requirements: Python 3.7+. Uses standard Python libraries only (zero heavy external dependencies).
Quick Start
1. Upload a File or Folder
# Upload a single file
deadrop up document.pdf
# Upload a folder
deadrop up ./my-project
# Upload with custom key and custom expiration (12 hours)
deadrop up ./src -key dev-4040 -12h
Output:
› staging my-project.zip
✔ uploaded my-project.zip
· key pyt-1234
· expires 24h
2. Download or Unpack
# Full download and unpack to current folder (non-interactive)
deadrop down pyt-1234 -uz -cr
# Preview files inside the drop without downloading
deadrop down pyt-1234 -i see
# Selectively extract specific files by name
deadrop down pyt-1234 -i sname "main.py, config.json" -cr
# Interactive file picker
deadrop down pyt-1234 -i
Complete Command Reference
1. deadrop up — Upload Files and Folders
Uploads one or more local files or directories to the gateway.
deadrop up <path> [<path> ...] [-n name] [-e ext] [-key ABC-1234] [-<time_flag>]
| Option | Description | Example |
|---|---|---|
<path> ... |
One or more file or directory paths to upload. | deadrop up main.py utils.py |
-n <name> |
Custom base filename for the uploaded drop. | deadrop up data/ -n my_backup |
-e <ext> |
Custom file extension override. | deadrop up archive -e tar.gz |
-key <key> |
Custom 3-letter + 4-number key ([a-zA-Z]{3}-\d{4}). |
deadrop up file.txt -key abc-1234 |
-<time_flag> |
Time-to-live expiration flag (d = days, h = hours, m = minutes). Default: 24 hours (-1d). |
-2d, -12h, -30m, -1d_12h |
Packaging Behavior: Folders, multiple files, or sensitive script/executable types (
.py,.sh,.bat,.exe,.js, etc.) are automatically packed into a zip archive for safe staging and staging bypass.
2. deadrop down — Download, Preview & Extract
Downloads a drop from the gateway using its key.
deadrop down <key> [-uz] [-i [subcommand] [args]] [-dl | -cr | -cx [path]]
Destination Flags (Non-Interactive / Headless)
By default, deadrop down prompts you to choose a download location. Pass one of these flags to skip the prompt:
| Flag | Description |
|---|---|
-cr |
Save/extract directly into the current working directory. |
-dl |
Save/extract into the user's Downloads folder (~/Downloads). |
-cx <path> |
Save/extract into a custom directory path (e.g. -cx /tmp/build). |
Archive & Extraction Options
| Option | Description |
|---|---|
-uz |
Unzip the downloaded .zip archive automatically upon completion. |
-i |
Launch Interactive Mode. Automatically enables unzipping. Lists all files alphabetically without parent folder clutter and prompts for selection. |
-i see |
Inspect Only: Fetches metadata to temp, prints all files and formatted sizes sorted alphabetically in the terminal, cleans up, and exits. Does not prompt for a download folder. |
-i getjson |
Export Metadata: Downloads drop to temp, exports a complete JSON file (<folder>-dd.json) listing all file details, and deletes the temporary payload. |
-i snum <range> |
Direct Number Selection: Extracts files by index or range (e.g. -i snum "1-3,5"). |
-i sname <names> |
Direct Name Selection: Extracts files matching exact names (comma-separated, whitespace-tolerant, e.g. -i sname "app.py, utils.py"). |
-i spat <patterns> |
Direct Wildcard Selection: Extracts files matching glob patterns (e.g. -i spat "*.py, *.json"). |
Extraction Suffix Protection (-dd)
When extracting a zip archive that contains a top-level directory (e.g. project/), deadrop automatically appends -dd to the extracted root folder (e.g. project-dd/). This prevents accidental overwriting of existing local source folders.
3. deadrop info — Inspect Drop Metadata
Checks if a key is active, displays the files contained, and shows remaining time before expiration without downloading.
deadrop info <key>
Example:
· Drop Tracking Information: pyt-1234
· Active TTL Remaining: 23h 45m
· Trackable Manifest Nodes (1):
- project.zip
4. deadrop clear — Purge a Drop
Immediately and permanently purges the drop mapping and deletes the file from storage.
deadrop clear <key>
5. deadrop extend — Extend Drop Expiration
Increases the active lifetime of an existing drop.
deadrop extend <key> -<time_flag>
Example:
# Add 2 more days to abc-1234
deadrop extend abc-1234 -2d
6. deadrop rekey — Remap Drop Key
Reassigns an existing drop to a new key.
deadrop rekey <old_key> <new_key>
Example:
deadrop rekey pyt-1234 dev-5678
7. deadrop ping — Health Check
Tests network connectivity, latency, and operational status of the gateway backend.
deadrop ping
8. deadrop version — Check Engine Version
Displays the current version of the CLI client.
deadrop version
AI Agent & Automation Guidelines
If you are an AI coding assistant, subagent, or automation script interacting with deadrop, follow these guidelines to prevent hangs:
- Avoid Blocking Prompts:
- Always supply
-cr(current directory) or-dl(downloads directory) to avoid interactive destination prompts onstdin.
- Always supply
- Inspect Before Download:
- Use
deadrop down <key> -i seeto preview what files exist inside the drop without downloading anything to disk.
- Use
- Selective Extraction:
- To extract only relevant source files:
deadrop down <key> -i spat "*.py,*.json" -cr
- To extract only relevant source files:
- Full Unpack:
- To fetch and extract all files unattended:
deadrop down <key> -uz -cr
- To fetch and extract all files unattended:
- Manifest Extraction:
- To inspect file trees programmatically, run:
deadrop down <key> -i getjson -cr
- Then parse the generated
<name>-dd.jsonfile.
- To inspect file trees programmatically, run:
Environment Variables
| Variable | Default | Description |
|---|---|---|
DEADROP_BACKEND_API |
https://deadrop-kk8h.onrender.com |
URL of the gateway server backend. Can be overridden for private or self-hosted deployments. |
License
MIT License. See LICENSE for details.
Metadata
Release files for deadrop 2.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deadrop-2.4.5.tar.gz | 18.6 kB | Without provenance | Details for deadrop-2.4.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deadrop-2.4.5-py3-none-any.whl | Python 3 | none | any | Details for deadrop-2.4.5-py3-none-any.whl |
Total release size: 33.8 kB
Release files / deadrop-2.4.5.tar.gz
| Download URL | deadrop-2.4.5.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
476a8dc703ec892a238d0e7ebd5379dcbcf31606b9896ac15d223a736a6ae743
|
|
BLAKE2b-256 checksum How to use checksums |
032e080096b829e2fcae31ace4c522cb7f4a81f0416143e2b289391dbdf8836e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / deadrop-2.4.5-py3-none-any.whl
| Download URL | deadrop-2.4.5-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
771dd7e9aa847ef6f990dd9cd76fd71fa79a7060e4c7e89667f1fa2503f55543
|
|
BLAKE2b-256 checksum How to use checksums |
a1f1df432906a900fa3d6fb364df5cc4014de3b605c7af36c5addd94baa48f65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for deadrop 2.4.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.