Skip to main content

qrtunnel

qrtunnel is a cross-platform tool for immediate file sharing via QR codes. It utilizes SSH reverse tunneling and local networking to bridge the gap between a computer and mobile devices, enabling file transfers even behind NAT or restrictive firewalls without requiring an account.

Features

  • Interactive Terminal User Interface (TUI): A keyboard-driven interface for file selection, mode configuration, and port management.
  • Smart Mode: Simultaneously establishes a public tunnel and a local LAN server. The recipient device automatically detects the fastest available path (LAN or WAN).
  • High-Speed LAN Transfers: Directly shares files over the local network for maximum speed and privacy.
  • One-Time Password (OTP) Security: Local network access is protected by a 6-digit passcode displayed only on the host machine.
  • Account-Free Tunneling: Uses SSH-based tunneling (via localhost.run) by default on Linux and macOS, requiring no registration.
  • Cloudflare Tunnel Support: Can use cloudflared quick tunnels as another account-free public backend.
  • Ngrok Integration: Support for ngrok tunnels, providing an alternative for secure public access.
  • Multi-File and Directory Sharing: Capability to share individual files, batches, or entire directories.
  • Two-Way Sharing: Supports both sending files from the computer and receiving uploads from mobile devices.

Installation

System Requirements

Requirement Minimum
Python 3.8+
OS Linux, macOS, Windows
ssh binary Required for SSH mode on Linux/macOS
ngrok Required for ngrok mode
pip install qrtunnel

Usage

1. Interactive TUI (Default)

Running qrtunnel without arguments launches the interactive interface.

qrtunnel

qrtunnel TUI file selection

TUI Navigation

  • Up/Down Arrows: Move the selection cursor.
  • Enter / Right Arrow: Confirm selection or proceed to the next screen.
  • Left Arrow: Return to the previous screen.
  • Space / Enter: Toggle file selection in the file picker.
  • Forward Slash ( / ): Enter search mode within the file picker to filter files by name.
  • Escape (ESC): Cancel search mode.
  • Q / Ctrl+C: Exit the application.

2. Command Line Interface (CLI)

The CLI supports subcommands for direct execution and scripting.

Sending Files

# General syntax
qrtunnel send <path1> <path2> ... [options]

# Example: Share a file and a folder using a specific port
qrtunnel send report.pdf data/ -8080

# Example: Force LAN-only mode
qrtunnel send images/ -lan

Receiving Files

# Receive files into the current directory
qrtunnel receive

# Receive files into a specific directory using ngrok
qrtunnel receive ./uploads -ngrok

Transfer History

qrtunnel history
qrtunnel history --limit 5

Tunneling Options

Option Description
-smart (Default) Enables both LAN and Public Tunnel with auto-detection.
-lan LAN only. Fastest transfer, accessible only on the same Wi-Fi.
-ssh Public link via localhost.run. No account required.
-ngrok Public link via ngrok. Requires an authtoken.

Configuration and Ports

  • Configuration and Ports: The tool defaults to a random port between 20000 and 60000. Users can specify a port using -p <port> or the shorthand -<port> (e.g., -9000).

Limitations

  • localhost.run may enforce rate limits or session duration limits.
  • ngrok free-tier accounts may have tunnel, bandwidth, or session limits.
  • Anyone with the active transfer URL and LAN passcode can access the session.
  • The LAN OTP is valid for the full session and is not invalidated after first use.
  • qrtunnel is intended for convenience sharing, not sensitive or regulated data.

Security

qrtunnel is designed for short-lived convenience transfers between devices you control. LAN access is protected by a randomized 6-digit OTP, and the server listens on a selected local port for the current session.

Public tunnel URLs are bearer links: anyone who receives the active URL can reach the transfer page while the session is running. Traffic that uses third-party tunnel providers is subject to those providers' transport, logging, and account policies.

License

MIT

Metadata

Release files for qrtunnel 3.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qrtunnel 3.7.1
File Size Uploaded Provenance Actions
qrtunnel-3.7.1.tar.gz 43.6 kB Without provenance Details for qrtunnel-3.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qrtunnel 3.7.1
File Interpreter ABI Platform Actions
qrtunnel-3.7.1-py3-none-any.whl Python 3 none any Details for qrtunnel-3.7.1-py3-none-any.whl

Total release size: 82.1 kB

Release files / qrtunnel-3.7.1.tar.gz

Download URL qrtunnel-3.7.1.tar.gz
Size 43.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6ff060c6f43515a44f5c0caf6aafe5c5dc00f712ace3f2b938eeab6231d5ed46
BLAKE2b-256 checksum
How to use checksums
63cefdccbfd7287103801d6e39eca647698202b5edb69e0d79e93acf52dafb22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / qrtunnel-3.7.1-py3-none-any.whl

Download URL qrtunnel-3.7.1-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e42dbcb87fa5d09eff20872de697d32f8e728eefa989c77c0560c90a218b666
BLAKE2b-256 checksum
How to use checksums
9917b71a7d830f16fae2404ff9afe60142e8996fae5e8b118742c464b42ba00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for qrtunnel 3.7.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page