Rune
Rune is an encrypted terminal chat application built with Python and Textual. It provides a terminal user interface for creating or joining a two-person chat room through a relay server while keeping chat message contents end-to-end encrypted between the two clients.
The project goal is to make private peer-to-peer style messaging usable from the terminal. The relay server coordinates connections, invite codes, room pairing, and encrypted payload forwarding, but it does not receive plaintext chat messages or private keys.
Prerequisites
Rune requires:
- Python 3.13 or newer
- A terminal that can run Textual applications
pipfor normal installationuvfor local development workflows
The application depends on Textual for the TUI, PyNaCl for client-side encryption, and cachetools for relay invite expiration behavior.
Install
Install the published package from PyPI:
pip install rune-chat
After installation, launch the client TUI with:
rune
Launch the relay server TUI with:
rune server
You can also pass server options:
rune server --host localhost --port 5001 --invite-code-ttl-seconds 300
Basic Usage
Start the relay server first:
rune server
Then start two client terminals:
rune
In the first client, connect to the relay and create a room:
/connect
/create
Share the generated invite code with the second client. In the second client:
/connect
/join
The /join command opens a modal where the invite code can be entered.
Developer Notes
Install development dependencies with uv:
uv sync --dev
Run the client in development:
make run
Run the server in development:
make server
Run the client with Textual dev tooling:
make client-dev
Run the server with Textual dev tooling:
make server-dev
Open the Textual console:
make dev-console
Run tests:
make test
Run linting:
make lint
Format code:
make format
Apply automatic lint fixes and formatting:
make fix
Build the package:
make build
Security Model
Rune uses fresh temporary PyNaCl key pairs for each chat session. Public keys are exchanged through the relay as part of invite creation and joining. Private keys remain in memory on each client and are not written to disk.
Chat messages are encrypted locally before being sent to the relay. The relay forwards only encrypted payloads containing ciphertext and nonces. It can still observe metadata such as connection timing, invite usage, payload size, and room pairing state.
Metadata
Release files for rune-chat 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 |
|---|---|---|---|---|
| rune_chat-1.0.0.tar.gz | 24.5 kB | Without provenance | Details for rune_chat-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rune_chat-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for rune_chat-1.0.0-py3-none-any.whl |
Total release size: 61.4 kB
Release files / rune_chat-1.0.0.tar.gz
| Download URL | rune_chat-1.0.0.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b51314ad4956325f4c5775d4b9bd61a3ee7bc5675a5bd9a5d9c4e0333188386
|
|
BLAKE2b-256 checksum How to use checksums |
6d95574fbe8fdbe79a638fb1c80ae44d236613815ed997915ab6952771c6a1d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Release files / rune_chat-1.0.0-py3-none-any.whl
| Download URL | rune_chat-1.0.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58cd51532877499637edc79244fe718e1f8e71bec457c8c6ab8df7fd866c1e2e
|
|
BLAKE2b-256 checksum How to use checksums |
2f708872ef5d169162fa6afc16814cc4f9de04938f6daa10943a4db041107b8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Security for rune-chat 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.
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.