Auth keys
Pre-authorized keys that sign devices in without a browser — for servers, CI runners and fleets. Create, scope, tag and revoke them.
Updated · ·By Ivan Vyshniak
Nothing on this page changes with your selection.
An auth key lets a device sign in to a network without anyone opening a browser:
peerlify login --auth-key=pk_…The device joins the network the key was created in, owned by the person who created the key, or as a shared resource if the key carries tags.
Create a key
Requires the Owner, Admin or IT admin role. Other roles see Your role can't create auth keys. Ask an admin or IT admin. instead of Create key.
- In the console, switch to the network the devices should join.
- Open Settings → Keys (under Account) and, in Auth keys, click Create key.
- Fill in the options below and click Generate key.
- Copy the key from Save this key now. It is shown only once; Peerlify keeps only a hash.
| Option | Default | Meaning |
|---|---|---|
| Label (optional) | empty | A description, shown in the key list. |
| Auto-assign tags | none | Tags given to every device that signs in with the key. Each tag must already exist, and you must be one of its managers. Otherwise the key isn't created. |
| Ephemeral | off | Devices that sign in with the key are removed from the network when they run peerlify logout, or about 20 seconds after they go offline, including a stop, shutdown or reboot. See Ephemeral devices. |
| Reusable | off | Off: the key works once. On: the key can sign in many devices. |
| Max uses | unlimited | Shown when Reusable is on. |
| Expiry | 90 days (7 days from the Linux server tab of Add device) | Days until the key stops working. 0 means it never expires. |
Add device → Linux server creates a key with the same options and shows a ready-to-run install command. See Install on servers and headless machines.
Creating a key isn't limited by the plan's device limit; that limit is checked when a device signs in.
How keys behave
- Each sign-in counts as a use, including a device signing in again with the same key. A single-use key can't sign the same device in twice.
- Tags are reapplied at every sign-in. A device that signs in with a key gets exactly the key's tags, replacing tags it had. A key without tags clears the device's tags. Tags are matched by name, ignoring case and a
tag:prefix; a tag deleted after the key was created is skipped without an error. - Tagged keys create shared resources. The device isn't tied to the key's creator, person-based rules don't match it, and it can't switch networks.
- Expiry and revocation only affect new sign-ins. Devices that already signed in with the key keep working. But when such a device's session expires, it can't sign in again with an expired or revoked key.
- The key's creator must still be in the network. If the creator is removed, their keys are revoked. A key whose creator is no longer a member fails with
This auth key's owner is no longer a member of its network. - Device approval still applies. If the network has Manual device approval on, devices that sign in with a key wait for approval. There is no pre-approved key.
The key list
Settings → Keys → Auth keys lists every key in the network, whoever created it, with its creator, prefix (the first 8 characters, such as pk_a1B2c), uses, expiry and state: ACTIVE, EXPIRED, EXHAUSTED (no uses left) or REVOKED.
Revoke a key
Click the trash icon on an active key. It is revoked immediately, with no confirmation. You can revoke keys you created; the Owner, Admin and IT admin roles can revoke any key.
Revoking stops new sign-ins only. To disconnect devices that used the key, remove them.
Errors at sign-in
| Message | Cause |
|---|---|
Auth key not recognized. | The key is mistyped or was never issued. |
Auth key has been revoked. | Someone revoked it. |
Auth key has expired. | Its expiry date passed. |
Auth key has no remaining uses. | A single-use key was used, or Max uses was reached. |
This network has reached its plan's device limit. … | The network is full. Remove devices or upgrade. |
This network is suspended. … | Peerlify suspended the network. Contact support. |
This network's subscription has ended, so the network is paused. … | The paid plan lapsed. See Plans and limits. |
Your membership is pending admin approval. … | The key's creator is waiting for member approval. |
This account has been disabled. … | The key's creator's account was disabled by Peerlify. |