Configuration
The file is configuration format 1. It begins schema = 1, and every section and key after that line is optional: the value after # is what you get by leaving the key out. Setup writes this file for you; most installations never edit it.
A fresh jevlin setup writes the schema line, the three endpoint sections, [search]'s two directories and turn_end = true, nothing else. A config it did not create gains no turn_end line, and one without the line reads as off.
schema = 1
[router]
url = "https://api.jevlin.ai" # where searches, fetches, decisions, limits reads and turn ends go
tier = "" # fast | balanced | max; unset = the router's default. `agents tier` outranks it; another word is not sent and is named by `agents tier status`
[platform]
url = "https://platform.jevlin.ai" # the human portal and claim pages; compared against, never dialed
[agents]
url = "https://agents-v1.jevlin.ai" # where connect sends register and status, a separate host
[search]
state_dir = "/home/you/.jevlin/state" # default: <user config dir>/jevlin/state
sessions_dir = "/home/you/.jevlin/sessions" # per-workspace lineage files; default: beside state_dir
turn_end = false # report a searched turn (see The turn end); a fresh setup writes true
trace = true # false: no trace, no session id and no turn end, as JEVLIN_TRACE=off
[update]
mode = "apply" # apply | notify | off; the daily release check. Another word checks and notifies only, and doctor names it
What the keys mean
[router] url is the one router this installation talks to: searches, fetches, decisions, limits reads and turn ends go there. There is no other address a search falls back to.
[router] tier is the tier a search carries when the request names none. agents tier outranks it, and the request's own tier outranks both. Another word is not sent, and agents tier status names it. See Choosing a tier.
[platform] url is the human portal and its claim pages. It is never dialed: a printed claim link must point there, at exactly that origin.
[agents] url is where connect sends register and status, a separate host from the platform.
[search]'s directories. sessions_dir defaults beside the state directory. The state directory's parent is the installation's own directory, where credentials.json, the claim link (claim.json), an unfinished registration (registration_pending.json) and the release check's record (update_check.json) are kept: never the state directory, which an agent's sandbox may write. A claim link an older version kept in state/agent.json is not read; the next jevlin connect mints a fresh one.
[search] turn_end turns on the end-of-turn report. A fresh setup writes true. See The turn end.
[search] trace set to false sends no trace, no session id and no turn end, the same as JEVLIN_TRACE=off; searches work the same without them. Version 0.8.0 does not know this key, so remove the line before jevlin upgrade -rollback to 0.8.0. See Trajectory observability.
[update] mode is what the daily release check may do: apply (the default) installs a patch release of this copy's own minor on a native binary, notify only records that a newer release exists, off runs no check. A word this version cannot name checks and notifies only, and doctor names it. See Upgrading.
The rules it is read under
URLs. Every URL must be https, or http on loopback, with an ASCII host and no user, query or fragment; an error names the key (router.url, platform.url, agents.url). A non-default, non-loopback [platform] url without [agents] url is refused; a loopback one alone defaults [agents] url to it.
Environment overrides. JEVLIN_ROUTER_URL, JEVLIN_PLATFORM_URL and JEVLIN_AGENTS_API_URL replace their URL for a run, after the file and under the same rules; setup also writes them into a fresh config. See Environment variables.
An unknown key is refused by name. A schema = 1 file holding any other key or section is refused with format 1 does not define X; correct or remove it.
A missing schema line. A file with no schema line that still reads as format 1 (a key spelled like schema in another case or a letter or two off, or a [router] or [agents] table, or a [platform] url, none of which an older jevlin wrote) is refused saying the schema = 1 line is missing. A file naming another schema number is refused with a message saying which schema this jevlin reads.
A config from an older jevlin. Any other file with no schema line is one an older jevlin wrote, and every command refuses it with "this configuration is from an older jevlin; run jevlin setup". It is never reinterpreted. Setup sets it aside as jevlin.toml.old (jevlin.toml.old.1 and so on if the name is taken) and writes a fresh format-1 file naming the hosts and directories the old one named, keeping your registration and key. A setting you changed by hand in the old file, such as turn_end or tier, you copy into the new file yourself, under its format-1 key. See Upgrading.
Setup and an existing config. A config already in format 1 is left byte for byte; one with a mistake in it stops setup with the error.
Who can open the state directory, on Windows. jevlin setup gives <home>\state an access list that names only you, and repairs it on every run. A state_dir that setup or connect creates gets the same list, with you as its owner. A directory that already exists is left as it is, and so is any entry another program has added, because an agent's sandbox is meant to reach this directory. doctor's state access line says whose the directory is and names anyone else the list admits.
Where the file lives
~/.jevlin/jevlin.toml on the default layout, or $JEVLIN_HOME/jevlin.toml. How a command chooses its config is on Commands; every file beside it is on Files and locks.