Scripts2026年7月20日·1 分钟阅读

qrcp — Transfer Files Over Wi-Fi by Scanning a QR Code

A command-line tool that generates a QR code in the terminal to transfer files between your computer and mobile device over the local network. No app installation required on the receiving end.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
qrcp
直接安装命令
npx -y tokrepo@latest install 9ba3f294-8457-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

qrcp creates a temporary HTTP server on your machine and displays a QR code in the terminal. Scanning the QR code from any device on the same network opens a browser page to download or upload files. No client app is needed.

What qrcp Does

  • Generates a terminal QR code pointing to a temporary local HTTP server
  • Allows sending files from computer to phone by scanning and downloading
  • Allows receiving files from phone to computer via a browser upload page
  • Supports sending multiple files at once, automatically zipped
  • Works across any device with a browser on the same Wi-Fi network

Architecture Overview

qrcp is a single Go binary that starts an HTTP server bound to a local network interface. It encodes the server URL into a QR code rendered in the terminal using Unicode characters. The server serves the file for download or presents an upload form for receiving. After the transfer completes, the server shuts down automatically.

Self-Hosting & Configuration

  • Install via Homebrew, AUR, Scoop, or go install
  • On first run, qrcp will prompt you to select the network interface
  • Configuration is stored at ~/.config/qrcp/config.json
  • Custom port and path can be set via flags or the config file
  • Supports HTTPS with custom certificates for secure transfers

Key Features

  • Zero-dependency file transfers without installing apps on the receiver
  • Automatic zip compression when sending multiple files
  • Works with any device that has a browser and camera
  • Configurable network interface selection for multi-NIC setups
  • Clean terminal QR rendering that works in most terminal emulators

Comparison with Similar Tools

  • AirDrop — Apple-only; qrcp works across all platforms and operating systems
  • croc — requires installing a CLI on both ends; qrcp needs only a browser on the receiver
  • magic-wormhole — CLI on both ends; qrcp uses QR code plus browser
  • KDE Connect — requires app installation and pairing; qrcp is instant and app-free
  • Snapdrop/LocalSend — browser or app based; qrcp is fully terminal-native on the sender side

FAQ

Q: Does qrcp work without internet access? A: Yes. It only requires both devices to be on the same local network.

Q: Can I send directories? A: Yes. qrcp automatically zips directories before serving them.

Q: Is the transfer secure? A: By default it uses plain HTTP on the local network. You can enable HTTPS with a custom certificate.

Q: Does it work over SSH? A: The QR code displays in the terminal, so it works in SSH sessions if the terminal supports Unicode.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产