Fluidus
Install · Quick Start · Features · Threat Model · Security · Contributing
A serverless, end-to-end encrypted, terminal-based messenger for local networks and routed overlays.
Fluidus discovers peers on the same broadcast domain over UDP, connects directly over TCP, and encrypts every message end-to-end with per-session X25519 ECDH and a symmetric hash ratchet. The local SQLite database is encrypted at rest under a random per-device master key, wrapped with your PIN via Argon2id.
No accounts. No phone numbers. No central server. No telemetry. No cloud.
Features
- End-to-end encryption. X25519 ECDH for session setup; AES-256-GCM for message payloads. Every control frame is signed with Ed25519.
- Forward secrecy. One-way HMAC-SHA256 ratchet per session. Old chain keys are erased after use.
- Encrypted local storage. The entire database is encrypted under a random per-device master key, recoverable only via Argon2id(PIN).
- Serverless discovery. UDP broadcast beacons with rotating TOTP-derived code tags. No registry, no directory.
- Add by code or by IP. Works on a LAN with broadcast discovery, or across routed overlays like Tailscale, WireGuard, and ZeroTier.
- Persistent blocking. Blocked peers are stored separately and survive contact deletion; the blocked list is manageable from the menu.
- Tamper-evident audit log. HMAC-chained security events inside the encrypted database.
- PIN lockout and panic password. Exponential lockout on failed attempts; a secondary password wipes the database on demand.
- Encrypted panic password. The panic password is stored as authenticated ciphertext under Argon2id, not as a reversible hash.
- Auto-lock. Configurable idle timeout locks the app when the terminal has been quiet for too long.
- PIN change without migration. Re-wrap the master key under a new PIN from the menu, no data loss.
- Key rotation. Rotate Ed25519 and X25519 keys without re-adding contacts; pending rotations persist across restarts.
- Message pagination. Long conversations load in pages of 500; PageUp or
/olderfetches the next page. - Terminal UI. Contact list, chat log, unread badges, message history, slash commands, global search.
- Cross-platform notifications. Linux, macOS, Windows, and Termux.
Installation
Fluidus requires Python 3.9 or later.
Install from PyPI:
pip install fluidus
Or from source:
git clone https://github.com/virensahti-nl/fluidus.git
cd fluidus
python -m pip install -e ".[test]"
Verify the install:
fluidus --version
Quick Start
Launch the app:
fluidus
On first launch you will be asked for:
- Display name. Shown to peers. 1 to 40 characters, no control characters.
- Group code. A shared secret of at least 12 characters. All peers that should discover and add each other must use the same group code. It is used once to derive shared keys and never stored in plaintext.
- PIN. A strong PIN of at least 12 characters, containing all four of: lowercase, uppercase, digit, symbol. It must contain at least 8 distinct characters, must not repeat any four characters in a row, and must not contain a pattern that repeats three or more times. Used to unlock the local database.
The group code is only entered once. From then on, you unlock the app with your PIN.
Adding a contact
- On the peer's machine, press
Ctrl+Zto reveal the current 8-digit add code. - On your machine, enter that code in the "Add by 8-digit code" field.
- For routed networks, press
Iand enter the peer's IP, port, and code instead.
Starting a chat
- Select the contact in the left sidebar.
- Press
Sto send a chat request. The peer pressesYto accept. - Once a session is established, type messages in the input field and press Enter.
Press ? inside the app for the full list of shortcuts and slash commands.
Interface
Global keys
| Key | Action |
|---|---|
M |
Open the action menu |
? |
Show help |
Ctrl+Z |
Show your 8-digit add code |
Ctrl+F |
Search all messages |
Ctrl+L |
Lock the app |
Ctrl+Q |
Quit |
Chat shortcuts
| Key | Action |
|---|---|
A |
Focus the add-by-code input |
I |
Add by IP |
S |
Start or reconnect a chat |
Y / X |
Accept / reject a chat or add request |
C / D |
Clear history / delete contact |
T |
Stop the current chat session |
V |
Verify contact safety numbers |
Up / Down |
Navigate message history |
PageUp |
Load older messages |
Slash commands
| Command | Action |
|---|---|
/help |
Show help |
/menu |
Open the action menu |
/addip |
Add by IP and port |
/address |
Show your IPs and port |
/code |
Show your add code |
/verify |
Show the safety number for the current contact |
/find <text> |
Search messages with the current contact |
/reply <id> <text> |
Reply to a specific message |
/react <id> <emoji> |
React to a specific message |
/clear |
Clear local history with the current contact |
/clearall |
Ask the peer to clear the history on both sides |
/stop |
Stop the chat session |
/older |
Load older messages |
/del <id> |
Delete a specific message |
/del |
Delete the most recent message |
/block |
Block the currently selected contact |
/unblock <name> |
Unblock a name |
/blocked |
Open the blocked contacts screen |
/changepin |
Change the unlock PIN |
/rotations |
Show pending key rotations |
/version |
Print the current version |
Security
The cryptographic primitives are Ed25519, X25519, AES-256-GCM, HKDF-SHA256, HMAC-SHA256, PBKDF2-HMAC-SHA256, and Argon2id. Message bodies are padded to 256-byte blocks to hide plaintext length. Database rows are bound to their context via AAD so ciphertexts cannot be swapped between rows.
The panic password is stored as v1: followed by Base64 of nonce || AES-256-GCM(Argon2id(pin, salt), 32-byte marker). There is no reversible path back to the PIN, and the raw Argon2id output is never written to disk. Verification requires running the full Argon2id KDF and passing the 128-bit GCM authentication tag, followed by a constant-time comparison against the fixed marker.
Fluidus defends against passive network observers, active network attackers without keys, replay, database theft, PIN brute-force, offline brute-force of the panic password, and unwanted peers through persistent blocking. It does not defend against a rooted device while unlocked, traffic analysis, a compromised peer, or a first-contact man-in-the-middle without out-of-band safety-number verification. It has not been independently audited.
The full threat model, including assumptions, adversary capabilities, and residual risk, is in THREAT_MODEL.md. Reporting information and known limitations are in SECURITY.md.
Configuration and Storage
| Path | Purpose |
|---|---|
~/.fluidus/ |
Base directory, mode 0700 |
~/.fluidus/fluidus.db |
Encrypted SQLite database, mode 0600 |
~/.fluidus/fluidus.db-wal |
SQLite WAL file |
~/.fluidus/fluidus.db-shm |
SQLite shared memory file |
~/.fluidus/fluidus.db-journal |
SQLite rollback journal |
| Port | Protocol | Purpose |
|---|---|---|
50505/udp |
UDP broadcast | Discovery beacons |
50510-50600/tcp |
TCP | Peer-to-peer control and message frames |
The TCP port is chosen on first launch from the range and stored in the encrypted identity record. If the port is already in use on startup, a new one is selected automatically.
To back up Fluidus, copy ~/.fluidus/fluidus.db (and the -wal and -shm files while the app is running) to a secure location. The backup is useless without the PIN.
Changelog
v1.0.0
- Initial release of Fluidus.
- Serverless UDP discovery with rotating TOTP-derived code tags.
- Per-session X25519 ECDH and HMAC-SHA256 hash ratchet.
- Ed25519 signatures on every control and message frame.
- AES-256-GCM message payloads padded to 256-byte blocks.
- Encrypted local SQLite database under a random per-device master key wrapped with Argon2id(PIN).
- HMAC-chained audit log inside the encrypted database.
- PIN lockout on repeated failed attempts.
- Encrypted panic password (authenticated ciphertext under Argon2id).
- Persistent blocklist that survives contact deletion.
- Auto-lock, PIN change, and key rotation.
- Message pagination and global search.
- Terminal UI with contact list, chat log, unread badges, and slash commands.
- Cross-platform desktop notifications on Linux, macOS, Windows, and Termux.
Contributing
Issues and pull requests are welcome. Please:
- Open an issue before a large change so the design can be discussed.
- Include a test for any behavioral change.
- Run
pytestbefore opening a pull request. - For anything security-related, follow the note in
SECURITY.md.
License
MIT. See LICENSE.
Fluidus is provided as-is, without warranty of any kind. Review the threat model before relying on it for sensitive communication.
Metadata
Release files for fluidus 1.0.0
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 |
|---|---|---|---|---|
| fluidus-1.0.0.tar.gz | 76.8 kB | With provenance | Details for fluidus-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fluidus-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fluidus-1.0.0-py3-none-any.whl |
Total release size: 138.2 kB
Release files / fluidus-1.0.0.tar.gz
| Download URL | fluidus-1.0.0.tar.gz |
|---|---|
| Size | 76.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24bd2cb14c8c511f269eee1a930d470f4f901f9d5308d8f27166d918db1737d2
|
|
BLAKE2b-256 checksum How to use checksums |
4eda7ad3c09be46c56740ecd6f9d7ff282fc2e90dd373010271da72565463d66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / fluidus-1.0.0-py3-none-any.whl
| Download URL | fluidus-1.0.0-py3-none-any.whl |
|---|---|
| Size | 61.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87d52ec9359c557f341a25cedac1e4f3f2814e034de8d14cd1260e0ce8532879
|
|
BLAKE2b-256 checksum How to use checksums |
fb829b77f2c1b5d501048913aecace44c3bf4150ef42e359a566b78e644e4df6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for fluidus 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fluidus-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA 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.