Files
raucao 680229138d Rewrite the README in Marco's style and split out the docs
The README mixed a short introduction with the build steps, the nightly
build, headless mode, CLI pairing and the two-machine deploy workflow, all
in one file. It now opens with the app icon and a prose description, then
Status, Installation (build from source for now, AUR planned), Repositories
& Contributions (Gitea and ngit), Documentation, License and Contact — the
shape Marco's README uses.

The build, test, validation and dev-deploy material moves to
doc/dev/development.md, and headless mode plus `regent --pair` to
doc/advanced.md, both linked from the README.

The description is also more accurate: Regent runs on GNOME and other Linux
desktops (not GNOME only), requests covered by an "Allow always" permission
are answered without a prompt (so not *every* request is shown), and several
keys can be held and used in parallel.
2026-11-29 22:40:21 +04:00

1.5 KiB

Advanced usage

For power users: running the signer with no window at all, and pairing a client without opening the GUI.

Running without a window

Regent can run the signer with no window at all, including on a machine with no display and no session bus:

regent --headless

Anything not already allowed with "Allow always" is denied — with no window there is nobody to ask, so pre-approve permissions in the GUI first. get_public_key, ping and get_relays are still answered automatically.

Your identity keys are stored NIP-49 encrypted under a passphrase, and a locked vault refuses to sign. Unlock it for an unattended run with a passphrase file (mode 0400/0600), or with a systemd credential named regent-passphrase:

regent --headless --passphrase-file /run/credentials/regent-passphrase

Pairing a client from the CLI

To pair a client without opening the GUI, pass the nostrconnect:// string the client shows (the client-initiated flow). Regent joins the client's relays, sends the connect response, remembers the application, then keeps running headless. Pairing needs no identity key, so it works while the vault is locked:

regent --pair 'nostrconnect://…'

A graphical client usually shows that string as a QR code; the nostrconnect:// URI is its text form. Permissions are never granted automatically, so a freshly paired application can only ask — approve what it may do with "Allow always" in the GUI. regent --help lists the options.