mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
The entry of a pair is set up with one command: `ssh spark2 cat .config/qwen38/api-key | python3 pair.py add spark2 http://spark2:30001`. The key is read on standard input (or asked without echo), never on a command line, and kept in ~/.config/qwen38/pair/<name>.key, mode 600 in a folder of mode 700; pair.json names the file, never the key. Before writing, the other box is asked its list with that key, as the proxy asks it: a key it refuses, or a box that does not answer, gets nothing written (--no-check writes it anyway). Names and addresses are judged by the proxy's own _pair_parse, so what pair.py writes is what the proxy takes. `remove` drops a peer and its key, the last one leaving the box alone; `status` says what each peer serves now, never a key; `name` sets this box's name. tests/test_pair_tool.py: 8 tests against a fake peer. docs/pair.md says what a client sees, the security of the link and the limits; the README's table points at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>