Skip to main content

Simple File Transfer CLI

Project description

Glitter — Simple File Transfer CLI

Glitter

Glitter is a cross‑platform, terminal‑based tool for sending files over a local network. It discovers peers automatically, confirms transfers on the receiver, and supports English/Chinese UIs.

  • OS support: Linux, macOS, Windows
  • Bilingual UI: English, 中文 (switchable in settings)
  • Peer discovery via UDP broadcast + smart replies (or manual IP entry)
  • Encrypted transfer (DH key exchange + stream cipher)
  • Device fingerprint verification (TOFU) to flag impersonation attempts
  • Integrity check (SHA-256) after receive
  • Directory transfer: send entire folders (auto-zipped, zero compression)
  • Transfer progress and live throughput (e.g. 1.2 MB/s)
  • Transfer history (JSONL) stored under user home
  • Settings for language & device name & encryption, clear history

Python 3.9+

Chinese docs: see README.zh-CN.md.

Why Glitter?

Glitter provides a simple, terminal-based alternative to GUI tools and complex protocols:

Tool Pros Cons Glitter Advantage
LocalSend Beautiful GUI, cross-platform Requires GUI environment, ~100MB+ install CLI-first: works via SSH, lightweight (~50KB), scriptable
Magic Wormhole Simple one-time codes Requires relay server, single-file only LAN-direct: no internet needed, auto-discovery, no codes to type
SFTP/SCP Universal, encrypted Needs SSH server setup, manual IP entry Zero-config: auto-discovers peers, no server setup
rsync Powerful sync engine Complex syntax, requires remote shell access Interactive: menu-driven, progress bars, history tracking
HTTP file server Simple python -m http.server No encryption, manual URL sharing Secure: DH key exchange + encryption, peer selection UI
croc End-to-end encryption, relay servers, cross-platform Requires typing codes, internet relay by default LAN-native: auto-discovery on local network, no codes needed, works offline

Use Glitter when you want:

  • Quick file sharing on LAN without leaving the terminal
  • Auto-discovery instead of typing IPs
  • Encrypted transfers without complex SSH setup
  • Minimal dependencies (pure Python, no external binaries)
  • Transfer history and bilingual UI

Quick Start

On first run, Glitter asks for language and device name and saves them. Next runs go straight to the main menu.

  • Firewall: Allow UDP 45845 and TCP 45846 (transfer port) for the app if discovery/transfer is blocked.

PyPI

Released, recommended to install and run via pipx:

  • apt install pipx # Debian/Ubuntu
  • pipx install glitter-cli
  • glitter
    • pipx upgrade glitter-cli # to update
Alternative: install via pip (not recommended)
  • pip install glitter-cli
  • glitter
    • pip install --upgrade glitter-cli # to update

GitHub

Requirements: install deps

  • Linux/macOS/WSL/Windows (PowerShell/CMD) Run:
    • git clone https://github.com/scarletkc/glitter.git
    • pip install -r requirements.txt
    • python3 -m glitter

Usage

  • glitter — Launch the interactive menu (list peers, send/receive requests, view history, configure download/encryption/auto-accept modes, etc.).
  • glitter send <peer|IP[:port]> <path> — Send a file or directory directly without the menu (peer ID or manual IP).
  • glitter peers — List peers currently discovered on the LAN.
  • glitter history — Print recent transfer history records.
  • glitter receive [--mode trusted|all] [--dir PATH] [--port PORT] — Run in auto-receive mode (trusted/all) without opening the menu.

Tip: once the initial setup is complete, you can keep Glitter running headlessly with your favourite process manager (uv run, systemd, pm2, ...).

Files & Persistence

  • Config: ~/.glitter/config.json (language, device name, transfer port, encryption, default receive directory, auto-accept mode)
  • Trusted fingerprints: ~/.glitter/known_peers.json (peer IDs and fingerprints stored after first approval)
  • History: ~/.glitter/history.jsonl (one JSON per line)
  • Default receive folder: configurable; defaults to ~/Downloads/GlitterDownloads on Windows, ~/GlitterDownloads elsewhere

Debugging

  • Enable verbose IDs in lists by setting env var GLITTER_DEBUG=1 before launch.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glitter_cli-0.5.1.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glitter_cli-0.5.1-py3-none-any.whl (43.8 kB view details)

Uploaded Python 3

File details

Details for the file glitter_cli-0.5.1.tar.gz.

File metadata

  • Download URL: glitter_cli-0.5.1.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for glitter_cli-0.5.1.tar.gz
Algorithm Hash digest
SHA256 5bd2040750ea6d190cd5292021b951b27250dcea9220137ba4acbe9dee4de805
MD5 6b5d48e53c627aceeecdda1598b9564a
BLAKE2b-256 b04c0b6822b36b8ac58fdb93df48e2f487eae38aa53cc0da1ccc946c354fb2fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for glitter_cli-0.5.1.tar.gz:

Publisher: publish.yml on scarletkc/glitter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glitter_cli-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: glitter_cli-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 43.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for glitter_cli-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 258fb5599e5df7f3ec8253f7b502cd4699cdeac101e9fe4efc268f58cad50309
MD5 45cf7fb0dfce0862a2e47d3b7453cf1d
BLAKE2b-256 c9adda36c7b64d2a8a8950b7f0214ff9e9b88ac8242b1696894c64f122db4e3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for glitter_cli-0.5.1-py3-none-any.whl:

Publisher: publish.yml on scarletkc/glitter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page