Skip to content

Identity Management Guide

Manage your Kunuleco identity, password, and backups.

Commands here are node verbs. Type them as shown over SSH, or in the Urchin client's command mode (add / in chat mode). Commands that start with / exist only in the client.


What Your Identity Is

Your identity is a cryptographic key on your own machine, protected by your password. Other people see it as a handle, your name followed by # and six characters derived from your identity, such as mira#4Q7K2M. The six characters use Crockford base32, so they contain no I, L, O or U, and case does not matter when you type them. Since 0.2.236 they are derived through a deliberately slow function, so every handle changed at that release.

When your node connects to another, each side proves who it is with a signed hello. What it proves is an AID, a KERI identifier. A name can change and anyone can claim one, so anything that must hold on to a person, such as a block or an invite to a presence, is kept against the AID the connection proved.


View Your Identity

whoami
@whoami

whoami shows your name, where you are, and what you carry. Since 0.2.243 it also says whether you own this node, on the line after your name, as Owner: yes or Owner: no. It never names who the owner is. Since 0.3.101 the next line names who sponsored your account, as Sponsor: <AID> <name>, Sponsor: <AID> when the node has no signed name for it, Sponsor: none if you were the node's first account, or Sponsor: not recorded if the node never wrote it down. It is about your own account only. @whoami shows your peer-to-peer identity, with your DID, peer ID and routes. To see what your node knows about someone else, use finger <name>.


Create an Account

In the Urchin client, enter a username on the welcome screen and choose Create Identity. You set a username, a password and a theme.

The first account on a new node is created freely and becomes the node's owner. After that, a new account needs a sponsor, someone who holds the right to create accounts (create_user). The sponsor types signup-code new and sends the newcomer its six words privately. The code makes one account, lasts 3 days unless lasts gives another time up to 7 days, and never needs the sponsor's password. On the client's CREATE screen the newcomer chooses I have a sign-up code. With no code, the Sponsor step is the fallback, where the sponsor types their own username and password on the newcomer's screen, so it is done only with the sponsor beside them.

The node also has an account of its own, the node user. It signs the owner's first grants and can never be signed into.

A username is 2 to 64 characters, letters and digits only, and the password at least 4 characters (core/session_protocol.py:2132-2151). A password may be a passphrase with spaces in it. Since 0.3.108 spaces at its two ends are ignored, the same way at sign-up and at every sign-in, over the Urchin client and over SSH (SUP-97), so a passphrase pasted with a stray space still works. Since 0.3.109 a password can use any characters, including accented letters and other scripts, on every door. The node treats the same characters typed different ways as the same password, for example an accented letter typed as one character or as a letter and an accent, and it counts the 4-character minimum in characters. Before 0.3.109 a password with a character outside ASCII could not be used. A command sent with the wrong number of words is answered, for example, Error: PASS takes the password. The node answers a name or password outside the rules above with one of:

Error: Username must be at least 2 characters.
Error: Username must be at most 64 characters.
Error: Username must be letters and digits (A-Z, a-z, 0-9).
Error: Password must be at least 4 characters.

A name another account already holds, compared without regard to case, answers Failed to create user '<name>'. User may already exist. A name that is refused for another reason answers Failed to create user '<name>'. followed by the reason, such as That name is reserved for this node's own account. (core/session_protocol.py:2526-2539).

An account's name must not look like another account's name on the node. A name that matches an existing one when compared by how it looks, ignoring case, invisible characters and look-alike letters from other scripts, is refused with That name looks the same as an account already on this node. Choose another name. The reply does not say which account it resembles. See Hosted Halls for how names are compared.


Where Your Identity Lives

Your account lives in the node's data directory, with the node's database and keystores. On an installed node that is ~/.local/share/kunuleco/data/ on Linux and %LOCALAPPDATA%\Kunuleco\data\ on Windows. The KUNULECO_DATA_DIR environment variable overrides it. The configuration reference has the details, including macOS.


Change Password

In the Urchin client:

/passwd

The client asks for your current password, then the new one twice. Over SSH, type PASSWD alone and the node asks the same three questions without showing your answers. PASSWD <old> <new> on one line also works, but SSH echoes it, so both passwords show on the screen and a screen reader speaks them. It also splits on spaces, so a passphrase with spaces needs PASSWD alone.


Export Identity

Create an encrypted backup of your identity:

export-identity <name> <base64_passphrase>

Since 0.3.0 you give the backup a name, not a path. The node writes it as <name> in your account's own backups folder, <data>/backups/acct_<id>/, readable only by the node's user. No other account on the node can name a file there. A name is 1 to 64 letters, digits, dots, dashes or underscores, starts with a letter or digit, has no .., does not end in a dot, and is not a Windows device name such as CON or NUL. Any other name is refused before anything is derived. The passphrase must be base64-encoded and at least 12 characters once decoded. Encode it with echo -n 'passphrase' | base64 rather than typing a raw secret where it can land in your shell history.

A successful export answers ✓ Identity exported to <name> in your backups folder on this node (<n> KB). The next line says where the file is, and it depends on who asks. The node's owner is given the file's full path on the computer the node runs on, with Copy it to a USB stick or another drive you keep offline, and keep the passphrase somewhere apart from it. Anyone else is told This node runs on its owner's computer, so the file is there and not on yours. To keep your own copy offline, ask the node's owner for it., and no path, because the layout of the owner's computer is not theirs to read. Then come the step a restore needs and a reminder that whoever runs the node holds the file.

A node keeps 20 backups for one account. A name you already used answers Not exported: you already have a backup named <name>. Choose another name, or remove that one with delete-backup <name>., and a full folder names the cap. Remove one with:

delete-backup <name>

It answers Deleted your backup <name> from this node., or Not deleted: you have no backup named <name> on this node.

In the Urchin client, type export-identity on its own. A dialog asks for the backup name, masks the passphrase, and handles the encoding for you. It closes only when the node answers that the backup was written, and any other answer stays on screen in the node's own words.

The file and the passphrase together are complete control of your identity. The backup is only as safe as the node it is on. On a node that runs on your own computer, losing the computer loses the backup too, so copy the file somewhere safe and offline. On a node someone else runs, that person holds the encrypted file, so the passphrase is what protects it.

Before 0.3.0 the command took a path, and the node wrote the file anywhere its own user could write. Any signed-in account could use that to place a file on the node's machine or to learn whether a path existed, so 0.3.0 removed it (AUTH-115).

The node's reply to export-identity or import-identity names the command it answers. Before 0.3.0 that echo carried the passphrase back, and the Urchin client could print it on screen, where a /bug report would pick it up. Since 0.3.0 the node leaves the passphrase out of the echo and keeps the rest, and the client leaves it out of everything it prints and keeps the whole typed line out of its command history (AUTH-114). Both recognise the command by its first word up to a space. A command name in quotes, or a tab after it, still runs but is not recognised, so the passphrase comes back in full. Type the command name bare, followed by a space.

Before 0.2.247 this command refused every signed-in account with Error: no authenticated user. Login first., so no backup could be made on 0.2.236 through 0.2.246. If you have not made one, update and make one now.

How Strong a Backup Is

A backup's passphrase is protected by Argon2id, which makes every attempt to guess it cost a set amount of memory. Since 0.2.248 that amount follows the node's KDF profile: 256 MiB on the default profile, moderate, 64 MiB on interactive and 1 GiB on sensitive. The operator picks the profile by starting the node with KUNULECO_KDF_PROFILE set to one of those names. Making a backup no longer pauses the node, and a node makes or opens one backup at a time. A second request meanwhile answers Another identity backup or restore is in progress on this node; try again when it has finished.

That amount matters if you lose the backup file. Whoever has the file can try passphrases on their own machines for as long as they like, and each try costs them that much memory. A default backup costs them a quarter of what a 1 GiB backup does, and an interactive one a sixteenth. The passphrase is all that stands between them and your identity, so make it long and use it nowhere else. If your node has the memory, start it with KUNULECO_KDF_PROFILE=sensitive before you export, and the backup costs 1 GiB a try.


Import Identity

Restore from a backup:

import-identity <file> <base64_passphrase>

import-identity needs a signed-in session, so on a new node you create an account and sign in first. The Urchin client has no import dialog yet, so you type the command. The node reads the file only from its imports directory, <data>/imports, so the node's operator copies the file there first, and you name it relative to that directory. A backup made with export-identity on the same node is in your backups folder, not the imports directory, so it too has to be moved there first. A name the node cannot find there answers Not imported: there is no backup by that name in this node's imports folder. The node's operator puts the file there, and you import it by its name. The answer is the same for a missing file, a file outside the folder and a link that leads out of it, and it names no path on the node's machine. A file there that the node cannot read answers Not imported: this node cannot read that file in its imports folder. The node's operator can check its permissions. The import refuses to replace an identity that is already there unless you add --overwrite, which is irreversible. Since 0.2.247 --overwrite replaces only your own account, or any account if you are the node's owner. Otherwise it answers Not imported: --overwrite replaces only your own account, and this file is another account's. It also refuses a name another account on the node holds, a name that looks the same as one, and the node's own name.

Only a backup made by 0.2.236 or later imports. The 0.2.236 release (BREAK1) reset every identity on the network, and a backup made before it is refused before the passphrase is even tried (identity/identity_export.py:139-148):

This backup was made before this network's identity reset, so it cannot be restored here: start a new identity on this node.

A backup made on 0.2.247 needs 1 GiB to open, and a node on the default profile refuses it before trying, with This backup needs more memory to open than this node allows .... To restore it, start the node with KUNULECO_KDF_PROFILE=sensitive for that restore, on a machine with about 1 GiB of memory free. You can go back to the default afterwards.

Since 0.3.0 the node also checks the cost of the sign-in keys inside the backup against its own profile. Before, a backup made on a sensitive node and restored on a moderate one made every sign-in attempt for that name cost 1 GiB until its owner signed in once (DOS-30). Now the import refuses it with Not imported: this backup's sign-in keys were made at a higher cost than this node's KDF profile (<profile>) allows, and the sentence names the profile to start the node with. Start the node with that profile, import the backup and sign in once, then return to the default profile. The next sign-in makes the keys cheaper. A wrong passphrase answers Decryption failed. The passphrase is wrong, or the file is corrupted. A backup made by a later release than the node's answers This backup was made by a later version of Kunuleco, so this node cannot restore it: update Kunuleco first, then import it again. A failure the node did not expect answers Import failed (unexpected); the node's log says why. and the detail goes only to the log. After a failed import, another from the same account within 10 seconds answers Not imported: an import of yours failed less than 10 seconds ago, and an import derives a key. Wait a few seconds and try again. Nothing is written until every check has passed.

A successful import answers ✓ Identity imported successfully. with the name and a shortened key, then Restart the session and login with this identity's username + password to use it. Sign out and sign in as the imported identity. At that first sign-in the node rebuilds the identity's keys from the backup and checks that they give the same identity, so your name#disc is the same as before. Since 0.2.248 this works without restarting the node, even for an account that has already signed in since the node started.

A restore brings back who you are. It does not bring back what a node let you do. Permissions live on the node that granted them, and a node you restore onto has no record of you.


Key Events and Rotation

KERI records each key event in an append-only chain, your key history. Each event commits in advance to the next key, and that commitment is what lets you change your key without changing who you are. There is no command yet to view the chain or verify it.

Change Your Key

From 0.2.246 you can change your own signing key. Type rotate first. It changes nothing. It tells you what a key change does and asks for the word:

rotate
rotate confirm

rotate answers with these sentences, in this order (identity/rotate.py):

A key change recovers from your account's signing key being exposed on its own. It does not undo a leaked backup or a keystore someone has read, because your keys still come from your backup's secret. Posts you left on boards that other nodes host will stay there but show as unverifiable, because those nodes check each post against your current key and a key change does not send them again. Your node keeps its own copy of each post you send to a board another node hosts, unencrypted for now, so that a later update can send them again. Type `rotate confirm` to change your key.

The copy is of each post that the other node accepted. A post the other node refused leaves no copy. The copies start with 0.2.246, so a post sent before you updated has none. Nothing reads them yet. They are kept so that a later release can send your posts again under your new key. Like the board posts on your own node, they are not encrypted on disk yet.

rotate confirm changes the key and answers Your key changed. Your account is the same; its key history is now at sequence <n>., then An older backup of this account no longer restores on this node, which holds its newer key history. Another node still imports it, but it catches up only from a node that has seen this account under its new key. Make a new backup now with export-identity. It restores anywhere, as your account now stands, with no other node needed. Make that backup: one from before the change catches up only from a node that has seen your account under its new key (see Restoring an Older Backup below). Your name#disc and your identity stay the same. Your grants, your posts on your own node, your reactions and your appearance are signed again under the new key as part of the change, so they still check.

Only the person signed in can change their own key, and only for their own account. The node's own account cannot change its key. The verb refuses, with a sentence of its own, when:

  • the account uses the older key store (This account uses the older key store, which cannot change its key.)
  • a key change is already under way (A key change for this account is already under way; sign in again to finish it before starting another.)
  • the key was changed less than an hour ago (This account's key was changed less than an hour ago; wait an hour between key changes.). Only a change made with rotate on this node counts. A restore or a catch-up does not
  • the key history is near the most this version keeps (This account's key history is too close to the most this version keeps, so its key cannot be changed again.). In 0.2.246 a key history stops at 252 key changes, or sooner if it passes about 252 KiB. A later release will raise that.
  • the account's last restore stopped on keys that were not its backup's (see Restoring an Older Backup below)

If the node changed the key but could not catch up with it, the answer is Your key changed, but this node has not caught up with it, so it will sign nothing for you until you sign in again. Sign out and sign in again.

Since 0.3.0 the Urchin client has a screen for this. Open it from Change your key on the YOURSELF row in the world, or from the console with /key-wiz or the Change Your Key quick action. Opening it sends a plain rotate, which changes nothing, and the screen shows the node's answer whole, so a refusal shows before you are asked for anything. CHANGE MY KEY stays greyed out until you type confirm, and CANCEL holds the focus. The screen reports the change as done only when the node answers Your key changed., and shows every other answer in the node's own words. The screen takes the first answer that arrives after it sends. If a command you typed before opening it answers late, the screen can show that answer as a failure while the key did change. Trying again then answers that the key was changed less than an hour ago, which tells you it worked.

What a Key Change Recovers From

A key change recovers from one thing, your account's signing key being exposed on its own. After the change, that key no longer speaks for you, and the people you talk to stop accepting it as soon as they learn of the change.

A key change does not change your account's network key, the one that signs your Veilid route records. That key comes from your backup's secret and stays the same across key changes. The greeting that proves your account to another node is signed with the account's signing key, so that proof does move to the new key.

It does not undo a leaked backup or a keystore someone has read. Your keys come from your backup's secret, so whoever holds the backup and its passphrase can work out your next keys as well as you can. If your backup leaked, a key change does not lock them out. Make a new identity.

What the People You Talk To See

Your node closes every connection your old key proved and dials again under the new key. Each connection your node dialled comes back by itself. A connection the other side dialled closes, and the other side dials again within seconds, over Tor and, since 0.2.248, over Veilid. Two nodes that reach each other only over Veilid and share no Hall still do not reconnect. See Known Issues. In the client the person goes offline and comes back online. No message names the key change.

A node that holds your key history learns of the change the next time your node greets it, or when a Hall relays your newer history. It then closes any connection your old key proved. Nobody can retire your key for you, because only an event signed with your own pre-committed next key moves your history forward.

Posts you left on boards that other nodes host stay there and show as unverifiable, because each host checks a post against your current key every time it shows it. A reaction you left on another node's board keeps counting, because a host checks a reaction once, when it accepts it.

Proven live on 2026-10-17, between lighthouse and a second 0.2.246 node, over Tor. A key change on each side closed the connections the old key proved, and each came back under the new key, in 8 seconds and in 3 seconds. A key history of 45 changes, built by a test rig rather than by rotate, crossed both Tor and Veilid. A backup exported on one node and imported on a second, clean node gave the same identity at sign-in (2026-10-17, two throwaway nodes running the 0.2.247 fix). Measured live on 2026-11-16, on 0.3.155: a backup older than a key change imported on a third node and did not catch up from a peer, which 0.3.156 fixes (see Restoring an Older Backup), and a Veilid connection came back 114 seconds after the other side's key change, with no restart.

Restoring an Older Backup

A backup made before a key change does not hold your account as it now stands. On the node where you changed the key it no longer restores. Another node still imports it, starts at the backup's key, and catches up from a node that has your newer key history. Make a new backup after every key change anyway: it restores as your account now stands, with no network and no other node needed.

When you import a backup made after a key change, the node brings your keys forward to the backup's place in your key history at your first sign-in. It checks each later key against the backup's secret before it writes anything.

When the backup is older than your latest key change, your node starts at the backup's key. The next time it greets a node that holds your newer history, that node sends the missing events and refuses the greeting. Your node checks that the first of those events is signed by the next key its own history committed to, adopts them, and dials again. A peer can withhold events, so a second peer may be needed to finish. A peer cannot forge them. The node that sends them must run 0.3.156 or later. Before 0.3.156 it refused the greeting the way it refuses a person who is not signed in there, before it sent the events, so an older copy never caught up (KERI-75). A node that has only heard of your key change through a Hall, without meeting your account under its new key, has no events to send. If no node your device reaches holds your newer history, it does not catch up.

Sending those events tells whoever greets with one of your earlier keys that the node holds your key history, and gives them its newer events. Those events are public and signed. It does not tell them whether you are signed in there.

What you are told. Since 0.3.114, when your node catches up this way it says so once, on its own line: This device was using an older copy of your identity ... It has caught up by itself, from key event <old> to key event <new>, through another node that had the newer one, and there is nothing you need to do. Since 0.3.115, if you are findable, your node also checks at sign-in whether your published identity is ahead of this device, and if it is it says This device is using an older copy of your identity ... Your identity has reached key event <new>, and this device is at key event <old>. It catches up by itself the first time it reaches a node that has your newer key history ... and ends with what to do if it does not. A notice you sign out before seeing is kept for your next sign-in, over SSH as well. A device restored from a backup taken before you became findable is not told at sign-in, only when it catches up.

Connect to someone you talk to before you change your key on a node restored from an older backup. A key change made before the node catches up does not give you a new key: rotate confirm repeats a key change you already made and gives you a key your account has already retired, though it still answers Your key changed. If it does not catch up, make a new backup on the node where you made the key change and import it here. If you restored the backup because your current key was exposed, the node holds that exposed key again once it catches up, and only a key change after that moves you off it. You can make that change as soon as the node has caught up, because the hour between key changes counts only the changes you made with rotate on this node.

If the later keys a backup meets are not its own, the restore stops and adopts nothing more. The sign-in still completes, but the account signs nothing until a backup whose later keys are its own is restored, so it cannot greet anyone or post. The node log records This backup cannot be restored here: the later keys are not this backup's. on a line marked [ROT1] [SECURITY], and rotate answers This account's last restore stopped because the later keys were not its backup's, so it signs nothing until a backup whose later keys are its own is restored. This is what someone holding only your next key would cause, so the node stops rather than guesses. Only restoring a backup whose later keys check out lifts it. Since 0.2.248 every sign-in to such an account shows the same sentence, so the person knows why nothing they send is signed.

A backup made after a key change restores only on 0.2.246 or later. An older node refuses it as a backup from a later version.

A Retired Identity

A key history can end in a retiring event, one that commits to no next key and so hands the identity on. 0.2.246 has no command that writes one. It is kept for a later release, where an identity can name its successor. A node refuses a greeting from a retired identity, whatever key signed it, so its last key cannot speak for it. The person dialling sees only a connection that failed, with no reason given.


Owner Rights and Grants

The right to create accounts (create_user), the owner's right (node_admin), and the right to pass either on (delegate:...) each expire 90 days after they are granted, unless the person who granted them renews them. Nothing renews by itself. The owner's first grants, made by the node user, do not expire. When you sign in, the node tells you about grants you gave that lapse within 30 days.

delegations
renew mira#4Q7K2M
renew all
yes
undelegate <id>
  • delegations lists the grants you gave or hold, with their ids and when each expires. The owner sees every grant on the node.
  • renew <name> renews every expiring grant you gave that person.
  • renew all lists every grant you gave that can be renewed, and signs nothing. yes, typed within 10 minutes, renews exactly that list.
  • undelegate <id> revokes a grant, and what was passed on from it. It refuses the node user's own grants and the last node_admin.

Holding create_user does not make someone an owner. Only node_admin does.


More Than One Account

A node can hold more than one account. The first is the owner, and each later one joins through a sponsor. Each person signs in with their own username and password, in the client or over SSH.

Accounts on the same node talk the way people on two nodes do. One hosts a presence, and the other joins it by the host's username and then chats:

join cora garden
chat hello

A bare name with no # always means an account on this node, and that account must be signed in to host a presence it made. A Hall or a shared room is hosted by the node itself and needs nobody signed in (Hosted Halls). The presence's door applies as it does to anyone. See Naming a host.


Security Recommendations

  1. Use a strong password. Your password protects your identity, and there is no reset.
  2. Export a backup. Keep the encrypted file offline, and keep the passphrase separate from it. A backup could not be made before 0.2.247, so make one now if you have none.
  3. Don't share your export. Anyone with the file and the passphrase holds your identity.
  4. Check your node's verify bundle. When you connect the client to a node on another machine, the client pins the node on the first connection. Compare the fingerprint with its operator by another route and record the bundle with /verify (/trust before 0.2.246), so the pin does not rest on that first connection alone. See Connect the Client to Another Node.

Recovery

Forgot Password

There is no password reset. A reset would need someone else to control your identity, and no one does. Without your password, your identity is inaccessible.

If you have a backup: import it with import-identity, as above, and sign in with the password that goes with it. This works only for a backup made by 0.2.236 or later.

If you don't have a backup: you must create a new identity. Anyone who invited you will need to invite the new one.

After the BREAK1 Reset

Release 0.2.236 (BREAK1) reset every node and the directory, so an account made before it no longer exists. Signing in with it answers the ordinary User name or password not recognized., the same reply as a wrong password, and a backup made before it is refused as described under Import Identity. Create a new account. Your name#disc is new even if you choose the same name, because every identity is new and the tag after the # is now derived a new way (identity/discriminator.py:37, :109-112). Make new invites and exchange them again.

Identity Locked

If sign-in answers Your account identity is locked; restore it from a backup., your password was right and your identity store on the node will not open. The node's operator restores the account's keri/ folder from a backup. It must never be cleared. See Troubleshooting.

Compromised Key

If your account's signing key was exposed on its own, change it with rotate, then rotate confirm (0.2.246 or later). See Change Your Key. If your backup file and its passphrase leaked, a key change does not help, because the backup's secret gives the next keys too. Make a new identity and invite people to it again.