onion-chat
Anonymous encrypted IRC chat over Tor.
- AES-256-GCM + Ed25519 signatures
- Per-sender ratchet chain (PFS/PCS)
- Message padding against traffic analysis
- Identity keys persisted in
~/.config/onion-chat/
Install
pip install -e .
Requires Tor on 127.0.0.1:9050.
Run
onion-chat
First run generates ~/.config/onion-chat/channel-secret.json. Share it with peers out-of-band (OnionShare/USB/in person). Never paste it in logs.
To join a peer's channel, place their channel-secret.json in ~/.config/onion-chat/ and run.
Env
| Var | Default |
|---|---|
IRC_SERVER |
irc.oftc.net |
IRC_PORT |
6697 |
IRC_TLS |
1 |
NICK |
anon<random> |
INFO |
from file |
SECRET_PHRASE |
from file |
CHANNEL |
from file |
SECRET_FILE |
~/.config/onion-chat/channel-secret.json |
Keys
| File | Purpose |
|---|---|
~/.config/onion-chat/identity.pem |
Ed25519 identity key (persistent, 0600) |
~/.config/onion-chat/channel-secret.json |
Channel + INFO + SECRET_PHRASE (0600) |
Commands
Type in any buffer.
| Command | Action |
|---|---|
/help |
list commands |
/menu |
open settings menu (*status*) |
/join #chan |
join/switch channel |
/query nick |
open private chat |
/close |
close current buffer |
/clear |
clear current buffer |
/buffers |
list open buffers |
/nick <name> |
change nickname |
/set <key> <val> |
change setting (see below) |
/connect |
apply settings and connect |
/reconnect |
force reconnect |
/exit |
quit |
Ctrl+X switches between buffers.
/set keys
| Key | Values |
|---|---|
server |
IRC server |
port |
IRC port |
tls |
0/1 |
channel |
#name |
nick |
nickname |
info |
HKDF info (applied with /connect) |
secret |
HKDF secret (applied with /connect) |
/connect reuses the existing channel key unless both info and secret are set via /set.
Metadata
Release files for onion-chat 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| onion_chat-0.1.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| onion_chat-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / onion_chat-0.1.tar.gz
| Download URL | onion_chat-0.1.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4587529e7a047f049510107a966208b8223556b5712d0ebee7f028f9ba93721f
|
|
BLAKE2b-256 checksum How to use checksums |
90ab7eea2aa85a3cb86af8cff5e4b6867c10e2110dcf117b00e80379d81676e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 18, 2026.
Transparency logRelease files / onion_chat-0.1-py3-none-any.whl
| Download URL | onion_chat-0.1-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75efe6f7f1eea867277029b186804c2474d2d7750ba3ae29bcc0fd9551d9ecad
|
|
BLAKE2b-256 checksum How to use checksums |
7a16c7ccd64b583085db7db5c66b21a7fd080a2dfd20c56ad4e982f9cd69eda3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 18, 2026.
Transparency log