Skip to content

Connecting Nodes Guide

Connect with other Kunuleco users.

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.


Connection Methods

Method When to Use
Invitation First-time connection with a new person
In person You are on the same network as them: meet
By handle You know their handle, such as mira#4Q7K2M, and your node has met them before or they are on your local network
Local Discovery Same network, automatic

A handle is a name followed by # and six characters derived from the person's identity. Whichever way you connect, each node proves who it is with a signed hello, and that proof decides who the other side is.


Your Own Presence and the node Channel

Since 0.3.102 there is no lobby. When you sign in, your node puts you first in your own presence, named by your handle, and then in node, the channel for the people on your node. A join to you by name with no presence word, such as join mira#7K2QX9, lands in your own presence. Its door is open until you set it with door, and its member list holds only you and your visitors, never the other people on your node.

node is for the people on one node. Talk in it with chat !node <message>. Nobody on another node can join it, and it never appears in an invite, a short code, a meet seed or a findable record. See Concepts: Presence.

Your Own Addresses

Since 0.3.101 each person signed in on a node has their own Tor onion and their own Veilid route and record, and a connection belongs to the person who made it. When two people on one node join the same other node, each gets a connection of their own, and one closing leaves the other. The hello your node sends when it dials, and the record findable publishes, carry your own addresses and never the node's. If you have no address of a kind yet, such as no onion while Tor is off, they carry none of that kind.

The invite line and the meet seed are the exception. Their tor= and vdht= hints still name the node's onion and Veilid record key (see Create an Invitation). A dial from them is pinned to your identity, so it reaches you and nobody else on the node, but whoever holds the line can tell which node you sign in on.

Signing in no longer publishes anything under your name. Your node does not announce you over IPFS or the local network. The node announces only itself, on the local network, from the moment it starts. Since 0.3.111 it no longer announces itself on IPFS. Your node still finds other people on the local network. A node whose tenant failed to start gives out its own addresses for you where you have none, as Known Issues describes.


Create an Invitation

invite garden

invite <presence> creates an invite to a presence. With no name it invites to your current presence, which after you sign in is your own presence, named by your handle (since 0.3.102; there is no lobby). Its invite line names your handle twice, as in join alice#ABC123 alice#ABC123 <AID>. The node shows an invite line of the form

join <your handle> <presence> <your AID> tor=<onion> vdht=<record key>

The third word is your identifier, so the other person's node can check that it reached you and not someone using your name. The tor= and vdht= hints are your node's Tor and Veilid addresses, so the line reaches your node even when the directory is down (core/transport_hints.py, node_transport_hints). They are the node's, not your own, even since 0.3.101 gave each person their own (Your Own Addresses). A hint for a transport your node's owner switched off is left out. An invite to a Hall or a shared room names your node instead of you, because the node hosts them (Hosted Halls).

Your own presence has no short code, because short codes are only for this node's Halls and rooms. Share the whole line. The reply says so under the invite (verbs/invite_system.py:3862-3865):

No short code for this invite, because short codes are only for this node's Halls and rooms. Share the invite line above.

The Urchin client draws a QR code of the invite line, and over SSH the node draws one after the text. -noshort leaves the short code out.

Short Codes for a Hall or a Shared Room

The node registers its own name with the directory, so people on other nodes can find a Hall or a shared room by the invite string. A short code for a Hall or a shared room is made for the node and signed by the node's key, never by yours. The node gives one only to a person who keeps that door, meaning a Steward of the Hall or the owner of the room. It gives none for an invite_only or members_only Hall, even to its Steward, because the directory would show the name to anyone. Each person can make 3 of these codes an hour, and the node makes at most 8 an hour for everyone on it together.

The node signs the code's record, and since 0.3.127 the code's four words are computed from the node's AID and the record's signed fields (certify_short_code, verbs/invite_system.py:168). A node that joins by the code checks the signature, works the words out again from the record, and shows where the code leads before it dials anything (verbs/invite_system.py:2922-2946). When the directory cannot be reached, it reads the copy of the record the node keeps on Veilid until the code ends, and checks it the same way:

Code lantern-willow-quiet-ember is riverside#K7Q2MA (AID <aid>), presence hall:riverside, per the directory, signed by that host. Joining it now.

A code whose record does not certify its words, or a copy that does not check out, is refused with This code does not check out. Ask the person who invited you for the full invite line or the QR code. Any other record that does not check out is refused with Invite code '<code>' was refused: <why>. Either way nothing is dialled.

When the node does not make a code, the invite string still works, and the reply says why under it:

No short code this time: you have used your 3 short codes for this hour. The invite string above is the one to share.

The other reasons read the caller does not keep the door of hall:riverside, hall:riverside is not advertised (its door is invite-only or members-only) and this node's 8 short codes for the hour are used, by everyone here together. Make a new invite after renaming the node with set node name, because a code made before the rename keeps the old name.

share hall <name> revoke withdraws the node's codes for a Hall, here and at the directory. Existing members are not affected, and the invite line itself still reaches the Hall, where its door decides.

In the Urchin client, /invite-wiz mints an invite with a copy button.

For a presence of yours an invite lasts 30 days, for up to 50 people. A short code can stop resolving sooner, and the invite string still works when it does.

A plain invite line and its short code are an address, so a Hall whose door is not open still makes the person knock. invite once and share hall once make a line with a ticket= part that lets one person straight in past the knock, one time. With --uses <n> it lets up to n people in, one time each, up to 50. A once line lasts 7 days unless --for gives another time, up to 30 days, and it has no short code. A person it already let in comes back on it without using another.

Decide Who May Join

A ~presence you own is open to anyone who knows its name, by default. To make it invite-only and name the people who may join:

door garden invite
door garden invite alex#9T3HVB
door garden uninvite alex#9T3HVB
door garden open

door <presence> on its own shows the current setting. The invite is kept against the identity the person's connection proved, so someone else using the same name is refused. Only the presence's owner can change its door. Your own presence, named by your handle, is open until you set its door.

Since 0.3.100 a presence or Hall whose door is invite-only or members-only is not named in the list of presences your node sends other nodes, or in the copy an invite stores. Before 0.3.100 that list named every presence the node had, so a peer could learn the name of an invite-only Hall (TPT-112). A list sent or stored before 0.3.100 still names it in the copies other nodes kept, and a copy stored in IPFS stays public. An invite line still names its presence, because the person you invite needs it.

A room has no door setting. Its door is its threshold, which its owner sets from inside the room, and a room in a Hall uses the Hall's door. See Place Management.


Accept an Invitation

join mira#4Q7K2M garden <AID> tor=<onion> vdht=<record key>
join lantern-willow-quiet-ember

join takes a whole invite line pasted as it was sent, a short code, or a handle and a presence name. Your node reaches the host and joins you to the presence. In the Urchin client, /join-wiz does the same from a dialog.

A join makes the presence your active channel, so the reply says Type chat and your message to talk in it. say reaches only the room you stand in. A join of a Hall, or of a shared room on another node, also leaves a door to it in your Nexus, and the reply names it. A Hall join does not move you, so its reply reads:

You are in its chat now, and you have not moved. Type chat and your message to talk in it. say reaches only the room you stand in. A door to it is in your Nexus, the room off your Common Area, as 'riverside'. Go riverside from your Nexus to walk into the Hall and its rooms, and to join it again after you leave.

The door works the same for a Hall on your own node and for one on another node. Inside a Hall on another node, standing answers Your Standing in 'hall:riverside' is kept on <host>, and this node cannot read it., because the host keeps the Standing rows. presences lists every presence you are in, each in the form leave takes back.

An invite line carries the host's identifier as its third word, and your node holds the connection to it. A third word that is not an identifier means the invite was damaged in transit, and the join is refused:

Error: '<word>' is not a host identifier. An invite reads: join <host name#disc> <presence> <host AID>.

Damaged hints refuse the whole line too, and nothing is dialled (verbs/invite_system.py:3988-4023):

Error: this invite's routing hints are damaged (bad_tor: tor= must be 56 characters of a-z and 2-7, without .onion). Ask for the invite again.

The other causes are bad_vdht, duplicate_key, control_character, and quoting when a quote mark changed the line on its way to you. A hint your node does not know is ignored. A ticket= part is not a hint, and a once line's ticket is read on its own.

A closed door gives one reply, and it is the same whether the presence exists or not. An invite-only presence you are not invited to, a knock, invite_only or members_only Hall, and a name the host does not have all answer:

Error: the host of hall:riverside did not let you in. Cannot join 'hall:riverside' now. If 'hall:riverside' is here and takes requests, yours is waiting for its keepers.

At a knock or invite_only door your request is queued for its keepers, and the reply is the same. When the node shares presences whose doors are open or knock, the reply ends with Shared here: and their names. A presence behind an invite_only, members_only or invite door is never listed. Someone who was rejected before, or removed, gets a reply that says so, because they already know the place exists.

When a Join Does Not Connect

If your node reaches the address but not the person you asked for, you join nothing, and the reply says what happened. Over SSH you see these sentences. The Urchin client receives the same outcome as an event and shows it in its own words.

Reply What it means
alex#9T3HVB is not online. The person is not signed in on that node. A person who has blocked you gets exactly this reply too. On a join pinned to their identifier, as from an invite, your node's log can tell the two apart, because their node proves itself before it refuses
Reached the node riverside#K7Q2MA, not alex#9T3HVB. Ask them for an invite. You named a person, and the node answered as its front desk, because nothing told it who you wanted. An invite from them carries their identifier
Reached mira#4Q7K2M, not alex#9T3HVB. A different identity answered at that address. Your node does not rename your friend to whoever answered
The node at alex#9T3HVB is not taking first contacts right now (it has no front desk). The node could not start its front desk, so it refuses first contacts
alex#9T3HVB is busy checking names right now. Try again in a moment. 0.3.0 or later. The other node checks that the name in your hello belongs to your identifier, and that check is slow on purpose. The node checks it away from its other work and holds your hello meanwhile. A node asked for too many checks at once, or for too many new names from one identifier, refuses rather than queueing them. Try again shortly (DOS-31)
Could not connect to alex#9T3HVB: their node asked to be dialled again the other way round, and this connection could not do that. 0.3.0 or later. The other node asked your node to open the connection again in the opposite direction, and this connection could not. A 0.3.0 node never asks this, so the other node runs a different release
Another account on this node is already connected to alex#9T3HVB, and this version keeps one connection to alex#9T3HVB for the whole node, so this did not connect. Try again after it closes. 0.3.0 or later. Another person signed in on your node holds the one connection to that node, and it cannot carry you. See Known Issues
alex#9T3HVB is running an older Kunuleco, is not a Kunuleco node, or has this transport switched off. If it is an older release, both sides need the same release to connect. The other node runs 0.2.235 or earlier, is not Kunuleco at all, or has switched off the transport this join tried (since 0.3.102 a host with Tor off no longer ends a join that is still waiting on another way in). Nodes on either side of the 0.2.236 break cannot talk. The Urchin client shows alex#9T3HVB could not be reached (older node).
Could not reach alex#9T3HVB: this account has no signing key on this node. Your account has no key to sign its hello with, so your node sends nothing
Could not find alex#9T3HVB. They are not reachable by name. Ask them for an invite. 0.3.101 or later. They have not made themselves findable with findable on confirm, and your node found them no other way. See Be Findable by Name
Could not reach alex#9T3HVB at the addresses in the invite, and the directory does not list them either. They may be offline. The invite's addresses did not answer, and the directory had no entry
[PENDING] Connected to alex#9T3HVB over Tor and asked to join garden, but the host has not answered, so you are NOT in garden yet. Try again in a moment. Your node reached the host and the host gave no verdict. Since 0.3.0 the host sends its verdict down every live connection to you, so a verdict lost on one transport still arrives on another that is up

A friend who renamed themselves is still the same identity, so your node follows the new name. A different identity answering a name you knew is refused, as in the third row.


Meet in Person

When you and the other person are on the same local network:

meet

meet shows a peer seed (a code starting kunul1) and a QR code. The other person runs join <seed> on their node, which races your LAN addresses and, since 0.2.236, your node's Tor and Veilid addresses carried in the seed. The connection is checked against the identity the seed pins. Only a connection over the LAN records you as met in person, and a Tor or Veilid win says not recorded as met in person (you were not reached over the LAN) (verbs/unified_verbs.py:14243-14266). A seed with no Tor or Veilid address works only while your node stays on that network.

meet guest shows this node's address and a QR code, so a phone running the Urchin app can join it as a client.


See Who You Are Connected To

@peers
@discover

@peers lists connected peers across all transports. @discover lists everyone discovered, and marks a peer as verified only when a signed hello has proved who it is.

To check one peer:

ping mira#4Q7K2M

ping reports whether that peer is connected and over which transports.


Leave a Presence

leave garden

leave <presence> takes you out of a presence. With no name it leaves your current one.

There is no command that drops one peer's connection without blocking them. block <name> refuses the person and drops any open session with them, and unblock <name> undoes it. A block holds on the identity they proved, over any transport and after a reconnect.

A block also holds inside a Hall or a shared room hosted by a node, yours or another. You no longer receive what the blocked person says there, their live voice and pose, or the media they share. You still see them join and leave, and they stay in the member list, so you are never speaking in front of someone you cannot see. The block works in one direction only. They still hear you, they stay a member, and nothing tells them. Your node does the filtering. For text it uses the signed sender of each line, and for voice, pose and media the sender the hosting node names.


Be Findable by Name

Since 0.3.101 you can let people reach you by your name#disc alone, with no invite. Nobody is findable unless they turn it on, and it is off by default.

findable
findable on
findable on confirm
findable off

findable on its own says whether you are findable. findable on publishes nothing. It shows what would be published:

Findable by name: anyone who types your name#disc can fetch a signed record of your name, your identity (AID) and two
addresses that reach you (an onion and a Veilid record key), and can try to connect to you. `findable off` revokes the
record; copies already fetched stay with whoever fetched them, and a directory can keep serving a revoked record until the date
it carries. The record is valid for 30 days and renews when you sign in.
To publish it, type: findable on confirm

findable on confirm signs a record with your current key and gives it to the directory, and answers Published. Anyone who types <name#disc> can now find you. with the date the record is valid until. The record carries your own onion and Veilid record key, never your node's. When your node has neither yet, the answer is This node has no address to publish yet (no onion and no Veilid record). Try again when its transports are up. The record renews when you sign in within its last 7 days, and a key change publishes it again with the new key, so your old key cannot point your name elsewhere.

findable off revokes it: Revoked. The directory no longer answers for your name. Copies already fetched stay with whoever fetched them. A revoke needs the setting file your node keeps for you. After a restore, or if that file is lost, the revoke is refused and the record stays live until its date (see Known Issues).

Someone who types join <name#disc> for a findable person reads Found <name#disc> by name; connecting. For anyone else the answer is Could not find <name#disc>. They are not reachable by name. Ask them for an invite. If the record names a different identity from the one your node already knows for that name, the join stops with WARNING: the record found for <name#disc> names a different identity than the one you know. Not connecting.

tell <name#disc> <message> to a person your node has no address for looks the name up the same way. Since 0.3.157, when the lookup finds nothing, the reply names the two ways forward. For a name your node has never seen it is Can't chat with '<name>' — no known peer by that name, and they could not be found by name. They may not be findable yet. Either they type findable on confirm, or they send you a seed from meet once and you type join and the seed. For a person it knows with no address, it starts ✗ Your message to <name> was not sent. They could not be found by name, and may not be findable yet. and goes on the same way.

Since 0.3.157, when someone connects to you over Tor and their hello proves who they are, your node keeps the addresses that hello carried, as it already did over Veilid, so a tell back reaches them with no lookup.

Since 0.3.158 it works the other way as well. When you connect to someone over Tor, their node gives yours their own Tor and Veilid addresses, and your node keeps them once it has proved who they are, so a tell later reaches them with no lookup. On a local network their node gives them only if you are their contact or someone they invited. A blocked person's addresses are never kept.

Your node does the same when someone connects to you. Over Tor it gives your own Tor and Veilid addresses to anyone whose hello proves who they are. On a local network it gives them only to your contacts and the people you invited. Someone you blocked is never given them.

Since 0.3.158 a whisper left in your mailbox carries a return address. When someone writes to you, their node gives yours their own Tor and Veilid addresses, never their node's. Your node keeps them when the message reaches you: at sign-in, or as it reaches your inbox while you are signed in. For someone new, it keeps them when you type requests accept <name>. A tell back then reaches them whether or not they are findable. A blocked sender's addresses are never kept. Before 0.3.158 someone new who wrote to you first could be answered only once they were findable.

Since 0.3.109 a stranger who looks you up cannot tell whether you are signed in, because their connection to you reads <name> is not online. either way (see Strangers). Before 0.3.109 a lookup showed it, and the text above said so.


Connect by Handle

@pconnect mira#4Q7K2M

@pconnect connects to a peer by their handle. Since 0.2.236 a person publishes no endpoints of their own, so it finds only someone your node already knows or can see on the LAN. For anyone else it answers Cannot find <handle>, and an invite line is the way in.


Local Network Discovery

On the same LAN, discovery is automatic through mDNS. A sighting on the local network is only a hint. Your node then dials the peer's CapTP port (4243 by default), and the signed hello decides who is there. @discover shows a peer as verified only after that.

Nothing listens on port 4242 any more. The firewall needs UDP 5353 (mDNS) and TCP 4243 (CapTP).


Manual Connection

If automatic discovery fails, the transport-level verbs connect one peer by hand. They are diagnostic tools, listed by help debug.

Using a Veilid Route

@veilidroute
@veilidconnect mira#4Q7K2M <route_blob>

@veilidroute shows your Veilid route blob to share. The other person passes it to @veilidconnect with your handle.

Using a Tor Address

@toraddress
@torconnect mira#4Q7K2M <onion_address>

@toraddress shows your .onion address. The other person connects with @torconnect and your handle. Tor gives reachability across NAT. It does not hide where your node is.


Connect the Client to Another Node

The Urchin client talks to one node at a time, your own by default. To use a different one:

/connect <host> [port]

The client keeps that node for next time. Since 0.2.247 the sign-in screen also has CONNECT TO ANOTHER NODE, which drops the connection before you sign in and returns to the address form. The first time it connects to a node on another machine, before you type a password, it asks the node for its verify bundle, checks the bundle, and connects again under the bundle's certificate. When that works, the client pins the node, as SSH does with a host key, and every later connection must show the same certificate. This is trust on first use, so the first connection is the one that matters. If someone on the network path answered that first time, the client pinned them.

If a pinned node ever shows a different certificate, the client refuses to connect and says so. Press CHECK WHAT CHANGED on the connect screen. A new certificate signed by the node key you pinned is what a renewal looks like, and the client offers RE-PIN. Since 0.2.247 a re-pin keeps how the node was recorded, so a node you recorded with /verify stays recorded as checked rather than as first use. A different node key cannot be re-pinned. The screen says the node now answers with a different node key, shows its fingerprint, and offers FORGET THIS NODE. A reinstalled node shows this screen, and so did every node after the 0.2.236 reset, lighthouse included.

Press FORGET THIS NODE only when the node's operator told you its key changed and the fingerprint matches the one they published. Someone on the network path can show this screen too. The dialog shows the old and new fingerprints and asks you to type the last four characters of the new one, case and colons ignored, before FORGET works. After it, press CONNECT, and the client pins the certificate it shows now, as on a first connect. When the client could not read a fingerprint, there is no button, and the screen tells you to run /unverify <host> after checking with the operator.

Until a node is pinned, the sign-in screen carries one line saying the connection is not verified. Since 0.2.243 the console's sign-in-again dialog, after a reconnect or an update, carries the same line.

For a check that does not rest on the first connection, ask the node's operator to run @node_verify and send you the bundle, compare its fingerprint with them by another route, and record it with /verify <bundle> [host]. If the client pinned the same certificate on first use, /verify records it as checked. If the bundle differs from the pin, /verify refuses, because a pin never changes silently. /unverify [host] forgets a pin or a recorded bundle. Before 0.2.246 these were @node_trust, /trust and /untrust.

The Certificate Check Is Renamed in 0.2.246

In 0.2.246 the certificate check stops using the word "trust". /trust becomes /verify, /untrust becomes /unverify, @node_trust becomes @node_verify, and "trust bundle" becomes "verify bundle" everywhere. The bundle itself does not change. A bundle you already recorded still starts with kunuleco-trust-v2: and still works. On the client, /trust answers /trust is now /verify — type /verify instead., and /untrust answers the same way for /unverify. On the node, @node_trust answers @node_trust is now @node_verify. Type @node_verify for this node's verify bundle. and gives no bundle. A node with no bundle now says Error: this node has no verify bundle to give.

The node still answers the old certificate request, for one release, with the same public bundle. So a 0.2.245 client still pins a 0.2.246 node on first contact, as before. In the release after 0.2.246 the old request gets only a sentence naming the new one, so update the client before then. A 0.2.246 client asks by the new name first, and asks by the old one when an older node does not know the new name, so it still pins a 0.2.245 node.


Connection Troubleshooting

Can't Connect via mDNS

  1. Verify you are on the same network by pinging the other machine's IP address from your system shell
  2. Check the firewall allows UDP 5353 and TCP 4243
  3. Run @discover and @netcheck on the node
  4. Check both nodes run the same release line. A node on 0.2.236 or later and a node on 0.2.235 or earlier cannot talk at all, in either direction

Can't Connect via Veilid

  1. Run transport and @veilidstatus on the node
  2. Wait for Veilid to attach to its network, which takes longer on the first start
  3. Check the system clock is correct. Veilid needs accurate time

Can't Connect via Tor

  1. Run @torstatus on the node
  2. Check tor-daemon.log in the node's logs directory
  3. The network may be blocking Tor

Connection Drops

  1. Run transport to see each transport's state
  2. The node's owner can pin the next join to one transport with transport force <mdns|veilid|tor>, and clear it with transport force none
  3. Check node.log in the node's logs directory

Managing Capabilities

After connecting, you can give someone access to one of your capsules, or take it away.

Grant Access

grant notes alex#9T3HVB read,write

grant <capsule> <identity> <caps> [--service <service>] grants capabilities on a capsule you own.

Revoke Access

revoke notes alex#9T3HVB

With no capabilities named, revoke removes them all.

View Grants

list grants notes