Skip to content

Configuration Reference

Kunuleco has two configuration files. The node reads config.json, which the installer writes. The Urchin client keeps its own settings in urchin_settings.cfg. A handful of environment variables override the node's file.

Rewritten 2026-09-30. The earlier version of this page described core, transport, identity, persistence and logging keys. No code reads them (Config.load() in core/config.py is a stub), so they are gone.


The node's config.json

Where it is

Platform Path
Windows %LOCALAPPDATA%\Kunuleco\config.json
macOS ~/Library/Application Support/Kunuleco/config.json
Linux, and any other system $XDG_DATA_HOME/kunuleco/config.json, or ~/.local/share/kunuleco/config.json when XDG_DATA_HOME is unset or empty

Since 0.3.157 the node, the installer and the launcher find this folder by one rule (core/install_home.py), so the node reads the file where the installer wrote it. Before 0.3.157 the node looked under ~/.local/share/kunuleco/ on every system but Windows. On macOS, and on Linux with XDG_DATA_HOME set, it then started without the installer's settings, and so without the Tor and Veilid the installer had placed. The 0.3.156 macOS reissue worked around this with a link at ~/.local/share/kunuleco. The 0.3.157 client makes no such link, and leaves one a 0.3.156 Mac already has as it is.

A node started without an installer runs without this file and uses the defaults and environment variables below.

What the installer writes

The installer writes it once, at install (installer/.../install/orchestrator.py). A typical file:

{
  "version": "1.0",
  "base_dir": "/home/alice/.local/share/kunuleco",
  "data_dir": "/home/alice/.local/share/kunuleco/data",
  "logs_dir": "/home/alice/.local/share/kunuleco/logs",
  "config_dir": "/home/alice/.local/share/kunuleco/config",
  "venv_dir": "/home/alice/.local/share/kunuleco/venv",
  "tor": {
    "binary": "/home/alice/.local/share/kunuleco/bin/tor",
    "data_dir": "/home/alice/.local/share/kunuleco/data/tor",
    "config": "/home/alice/.local/share/kunuleco/data/tor/torrc",
    "socks_port": 19050,
    "control_port": 19051
  },
  "veilid": {
    "binary": "/home/alice/.local/share/kunuleco/bin/veilid-server",
    "data_dir": "/home/alice/.local/share/kunuleco/data/veilid"
  }
}

The paths depend on the platform and the install location. The ports are the installer's fixed values (platform/paths.py), chosen so an installed node does not collide with a system Tor.

What the node reads from it

Key Used for Default without the file
data_dir The node's data directory. Accounts, the database and keystores live here. KUNULECO_DATA_DIR overrides it. KUNULECO_DATA_DIR, else ./data if it exists, else ~/.kunuleco
tor.binary Which Tor to start. It must be a file. a Tor on the PATH
tor.config, tor.socks_port, tor.control_port Tor's torrc and ports. The node exports the ports as TOR_SOCKS_PORT and TOR_CONTROL_PORT for the modules that read them. 9050, 9051
veilid.binary, veilid.data_dir Which veilid-server to start and its data. VEILID_BINARY overrides the binary. none
media_retention_days How many days a received media note stays pinned before it is unpinned. The one key the node itself writes, through media retention <days> (1 to 365). Absent until that command is used. 3
project_account The project's own account on this node, which /bug send and /idea send to. handle and aid name it, reader is who the consent screen says reads a report, and copy holds the screen's line about the program that gets a copy (bug and idea; an empty string shows no line). triage_holders is a list of accounts on this node, each a name, a full handle (name#tag) or an AID, that may get a copy of each message filed for the project account. The project account grants it with inbox share <account>, and only to an account on the list. Each message reads the list again, so an account taken off it gets no next copy, though its grant stays in delegations until someone ends it with undelegate. Either form counts at once, after a restart too, for an account with a verified binding on this node: a name is checked against that binding at each grant and each message. An account with no binding counts by its name only once it has signed in since the node last started, and until then no copy is filed for it; its AID counts at once. A bare name that two accounts on this node share counts for neither, and the full handle picks the one meant. An AID is the exact entry, and on a node with many accounts the cheaper one, since a name is looked up among all of them at each message. Leave the list empty until the people who file reports on this node have been told that a program gets a copy: the consent screen's copy line and the node's notice say so. no project account (a report cannot be sent), reader "the Kunuleco project", copy the two release lines, triage_holders empty

The node reads the veilid API port from veilid.api_port when present, which the installer does not write, so an installed node uses 15959 (and 5959 without the file). The other keys the installer writes (version, base_dir, logs_dir, config_dir, venv_dir, tor.data_dir) are the installer's own record. The node does not read them. A file written before 0.3.129 can still hold an ipfs block, which nothing reads.

Changing it

Edit the file and restart the node. There is no command that edits it, apart from media retention, which writes its one key and keeps every other key as it was (write_node_setting in core/config.py). project_account is read again at each grant and each message, so a change to it needs no restart.


What the node fetches by itself

Since 0.2.244 the node fetches the signed release manifest, https://kunul.eco/installer/manifest.json, to check the avatar catalogue (release/manifest_trust.py). The first fetch comes between 1 and 15 minutes after start-up, and then one every 6 hours, give or take an hour, so the timing does not line up across nodes. The request is HTTPS only, follows no redirect, and sends only a fixed User-Agent: kunuleco-node, with no cookie, query or proxy setting. It gives up after 30 seconds and reads at most 2 MiB. The node checks the manifest with its own copy of the release keys, keeps the last one that checked out in release_manifest.json in its data directory, and keeps the newest release it has accepted in release_manifest.sqlite, so an older manifest cannot replace a newer one. A node set to LAN only makes no request and still re-checks the copy it holds.

Environment variables

Variable Effect Default
KUNULECO_DATA_DIR The data directory. Takes precedence over config.json's data_dir. see data_dir above
KUNULECO_CLIENT_PORT The TLS port clients connect to. 8123
KUNULECO_CAPTP_PORT The CapTP port other nodes dial directly, and the port mDNS advertises. Tor does not use it: since 0.2.242 the onion forwards to its own listener on 127.0.0.1, on a port the system picks at start (0.2.240 and 0.2.241 forwarded the onion to this port, and earlier releases to 4243). A value that is not a port refuses to start rather than falling back. 4243
VEILID_BINARY The veilid-server to start. Takes precedence over veilid.binary. from config.json
TOR_CONTROL_PASSWORD Password for Tor's control port, when Tor is set up to ask for one. (none)
KUNULECO_KDF_PROFILE argon2id tier for NEW account records (DOS-12): moderate = username key INTERACTIVE / password key MODERATE; interactive = both INTERACTIVE; sensitive = both SENSITIVE (1 GiB per derivation — the pre-0.2.198 behaviour, which froze a 1 GB node for 15 minutes per login). Recorded per account and read back at login. Changing it later re-wraps every existing record that sits ABOVE the new tier at that account's next successful login (DOS-12 half 3: the login already holds both keys, so the re-wrap costs the two policy derivations and one row rewrite; the log line is [DOS-12] re-wrapped legacy record); a record already cheaper than the policy is never made dearer. Pre-0.2.198 accounts therefore pay SENSITIVE exactly once more, at the first login on this build. Unknown values refuse to start the derivation rather than defaulting. moderate

TOR_SOCKS_PORT, TOR_CONTROL_PORT and VEILID_API_PORT are set by the node from config.json for its own modules. Setting them in the shell has no lasting effect, so change config.json instead. The SSH endpoint listens on 8122, which is fixed in scripts/ssh_server.py.

Precedence, for the node: an environment variable, then config.json, then the built-in default.


The client's urchin_settings.cfg

Where it is

Platform Path
Windows %LOCALAPPDATA%\Kunuleco\config\urchin_settings.cfg
Linux ~/.local/share/kunuleco/config/urchin_settings.cfg
macOS ~/Library/Application Support/Kunuleco/config/urchin_settings.cfg
Android and anything else the app's own data directory (OS.get_user_data_dir()), under config/

It is a Godot ConfigFile (an INI-like text file with [section] headers). The client writes it as you change settings, so there is rarely a reason to edit it by hand. Close the client first if you do.

What it holds

Section Keys What they are
server host, port The node the client connects to.
appearance avatar_id, skin, hair, eye, face_sharing Your avatar, and whether you said yes to sharing your face.
audio microphone_enabled Whether the client may use the microphone.
accessibility glow, motion, scanlines Visual effects you can turn down or off.
display profile The display profile (comfortable unless changed).
input default_mode The input mode the client starts in (cmd unless changed).
friends archipelagos, home_group How your contacts are grouped in the world view.
world actions_collapsed Whether the world's action panel is collapsed.
onboarding show_tutorial Whether to show the tutorial.
tutorial completed_identities Which identities have finished the tutorial.
debug logging Whether the client writes a debug log.

The client owns this file and its sections change with the client. The list above is from client source on 2026-09-30 (scripts/core/urchin_singleton.gd and the scenes that call set_value).