Skip to content

Configuration

Settings come from ~/.config/keryx/config.json. Each one can be overridden by an environment variable named KERYX_<FIELD>, such as KERYX_SPEED=1.3. The environment wins over the file.

config.json holds only what you or keryx on and keryx off set. A file that cannot be read is ignored, and on and off keep it as config.json.bad. A value of the wrong type falls back to the default, and the daemon log names it; speak_only instead lets nobody speak.

Settings

Field Default Meaning
enabled true Speak at all
voice af_heart Any Kokoro voice; the first voice handed out
distinct_voices true Give each terminal its own voice; false speaks every terminal in voice
reserved_voices [] Voices handed to a session only when it asks with KERYX_VOICE: never from the rotation, a repo's home voice, or to a line with no terminal. A blend that includes one counts as reserved, a session already holding one gives it up, and keryx voice refuses one. Names as keryx voice takes them (michael or am_michael). For an orchestrator's voice, so no worker sounds like it. Set it with keryx reserve
speak_only [] Only these sessions speak: session ids, or files (an absolute or ~ path) listing one id a line (text after a # is a comment), read at every hook event, so editing the file takes effect at once. A session id changes on /clear, so a file the caller keeps current (such as an orchestrator's session record) outlasts a raw id. Every other session's hook stops before the daemon, so it costs nothing. A file that cannot be read, is not a regular file, or is over 64 KiB names nobody. []: every session speaks. Set it with keryx speak-only
speed 1.0 Speaking rate
loudness -16.0 Loudness (LUFS) every sentence is brought to before it plays
model gemma3:4b Ollama model that shortens replies; empty to speak the opening sentences instead
ollama_host http://localhost:11434 Ollama server
keep_alive 5m How long Ollama keeps the summarizer loaded after a reply or a warm-up: a Go duration such as 90s or 10m, or seconds. 0 unloads after every reply, the lightest setting; the next reply then waits about 5 s for the model to load. Anything else falls back to 5m with a warning
min_free_ram_mb 2048 With the summarizer not loaded and less RAM than this available (MiB, MemAvailable), a long reply's opening is spoken instead of loading the model. 0 turns the check off. The default is the model's 1.22 GB peak RSS plus earlyoom's 0.5 GB floor, rounded up
min_free_vram_mb 4096 The same for free GPU memory (MiB), read with nvidia-smi; no GPU means no check. 0 turns it off. The default is the 3.8 GB loading gemma3:4b took, plus margin
duck_apps ["Spotify"] Windows process names turned down while keryx speaks; [] for none
duck_ratio 0.25 The share of their volume ducked apps keep
speaking_signal true Write speaking.json into klepsydra's fleet folder while a line plays, when that folder exists (format)
reply_clips true Keep each session's latest spoken reply as one WAV in replies/ beside klepsydra's fleet folder, when that folder exists, for its wall to play again (format)
audio_dir /mnt/c/Windows/Temp/keryx Where WAVs are written; must be on a Windows drive

Environment variables

Variable Effect
KERYX_<FIELD> Overrides the setting of that name, one variable per field above
KERYX_VOICE In a session's environment, the voice that session asks for: its terminal holds it unless it already holds one, so a keryx voice pick stays. With distinct_voices off, each reply speaks in it. The daemon serves every session and takes its default voice from the file
XDG_CONFIG_HOME Moves the config directory; config.json and pronounce.json live in $XDG_CONFIG_HOME/keryx
XDG_CACHE_HOME Moves the cache directory; the daemon socket, voices.json and the venvs live in $XDG_CACHE_HOME/keryx
XDG_STATE_HOME Moves the state directory; daemon.log and daemon.stderr live in $XDG_STATE_HOME/keryx/log
CLAUDE_CODE_ENTRYPOINT Read, not set: a value starting with sdk marks a headless session (claude -p, the Agent SDK), which keryx keeps silent

An environment value is read as the type of its field. A boolean is true for 1, true, yes and on, and false for anything else. A list such as duck_apps is comma-separated: KERYX_DUCK_APPS=Spotify,vlc. A number that does not parse is ignored, and the daemon log names it.

Files

Path Holds
~/.config/keryx/config.json The settings you changed
~/.config/keryx/pronounce.json Pronunciations
~/.local/state/keryx/log/daemon.log The daemon's log, one JSON object per line (ts, level, logger, message, exc), readable only by you; one older file of about 1 MB is kept
~/.local/state/keryx/log/daemon.stderr What a dying daemon wrote to stderr (an import error, a native abort); the one before it is daemon.stderr.1
~/.cache/keryx/voices.json Which voice each repo was given
~/.cache/keryx/venv-<version>-<checksum> One venv per plugin version and checkout
<audio_dir> Spoken WAVs, rotating through 8 slots; deleted when the daemon exits

Each plugin version runs in its own venv. One whose checkout has been removed is deleted the next time keryx runs. The unversioned ~/.cache/keryx/venv from 0.5.0 and earlier is never deleted by keryx; remove it by hand once no daemon runs from it.

Ducking

While keryx speaks, apps in duck_apps drop to duck_ratio of their volume and come back a second after the last line. A duck covers every active output device. The original volumes are written to keryx-ducked.txt before anything changes, and a restart restores them, so a crash cannot leave the music down. A level you change by hand during speech is kept.

To duck another app, name its Windows process:

export KERYX_DUCK_APPS=Spotify,vlc

Choosing a different summarizer

Set model to any model Ollama serves, or to the empty string to skip the model and speak the opening sentences of each reply. The default was chosen over three blind-judged rounds; the design record has the scores. Two summarizer models loaded beside Kokoro filled an 8 GB card in that record's measurements.