Setting up Vigil for you and your family or friends
This guide walks you through setting up Vigil for yourself and the people closest to you, so you can send messages, make audio calls and even video calls with each other, all over post-quantum secure on-demand sanctum tunnels.
One person, most likely you, acts as the organizer. You use Covenant on your own phone to create a private group, called a flock, and hand out the keys to the phones of your family or friends. Only the phones you add can talk to one another. While Covenant can provision different types of configurations, this guide focuses on the "COMMS" type used for chat and calls.
Being the organizer does not let you read anyone's messages or listen in on their calls. Messages and calls between members of the flock are end-to-end encrypted with session keys the phones negotiate themselves using a fresh key exchange. The organizer never sees those keys.
The setup requires a cathedral network. Covenant by default will use the community-driven Reliquary, which is free to use. You can run your own Reliquary too as it is open-source.
In short, you will:
- Install Vigil on every phone and Covenant on yours.
- Create an account and a flock for your group.
- Add your own phone, then the phones of your family or friends, whether next to you or far away.
- Start chatting and calling.
Install
- Install Vigil on every phone that will join your flock: yours and those of your family or friends.
Build it from source:
$ git clone https://github.com/jorisvink/vigil $ cd vigil $ make android $ adb install -r app/build/app/outputs/flutter-apk/app-release.apk
- Install Covenant on your phone, the controller that hands out the keys
to everyone in your group.
Build it from source:
$ git clone https://github.com/jorisvink/covenant $ cd covenant $ make android $ adb install -r app/build/app/outputs/flutter-apk/app-release.apk
- Set a screen lock on the controller phone (PIN, pattern or password). Covenant keeps its keys in the hardware vault and asks for this lock whenever it signs or hands out keys.
Both apps can be built for iOS too, on a Mac with Xcode and a paid Apple Developer account. The signing setup is in the README of each repo.
Create an account
- Open Covenant. On the Account tab, tap Create account.
If you have an account already, tap Log in and paste in the
64-character account key.

- Accept the terms and tap Create. Covenant shows the account key
only once.

- Write down the account key in a safe place. Neither Covenant nor Reliquary
can recover it. Tap Done.

The account key grants full access to your account. Store it as you would a password. A newly created account lasts 24 hours. You can extend the account time from the Account tab.
Create a flock
A flock is the private group of devices that can talk to one another, for example you and your family, or you and a group of friends.
- Tap Flocks, then Create a flock.

- Tap Set up KEKs and confirm. Covenant generates the flock its Key-Encryption-Keys on this phone and locks them in the vault. Secrets encrypted with these Key-Encryption-Keys are then uploaded to Reliquary, choose how long these encrypted secrets stay valid; you will be reminded before they expire.
The Reliquary cannot read any of the encrypted secrets Covenant uploads. They are private to your flock and only your devices can open their specific secrets.
Provision a phone next to you
Make sure Vigil is installed on the phone you wish to provision.
- On the flock page, tap Add a device.

- Choose Phone next to you.

- Pick a name, select COMMS, leave the group number as the default one.

- Tap Provision and unlock the vault. Covenant registers the
device, adds it to the flock and shows a QR code.

- Your friend opens Vigil and taps Add config.

- They choose QR code, scan your screen and tap Import.

- Once they have scanned it, tap Done on the controller phone in
Covenant to go back to the flocks page.


The name you give to the device is the name that will be shown to others.
A QR code holds the complete set of keys for that device. Scan it directly off the screen; never send it as a photo or a screenshot. Anyone who scans it joins the flock.
Provision this phone
To add the controller phone itself to the flock:
- Tap Add a device, then This phone.
- Pick a name, select COMMS, set the group your other phones use and tap Provision.
- Unlock the vault. Covenant hands the configuration straight to Vigil,
allowing you simply Import it.

The name you give to this device is the name that will be shown to others.
Provision a phone far away
When the two phones are not in the same room, provisioning happens over an on-demand Sanctum tunnel between the two apps rather than through a QR code.
- Tap Add a device, then Device far away. Select COMMS and a group as before, then Provision.
- Covenant shows 33 secret words. These must be entered in Vigil to join the flock. Communicate these over an out-of-bound secure channel like Signal.
- Your friend opens Vigil, taps Add config, picks Covenant and types in the words in the order they were given. Vigil connects back to Covenant and receives its configuration, tap Import.
The 33 words are the entire secret. Whoever types them in first takes the device's place. If a second device joins with the same words, Covenant removes both; start over with new words. The secret represented in the words is the equivalent of a 256-bit key.
After provisioning
Make sure Vigil is started from Gospel tab.
- Tap Start. Vigil asks for permission for notifications
(required) and microphone and camera (required for calls). Once all indicators
are green you can chat and call with other peers.

- Active chats appear under Chats. Tap the Peers icon to see
who is online, then the chat icon next to a peer.



Note that it can take up to 1 minute before Reliquary accepts your new device.
- Tap Allow in background when Vigil asks, notifications only arrive and the phone only stays online while Android lets Vigil run.
- If no other tunnel exists in Vigil, the Gospel configuration is added and connected as a VPN tunnel to keep the phone reachable, though it technically is not one.
- Refresh the encrypted secrets before they expire: tap Send encrypted secrets on the flock page.
- Removing or replacing a device gives it a new key, so the old phone cannot open secrets made afterwards.
- To move the controller to a new phone, create a recovery key and a backup on the Keys tab first.
Desktop
Vigil on Linux is a companion for Vigil on your phone. It shows the chats of your phone, sends messages and takes calls as your phone. Peers only ever see your phone.
- Build and install it.
$ git clone https://github.com/jorisvink/vigil $ cd vigil $ make linux $ make linux-install
- Start Vigil and pick a passphrase, click OK.

Link to your phone
The phone and the desktop get a flock of their own in Covenant. Add the desktop first, then the phone.
- In Covenant, create a new flock and set up its KEKs, see Create a flock.
- Tap Add a device, then Device far away.

- Name the desktop, pick Vigil Companion, tap Provision.

- Unlock your KEKs. Covenant shows 33 secret words.

- On the desktop, type the words and click Join.

- Wait until Covenant says the device has its keys.
- Back on the flock page, tap Add a device, then This phone.

- Name the phone, pick Vigil Companion, tap Provision.

- Unlock your KEKs. Vigil opens, tap Import.

- Start Gospel on the phone. The desktop icon turns green once
linked, tap it to see the status or to unlink.

- Your chats now show on the desktop.

Covenant on another phone? Use Phone next to you instead of This phone and scan the QR code with Vigil.
The desktop only works while Gospel runs on your phone. What happens while the desktop is off syncs once it is back.
For help, join the Discord.