Simple LAN File Transfer CLI.
Project description
Glitter — Simple LAN File Transfer CLI
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
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/Ubuntupipx install glitter-cliglitterpipx upgrade glitter-cli# to update
Alternative: install via pip (not recommended)
pip install glitter-cliglitterpip install --upgrade glitter-cli# to update
GitHub
- For Windows: exe
Requirements: install deps
- Linux/macOS/WSL/Windows (PowerShell/CMD) Run:
git clone https://github.com/scarletkc/glitter.gitpip install -r requirements.txtpython3 -m glitter
Usage
- [1] List peers: Show online devices (name/IP/version)
- [2] Send file: Select a peer or enter an IP(v4/v6:port) and input a path (quotes are allowed)
- [3] Incoming requests: Review transfer requests; Accept/Decline and choose a save directory
- [4] Check updates: Open‑source repo link and latest version info
- [5] History: Show the latest transfer records
- [6] Settings: Change language/device name/port/encryption, clear history or trusted fingerprints
- [7] Quit: Exit the program
Files & Persistence
- Config:
~/.glitter/config.json(language, device name, transfer port, encryption) - Trusted fingerprints:
~/.glitter/known_peers.json(peer IDs and fingerprints stored after first approval) - History:
~/.glitter/history.jsonl(one JSON per line) - Default download folder:
~/Downloads/GlitterDownloadson Windows,~/GlitterDownloadselsewhere
Debugging
- Enable verbose IDs in lists by setting env var
GLITTER_DEBUG=1before launch.
Roadmap / Ideas
- Drag‑and‑drop TUI, multi‑file queue
- Service mode and auto‑accept rules
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glitter_cli-0.1.14.tar.gz.
File metadata
- Download URL: glitter_cli-0.1.14.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa5c20cddb86645507ff1e2a47dfbc29d682b255f633fbcc8a46c3cab85f6946
|
|
| MD5 |
b17d351e8dc3deabcc3877927a6f5842
|
|
| BLAKE2b-256 |
ca9900bf6076178838277f1ba299bd679d396c072bacd69a20c5a2b71dc00c79
|
Provenance
The following attestation bundles were made for glitter_cli-0.1.14.tar.gz:
Publisher:
publish.yml on scarletkc/glitter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glitter_cli-0.1.14.tar.gz -
Subject digest:
aa5c20cddb86645507ff1e2a47dfbc29d682b255f633fbcc8a46c3cab85f6946 - Sigstore transparency entry: 661759681
- Sigstore integration time:
-
Permalink:
scarletkc/glitter@4257923e8c0dd23f67cb61b72db2b60ebc3e17d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scarletkc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4257923e8c0dd23f67cb61b72db2b60ebc3e17d7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file glitter_cli-0.1.14-py3-none-any.whl.
File metadata
- Download URL: glitter_cli-0.1.14-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
313e790d6c2f7f86737d86c223b70741c1c00e6ecb8cec01f7c13c4839fa8223
|
|
| MD5 |
41def956a5b7479a4fb1478682b77dad
|
|
| BLAKE2b-256 |
64b9bffb73126b48da6283ae9b2e06031ca8fdc426a6187761d8c4d8b7ca583a
|
Provenance
The following attestation bundles were made for glitter_cli-0.1.14-py3-none-any.whl:
Publisher:
publish.yml on scarletkc/glitter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glitter_cli-0.1.14-py3-none-any.whl -
Subject digest:
313e790d6c2f7f86737d86c223b70741c1c00e6ecb8cec01f7c13c4839fa8223 - Sigstore transparency entry: 661759683
- Sigstore integration time:
-
Permalink:
scarletkc/glitter@4257923e8c0dd23f67cb61b72db2b60ebc3e17d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scarletkc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4257923e8c0dd23f67cb61b72db2b60ebc3e17d7 -
Trigger Event:
push
-
Statement type: