theuth
Reference

Configuration

The data directory, config.yaml and THEUTH_* environment overrides, every plugin's keys and defaults, and what applies live versus after a restart.

theuth is one process with one data directory. Every plugin reads its own top-level section of config.yaml; a section that is missing means that plugin's defaults. This page lists the layout, the precedence rules and the keys with the defaults the code falls back to.

Data directory

Resolution order: --data-dir <path>, then the THEUTH_DATA_DIR environment variable, then ~/.theuth. If no home directory can be determined the binary exits with cannot determine data dir; pass --data-dir. --config <path> points at a different config.yaml; the default is <data_dir>/config.yaml.

On every start (first_run) the binary creates mcp/, acp/ and skills/, writes config.yaml, prompt.md and acp/agents.yaml if they are missing, and rewrites the eleven binary-owned skills (harness.md, visualize.md, pdf.md, loops.md, routines.md, apps.md, board.md, decide.md, double.md, native-apps.md, cells.md) whenever their content differs. The dreaming plugin writes its own skills/dreaming.md and sensors/dreaming.py the same way, and schedules/dreaming.md once. Nothing else is ever overwritten.

PathWhatWhen it is read
config.yamlevery plugin's sectionstartup; Settings and slash commands rewrite single lines (below)
tokenbearer token for the JSON-RPC server (64 hex, owner-only mode)startup; created on first serve
engine.lock, engine.jsonone running engine per data dir: pid, bound address, versionstartup
logs/theuth.log.<YYYY-MM-DD>the process log, daily rotation, no ANSI; RUST_LOG raises the levellive
logs/service.logstdout of the --install-service unitlive
prompt.mdstanding instructions prepended to every model callevery call
skills/markdown skills; see Skillsevery call
mcp/*.json, mcp/config.yaml, mcp/repos/MCP servers, risk gates, cloned server repos; see MCPwatched (300 ms debounce)
mcp/server-audit.jsonlone line per call to theuth's own MCP server (mcp_server); rotates to .jsonl.1 past 50 MBappend
oauth/mcp/<server>.jsonMCP server login tokens, mode 0600; provider /login grants live in the vault as hidden oauth/<provider> rows (legacy oauth/<provider>.json files are migrated and renamed .migrated)on use
secrets.sqlite, secrets.keythe encrypted vault and, without an OS keychain, its key (0600); see Secretson use
providers.yaml, models.jsonnamed OpenAI-compatible gateways; catalog additions and overridesstartup
acp/agents.yamlexternal ACP harnesses runnable as subagentsstartup
a2a/peers.yamlremote A2A peers and exports; /a2a reload re-reads itstartup, /a2a reload
nodes.yamlpaired remote harnesses (/nodes)live
schedules/*.md, schedule.sqlitescheduled runs and loops, run history; see Scheduleswatched
sessions.sqliteevery session's historylive
attachments/, spill/pasted images; tool output over the cap and the verbatim text folded by each compaction (spill/<session>/epoch_<n>.txt)on demand
knowledge/, knowledge.sqlitethe knowledge bundle (markdown with git history) and its derived indexlive, watched
agent-memory/the separate knowledge stores of agents with isolated memorylive
documents/, index.sqliteYjs documents behind the editor and their indexlive
notebooks/notebook sources and their derived textlive
artifacts/, artifacts.sqlite, artifacts.owners/content-addressed blobs shown with show or published with app, their index, per-process owner lockslive
codeindex/<slug>-<hash>.sqliteper-repository symbol indexeslive
share.sqlitepublic sharing on this machine: shares, names and the Allow public sharing switch and edge choice, which are never config.yaml keyslive
webprofile.sqlitethe shared browser profile (browser.profile), sealed per cookielive
voice/dictation dictionary and history (voice.history)live
meetings.sqlite, meetings/meetings, transcripts and audiolive
autoresearch/, autoresearch.sqlitestudy worktrees and ledgers; see Autoresearchlive
dreaming/, double.sqlitedreaming ledgers; the double's examples, predictions and versionslive
agents/, decisions/, models/, sandbox/, signal/, telegram/, link/roster agents, decision logs, local speech, decision and embedding models, sandbox VM state, Signal linked-device state and inbox, Telegram thread bindings (threads.json) and inbox, link identityplugin-specific
*.sqlite (mesh, replica, link, mcp, skills, tasks, roster, cells)replication and plugin statelive

Deleting knowledge.sqlite is safe; it is a derived index and is rebuilt. Deleting artifacts.sqlite orphans the blobs it named, which are swept at the next start. Deleting secrets.key (or the keychain item) loses the vault.

How config.yaml is read

The binary builds one configuration from two layers, later wins:

  1. <data_dir>/config.yaml (or --config).
  2. Environment variables prefixed THEUTH_, with __ separating nesting levels: THEUTH_<SECTION>__<KEY>.

Each plugin then extracts its section by name. Every config struct is #[serde(default)], so an absent key or section means the Rust default listed below. There is no third layer: CLI flags do not map onto config keys, except that --install-service --relay <url> --name <n> writes link.enabled, link.relay and link.name into the config file before starting the unit.

Examples:

THEUTH_RPC__LISTEN=127.0.0.1:7799 t --headless      # rpc.listen
THEUTH_AGENT__COMMUNICATION=true t                  # agent.communication
THEUTH_TOOLS__POLICY__DESTRUCTIVE=deny t            # nested: tools.policy.destructive

An environment value wins over the file on every start; the /communication status reports whether its value came from env, the file, the default or the mesh rule. Scalar coercion (booleans, numbers) follows figment's Env provider; arrays and objects are better kept in the file.

Some state is deliberately not configuration. The Allow public sharing switch and the sharing edge are stored per machine in share.sqlite; a share.enabled or share.edge key in config.yaml or a THEUTH_SHARE__* variable is ignored with a warning. See Public sharing.

Startup, live and restart

The rule: config.yaml is read once at startup and is not watched. A hand edit takes effect at the next start. What makes some settings feel live is that specific commands rewrite one line of the file and swap the value in memory at the same time:

CommandKey written
Settings › Models › Defaults (desktop); /model <id> on Slack, Signal or Telegram outside a threadagent.model, agent.effort, agent.subagents.model, agent.subagents.effort, roster.theuth_model, roster.theuth_effort
Star a model in any model pickeragent.favorite_models
Settings › Models › Helpers; /vision <model|off>, /title <model|off>; desktop /subagent <model>agent.title_model, agent.vision_model, agent.escalate_model and their *_effort; agent.subagents.model
Settings › Models › Providers (AWS); /aws <profile|clear>agent.aws_profile
/communication on|off alwaysagent.communication (unset = on once a machine is paired, off otherwise; an explicit value wins)
/compact style <summary|cut|snap>; Settings › Agent › Contextagent.compact_style
Settings › Agent › Context; /fractal model <id>agent.endless.*
Settings › Agent › Loop (desktop)agent.max_tool_rounds, agent.stream_idle_secs, agent.max_salvages, agent.status_every, agent.status_tool, agent.auto_title, agent.suggestions, agent.knowledge.hint_limit, agent.subagents.max_runtime_secs, knowledge.peek, knowledge.peek_threshold, tools.pty_idle_secs, schedule.run_timeout_secs
Settings › Agent › Advisor; the advisor pickeradvisor.*
/approvals on|off alwaystools.approvals
Settings › Tools › Builtins Off alwaystools.builtins.disabled
Settings › Tools › Serve over MCPmcp_server.enabled, mcp_server.port
Settings › Tools › Web search (desktop)web.* read/budget keys, search_providers.<provider>.*
Settings › Network and Settings › Learning switchesweb.allow_private_network, browser.allow_private_network, a2a.enabled, computer.enabled, decision.enabled, double.enabled
Settings › Learning › Dreaming, Double, Decision modelsdreaming.*, double.*, decision.families.*
Settings › Agent › Autoresearchautoresearch.*
Settings › Meetings, Settings › Calendarmeeting.*, meeting.detect.*, meeting.calendar.*
Settings › Voice › Dictationvoice.polish_enabled, voice.polish_model, voice.polish_effort, voice.stt_engine, voice.shape, voice.end_commands, voice.input_devices
/link on|off, /link relay <url>, /link name <n>link.enabled, link.relay, link.name
t mesh hub <mode>; Settings › Network › This machinemesh.hub, mesh.name, mesh.nearby
t --slack-setup, t --link-signal, t --telegram-setupslack.owner, slack.enabled, signal.owner, signal.device_name, telegram.owner, telegram.enabled
Telegram pairing (/start <code>, telegram_link), /telegram allow|rm|group add|group rm, Settings › Channels › Telegramtelegram.owner, telegram.allowed, telegram.groups

The rewrite is line-level: it replaces the first key: line inside the section, keeps any trailing comment, and appends the key or section if it is missing. Only <data_dir>/config.yaml is written; a file passed with --config elsewhere is read but not written back.

Caveats:

  • Directories, not the config file, are watched: mcp/, schedules/, knowledge/, agents/. Changes there apply within about a second.
  • agent.status_tool, agent.auto_title, agent.suggestions and knowledge.peek apply to sessions started after the switch. The other Settings switches in that row (decision, double, a2a, computer, web and browser private network) are written at once and apply at the next start; the desktop shows a restart banner.
  • a2a.listen and a2a.enabled need a restart even through the UI.
  • rpc.listen is bound at start. The desktop app passes its own THEUTH_RPC__LISTEN to the daemon it launches, so the file's value does not apply there.
  • A session-scoped /approvals off or /communication off without always is memory only and ends with the process.

Keys and defaults by plugin

Defaults are the values the code uses when the key is absent. null means unset.

agent

KeyDefaultMeaning
modelanthropic/claude-sonnet-4-5models.dev id provider/model, or a bare id resolved against configured providers. The only required key.
effortnullreasoning effort for new sessions (low, high, off, a token budget; what the model accepts); unset = provider default
favorite_models[]starred provider/model ids, in the order starred; every device attached to this engine (desktop, phone, TUI) lists them first
aws_profilenullAWS profile for amazon-bedrock/* models; overrides ambient credentials and bearer keys
communicationunsetmodel-to-model communication: spawn_subagent, discover_peers, send_message. Unset = on once this machine has a paired machine, off otherwise; true or false always wins. Off is a ceiling.
max_tool_rounds32tool-call rounds per turn before the loop asks for a text reply
stream_idle_secs120seconds without a stream event before a model call is abandoned
max_salvages2interrupted-reply recoveries per turn; 0 = off
status_every / status_tool8 / truetool calls between nudges to call set_status (0 = off); false offers new sessions no set_status tool
auto_title / suggestionstrue / truethe title model names new sessions; "What's next?" suggestions after interactive turns
max_tool_output_chars32000tool output over this spills to spill/ and the model gets the path
runtime_onlytrueonly direct tools are sent as tool definitions; the rest are Python runtime functions
compact_at0.8auto-compact at this fraction of the context window; 0 = off
compact_stylesummarysummary, cut or snap
compaction.tail_tokens / image_tokens / target_tokens40000 / 30000 / 120000post-compaction ceilings for the verbatim tail, snap images, head + tail
title_model, vision_model, escalate_modelnullsession titles; image questions from a text-only main model; tier 2 of the decision oracle (unset = title_model, then the session's model)
title_effort, vision_effort, escalate_effortnullreasoning effort of that call (a level the model lists, or a token budget), sent when that setting's model answers; a model change drops one the new model does not take. voice.polish_effort does the same for voice.polish_model
knowledge_harvester_model / knowledge_harvester_effortnulldefault model of the knowledge harvest when the session has no own pick; unset = the session's model
openrouter.provider / referer / titlenullbuilt-in OpenRouter provider (openrouter/<model> ids): provider preferences JSON sent verbatim, HTTP-Referer and X-OpenRouter-Title overrides; key = vault secret openrouter (or open_router), else OPENROUTER_API_KEY / OPEN_ROUTER_API_KEY. The built-in Zen provider (opencode/<model> ids) needs only the vault secret opencode or OPENCODE_API_KEY and has no config keys
subagents.model / effortnulldefaults for spawn_subagent when the call omits them, then agent.model / agent.effort
subagents.max_depth1sessions at this depth or deeper cannot spawn
subagents.max_concurrent / max_concurrent_external16 / 32concurrent child turns per orchestrator tree: native children; external ACP harness and mesh-node children (a separate pool). Further spawns queue and the parent is told
subagents.max_runtime_secs600a child turn over this is stopped and reported timed out
subagents.reply_timeout_secs120send_message{await_reply} wait
knowledge.hint_limit / hint_rounds / harvest_every / harvest_max5 / 4 / 3 / 8lines per <knowledge> hint, hint cadence in tool rounds, tool-using turns per harvest (0 = off), concepts per harvest
activity.first_update_secs / silent_secs60 / 180an external harness child is stalled (its parent is woken) with no update this long after a prompt, or this long silent mid-turn with no tool running; 0 = never
broadcast.max_targets32sessions one /broadcast may address
endless.*see belowFractal context

The built-in theuth agent's model is roster.theuth_model (below); a pick inside a chat applies to that chat only.

agent.endless (Fractal context)

Fractal context keeps the session log as the memory and shows the model a summary view plus a verbatim tail; see Sessions. Settings › Agent › Context edits these keys; ranges are enforced on write and clamped on read.

KeyDefaultMeaning
default_chat / default_desk / default_meetingfalse / true / falseinitial state of the switch for new chats, desks without a memory: field and meeting sessions
view_bytes128000summary view budget (16000 to 256000); meeting_view_bytes 32000 for a meeting's earlier part
model / effortnullcompactor model; unset = the session's own model. The effort applies only with model; unset = thinking off
profileautocompactor prompt: auto, standard or small (a short prompt for small local models)
tail_modefixedhow the verbatim tail is sized: fixed (bytes) or scaled (share of the model's turn allowance)
tail_low_bytes / tail_high_bytes24000 / 64000fixed mode: tail kept after a trim (8000 to 256000); size at which a trim is due (16000 to 512000)
tail_low_share / tail_high_share0.10 / 0.25scaled mode: the same marks as shares (0.02 to 0.40; 0.05 to 0.60)
cold_after_secs0idle seconds after which a trim is taken early (0 to 86400); 0 = the provider's cache lifetime
max_usd_per_call / max_usd_per_session_day0.10 / 5.0prompt cost cap of one compactor call; a chat's compactor spend per UTC day (0 = no cap; reaching it pauses settling)
ledger / ledger_bytes / ledger_suggestionstrue / 4000 / truethe state ledger (goals, decisions, constraints, open tasks) and its tool; its budget (1000 to 16000); summary-model flags shown as unconfirmed suggestions
prefetch_bytes2000recall hits appended to the input (0 to 8000; 0 = off)
describe_imagesautoone-line description when an image leaves the tail; off
merge_at / age_by_use0.75 / trueshare of view_bytes at which merges are built; a zoomed line stays unmerged for one generation
raw_bytes / compactor_ctx_bytes / batch_units32000 / 48000 / 16unsummarized lines shown verbatim; the compactor's context cap; units per compactor call
attempt_secs / local_attempt_secs120 / 600one compactor attempt's bound, cloud / local model
local_ctx_bytes / local_jobs24000 / 1a local compactor's context cap; compactor calls in flight per local endpoint
jobs / tries / retry_secs / settle_secs8 / 5 / 10 / 45compactor calls in flight per session; attempts per node; retry delay; how long a turn waits for the view
node_bytes / slack / cap_chars / backfill_max_units512 / 0.125 / 30000 / 2000one summary line's ceiling; fold slack band; tool-result cut size; units covered when switched on mid-chat

advisor, acp, durability, surface

KeyDefaultMeaning
advisor.model / effortnullthe remembered advisor pick; serves /advisor on. There is no enabled: an advisor runs only for sessions you turn it on for
advisor.max_notes_per_update4non-blocker notes accepted per update (1 to 32)
advisor.immune_turns3agent steps after a steer during which a concern is only an aside (0 to 10; 0 = off)
advisor.sync_backlogoffoff, 1, 3 or 5: pending reviews the turn end waits for
advisor.max_consults6consult calls the advised model may make per user turn (0 to 32; 0 removes the tool)
acp.idle_stop_secs1800an idle external harness child's process is stopped; the next input resumes it. 0 = never
durability.resumeautoopen turns at boot: auto resumes them, ask raises an Inbox item per turn, off resumes on the next input
durability.resume_parallel / drain_secs / journal_keep_days4 / 10 / 7turns resumed at once; graceful-shutdown budget for in-flight tool calls; finished-turn journal retention
durability.acp_respawn_window_days / acp_respawn_parallel7 / 4how far back boot looks for ACP children cut off mid-prompt; how many respawn at once
surface.enabled / correct / correct_roundstrue / true / 3Mermaid and json-render blocks in replies; fix-up rounds on invalid blocks

tools

KeyDefaultMeaning
policy.read_only / mutating / destructiveallow / ask / askallow, ask or deny per risk class; see Tools and permissions
approvalstruefalse turns every ask into allow; /approvals off always writes it
approval_timeout_secs300an unanswered approval is denied after this
ask_timeout_secs1800ask_user gives up (the model sees "no answer")
job_grace_secs3shell replies inline if the job exits within this; 0 = always a job stub
job_timeout_secs1800default and maximum shell timeout; the process group is killed
pty_ready_timeout_secs30start readiness wait when ready gives no timeout (max 300)
pty_idle_secs60quiet seconds before a PTY job reports <job_idle>; 0 = never
pty_reaction_secs / pty_tree_cpu_pct10 / 2after a model send(), seconds with no screen change or process movement before <job_idle why="no reaction to input"> (0 = off); a process tree above this percent of one core counts as busy
pty_shellnullprogram for start; default $SHELL, on Windows pwsh.exe else powershell.exe
login_pathtrueseed shell's PATH from your login shell; THEUTH_NO_LOGIN_PATH=1 also disables it
reminder_max_secs86400ceiling for remind_me_in
builtins.disabled[]builtin tool names and category keys switched Off always for the whole harness (Settings › Tools › Builtins); per-chat Off here is not config

rpc, secrets, knowledge, documents

KeyDefaultMeaning
rpc.listen127.0.0.1:7777address bound by --serve / --headless; without those flags an ephemeral loopback port is used and recorded in engine.json
secrets.key_storeautoauto, keychain or file; auto = keychain when one answers, else secrets.key with a warning
secrets.toolstruefalse: no secret_* tools, no prompt block, {{secret:…}} stays literal, nothing is scrubbed
secrets.request_timeout_secs1800secret_request gives up after this
knowledge.enabledtruefalse: no store, no knowledge_* tools, no hints, no harvest
knowledge.sync_secs300seconds between bundle syncs with every connected mesh engine; a sync also runs on connect
knowledge.lifetimes.record / fact / procedure / entity14 / 30 / 90 / 60days: a record past its lifetime drops out of hints; the others pace dreaming's verification and archive sampling
knowledge.peek / peek_threshold / peek_checkpointtrue / 0.5 / glinerpeek_memory, the local yes/no filter before memories enter context; the probability it needs; the decision checkpoint it uses
documents.enabledtruefalse: no Yjs store, no doc_* methods
documents.export_debounce_ms / export_quiet_secs400 / 60settle time before the derived .md is rewritten; quiet time before an edit is recorded
documents.max_doc_bytes8388608an update that would grow a document past this is refused
documents.snapshots_keep / snapshot_quiet_ms30 / 2000automatic snapshots kept per document (labelled ones are never pruned); snapshot an open document this long after its last update
documents.agent_color#7c3aedthe agent's presence colour
documents.max_members / sharing64 / onmembers per shared document; on, off (no new links) or disabled (members refused)
documents.idle_unload_secs / max_open_docs600 / 256memory management

notebooks

See Notebooks.

KeyDefaultMeaning
embedding_modelembed-gte-modernbert-basea checkpoint directory under <data_dir>/models/, never a provider/model: notebook embeddings are computed locally
chunk_tokens / chunk_overlap / chunk_min_tokens400 / 0.15 / 5search chunk size, overlap share, smallest chunk kept
max_source_bytes / max_source_chars26214400 / 2000000an original over 25 MiB is refused; derived text over the cap is cut with a notice
ingest_concurrency2source jobs at once
youtube_route / youtube_langs / youtube_ytdlpauto / [en] / nullauto, captions or audio; caption languages in order; yt-dlp path (unset = PATH)
insight_model / insight_default / insight_input_tokensnull / true / 24000model for insight side calls (unset = agent.title_model, then the session's model); one summary per new source; how much of a source it reads
ask_model / ask_max_branches / ask_hits_per_branch / ask_context_tokensnull / 5 / 10 / 40000notebook questions: planning model (unset = the session's), branches, hits per branch, context budget

web, scrape, codeindex, search_providers, routes

KeyDefaultMeaning
web.enabledtruesearch_web and read_url
web.engines[google, brave, qwant, duckduckgo, wikipedia, arxiv, github]keyless engines; bing is opt-in
web.fetch_max_chars / read_top / read_chars4000 / 5 / 2500read_url cap; hits search_web reads; passage budget per page
web.read_budget_ms / render_cap_ms6000 / 3000whole read phase; one browser-rendered page inside a search
web.recent_defaultnullday, week, month or year when a call passes none
web.keyless_fallback / degraded_is_errortrue / falserun built-ins when an external provider exists; treat a degraded search as an error
web.timeout_ms / overall_timeout_ms / max_fetch_bytes / max_redirects4000 / 6000 / 2097152 / 5fetch limits
web.impersonate / header_ladderalways / truewhen page fetches use the Chrome-emulating client: always, on_challenge or never; under on_challenge, escalate after a diagnosed 403/503 challenge
web.user_agent / accept_languagebuilt in / en-US,en;q=0.9sent on every request
web.allow_private_networktruethe web tools (read_url, http_request, scrape_url, crawl, map_site, site_*) reach localhost, LAN addresses and .local names. Cloud metadata endpoints and capped contacts never do. Restart to apply
scrape.enabledtruescrape_url, crawl, map_site
scrape.concurrency / max_pages / max_depth5 / 50 / 3crawl and map_site limits
scrape.same_domain / robots / delay_mstrue / true / 100stay under the seed's host; honour robots.txt; per-host gap (a larger Crawl-delay wins, capped at 10 s)
scrape.page_timeout_ms / run_timeout_ms8000 / 60000per page; per run
codeindex.enabledtruecode_* tools and the per-repo index
codeindex.sync_limit / max_file_bytes / cochange_commits64 / 1048576 / 300files re-indexed before answering; larger files are listed, not parsed; first-parent commits walked
codeindex.languages[rust, typescript, javascript, python, go]parsed languages
codeindex.codemap.model""model that generates the code map; empty = the opening session's model
search_providers.firecrawl{enabled: true, base_url: https://api.firecrawl.dev, secret: firecrawl, timeout_ms: 8000, priority: 30}inert until the firecrawl secret exists
search_providers.searxngabsent{base_url}; timeout_ms 6000, priority 10 when present
search_providers.openserpabsent{base_url: http://127.0.0.1:7000, engines: [google, bing, duckduckgo], secret: openserp, timeout_ms: 8000, priority: 20} when present
search_providers.braveabsent{enabled: true, secret: brave, timeout_ms: 5000, priority: 40} when present; provider name brave_api
search_providers.x{enabled: true, model: grok-4.7, timeout_ms: 90000}search_x; registered only while an xai secret or /login xai exists
routes.enabled / settle_ms / call_timeout_ms / max_body_bytestrue / 4000 / 15000 / 2097152captured site routes (site_* tools): settle after network idle; one site_call; replayed body cap

browser, computer

KeyDefaultMeaning
browser.enabledtruethe embedded headless browser and browser_* tools
browser.profilesharedshared: one signed-in profile for the web-view tile and every agent browser of the mesh, sealed at rest; off: nothing is pushed, loaded or saved. See Web views
browser.stealthtrueTLS fingerprint and tracker blocklist
browser.proxy / user_agent / timezone / geolocationnullhttp://user:pass@host:port or socks5://host:port; UA override; IANA zone (null = host's); "lat,lon"
browser.allow_private_networktruelet pages reach loopback, RFC 1918 and link-local addresses (dev servers on localhost); false turns the SSRF guard back on. Restart to apply
browser.import_cookiesfalseadds browser_list_profiles and browser_import_cookies
browser.idle_secs / max_chars / script_deadline_ms300 / 4000 / 30000isolate teardown; default reply cap; script deadline for heavy SPAs
browser.capture_entries / capture_body_bytes256 / 2097152network capture ring
computer.enabledtruecomputer_* tools; the OS permission prompts are the consent, actions still ask
computer.max_edge1568screenshot long edge after scaling
computer.screen_context.max_edge / crop_edge / max_crops1568 / 1024 / 3screen_context overview size, crop downscale threshold, crops per call
computer.screen_context.accessibility / max_elements / value_charsauto / 6 / 80off never reads the accessibility tree; elements reported per gesture; label length cap
KeyDefaultMeaning
link.enabledfalsethe uplink dials out to the relay; nothing listens
link.relaywss://relay.theuth.ioyour theuth-relay URL when self-hosting
link.name""display name in the QR and on devices; empty = hostname
link.max_devices / guest_handshakes_per_minute16 / 10paired devices; share-link guests admitted per minute
nodes.enabledtruefalse: no dials, nodes invisible; nodes.yaml kept
mesh.relayhttps://iroh.relay.theuth.ioiroh relay when hole punching fails; public = n0's relays; none, off or "" = never dial a relay (LAN only)
mesh.discoverytrueDNS/pkarr and mDNS peer lookup
mesh.name / bind / class"" / null / nulldisplay name; ip:port for the endpoint; server, desktop, laptop, container or vm
mesh.hubeligibleprefer, eligible or never for the hub lease
mesh.probation_secs / handover_secs / heartbeat_secs / lapse_secs / capabilities_secs21600 / 600 / 10 / 30 / 300lease timing
mesh.availability_flush_secs / storm_frames_per_sec600 / 50how often a connected peer's availability row is written; frames per second on one stream that count as a storm in mesh_status
mesh.workspaces[]repo roots this engine advertises for task placement
mesh.messaging_off[]engine ids agent messaging is refused for, both directions; the Settings › Network Agents can message switch
mesh.nearbytrueadvertise on the LAN and accept code pairing while Settings › Network is open or a pairing window is open
mesh.pair_window_secs120how long Nearby stays open after t mesh pair or a shown pairing string
sandbox.enabledtruefalse: no actor, no sandbox_* tools, no RPC; VMs on disk untouched
sandbox.vm.enabled / runtime / hometrue / microsandbox / ""VM engine; home = MSB_HOME, empty = SDK default
sandbox.vm.imageghcr.io/basedatum/theuth-vmpulled at the tag equal to this binary's version; the VM path works only when that image is published and reachable from your machine. --local-t <path> replaces the t inside the guest, not the image; --bootstrap boots the base image without the first-boot setup and does not yield a working guest
sandbox.vm.defaults{cpus: auto, memory_mib: auto, root_disk_mib: 20480, max_cpus: auto, max_memory_mib: auto, desktop: true, geometry: 1440x900, network: public_host}cpus auto = clamp(cores/4, 2, 4); memory_mib auto = clamp(mem/4, 2048, 8192); network is public_host, public_host_private, public_only or none
sandbox.vm.autostart / max_vms / resize_settle_secs / loopback_meshtrue / 4 / 20 / falsestart recorded VMs with the engine; cap; resize settle; pair over 127.0.0.1 instead of the relay
sandbox.create_timeout_secs / step_timeout_secs / health_interval_secs900 / 600 / 60sandbox_create wait; per bring-up step; status reconcile
sandbox.max_concurrent_bringups / snapshots_keep / handoff_timeout_secs2 / 5 / 1800parallel bring-ups; auto-snapshots kept; desktop_handoff wait

mcp_server, share, limits

KeyDefaultMeaning
mcp_server.enabledfalseserve theuth's meetings, notes, knowledge, tasks and sessions to MCP clients over streamable HTTP; Settings › Tools › Serve over MCP flips it live. See MCP
mcp_server.port7788loopback port; no other bind address exists. The bearer token is the vault row mcp.server.token, never a config key
share.default_expiry8hexpiry when a publish names none: 1h, 8h, 24h or 7d
share.max_live5live public shares per machine
share.interstitialtruefirst-visit interstitial on for new shares
limits.<provider>.polltruethe Costs page's usage-limit poller for that provider; false turns it off
limits.anthropic.probefalseallow the paid idle probe that reads Anthropic rate-limit headroom

share.enabled and share.edge do not exist: Allow public sharing (off by default) and the edge are per-machine state in share.sqlite, set in Settings › Sharing. See Public sharing.

schedule, a2a, update, artifact, app

KeyDefaultMeaning
schedule.enabledtruefalse: no watcher, no schedule tool, no prompt block
schedule.run_timeout_secs1800a run over this is cancelled and reported timeout; a file's run_timeout: overrides it
a2a.enabledfalseremote agents over A2A; also needs agent messaging on (agent.communication)
a2a.listen127.0.0.1:7780loopback only; restart to change
a2a.public_urlnullHTTPS base your reverse proxy publishes; without it the listener is plain HTTP for loopback development
a2a.contact_window_secs600how long an Add contact window and its invite ticket stay open; see Contacts
update.enabledtruesilent self-update of the t binary: download the release tarball, verify its signature, replace t and its helpers on disk, live at next start; t --update still works when false. The updater handles .tar.gz releases only: macOS and Linux CLI installs, not the Windows CLI zip
update.urlhttps://s3.rwx.dev/theuth/releases/latest.jsonrelease manifest
artifact.enabled / fontstrue / []the show tool; extra font directories for PDF compilation
app.enabledtruethe app tool, /apps and app_* RPC

voice, talk, meeting, models, decision

KeyDefaultMeaning
voice.enabledtrueTTS, voice notes and dictation; false: speak answers "not running"
voice.voicepeter_yearsleya voice in the Pocket TTS checkpoint
voice.model_dir / stt_model_dir / dictation_model_dirnulldefault <data_dir>/models/pocket-tts-en-2026-10, models/parakeet-tdt, models/nemotron-streaming-en
voice.stt_engineonnxwhole-utterance speech to text: onnx (built in) or mlx (Parakeet on MLX, Apple silicon, after its explicit download; ONNX until then)
voice.stt_idle_secs / dictation_max_secs600 / 300unload STT after idle (0 keeps it resident); a dictation stops itself
voice.standby_secs / input_devices / duck_media8 / [] / offkeep the mic open after a dictation (0 = close at once); ordered input devices ([] = system default); media while dictating: off, duck (volume down) or pause
voice.polish_enabledtruefalse: the engine never runs Polish, whatever a client asks; an explicit rewrite is not affected
voice.polish_model / polish_effort / polish_profilesnull / null / {}Polish model (unset = title model, then the session's model); its effort; instruction overrides per destination kind
voice.history.enabled / rows / audio_mib / learntrue / 200 / 64 / truelocal dictation history: rows kept, audio budget in MiB, learn corrections
voice.player_buffer_ms / player_device200 / nulldaemon speaker ring; output device by name
talk.enabledtruelive spoken conversation; false: talk_* answers "talk is disabled"
talk.barge_in_min_ms / decide_ms / barge_in_vad400 / 900 / 0.7barge-in timing and VAD threshold while the agent speaks
talk.end_of_turn_ms / end_of_turn_punct_ms700 / 250turn commit delay without / with terminal punctuation
talk.hold / aec / turn_modelpause / prefer / nonepause playback during classification; macOS echo cancellation; smart-turn when its model exists
talk.backchannels / echo_ratio15 words (yeah, mhm, okay, …) / 0.8words that alone are an acknowledgement, not a cut-in; similarity at which a candidate is treated as the agent's own echo
talk.promote_after_ms5000an inline tool call during talk is promoted to a background job after this; 0 = never
meeting.enabledtruemeeting recorder; full capture (meeting app audio + mic with echo cancellation) on macOS 15, partial on Windows and Linux (loopback capture, no echo cancellation, headphones recommended); false: meeting_* answers "meetings are disabled"
meeting.model / effortnullthe meeting session's model and effort; unset = agent.model, agent.effort
meeting.summary_model / summary_effortnullthe summary turn's model; unset = meeting.model
meeting.template / project / languagemeeting / null / endefault note template; project a meeting gets when nothing is remembered; transcript language
meeting.max_minutes / context_tokens180 / 32000hard stop; compaction trigger for the meeting session
meeting.batch_secs / batch_utterances25 / 6transcript batching
meeting.live_diarizationtruelabel the other side's live lines Speaker N:; the post pass diarizes either way
meeting.live_tools / live_prompts / live_hint_limit10 meeting, brief, knowledge and web tools / [meeting, knowledge, web] / 2what the meeting session may call and see while recording
meeting.topic_ttl_secs / max_topics600 / 6topic button lifetime and count
meeting.live_model_dir / models_dirnullstreaming and diarization model directories; default under <data_dir>/models
meeting.detect.enabled / poll_secs / ignoretrue / 2 (5 on Linux) / theuth, dictation and recording appsprompt to record when an app holds the mic; sensor tick; apps that never prompt ("Never for" appends here)
meeting.calendar.eventkit / prebrief / poll_secsfalse / true / 900accept macOS Calendar events from the companion; write pre-meeting briefs; ICS subscription poll
models.acceleratorautoauto, cpu, webgpu, directml, cuda. auto takes WebGPU only on a discrete GPU and otherwise stays on the CPU; directml is never chosen automatically; cuda affects only the decision model and only in a binary built with the decision/cuda feature. t --bench-models reports what runs where
models.webgpu_adapternullsubstring of the adapter to use when several GPUs answer
decision.enabled / device / idle_unloadtrue / auto / 3mlocal decision oracle (device: auto, cpu or metal); every family starts in shadow mode
decision.checkpoints / families / log_textdefault, browser / built-in table / falsenamed checkpoint directories; per-family gates (mode, train, share; Settings › Learning › Decision models writes them); store question text, not only its hash

ICS calendar URLs are vault rows, not config keys. See Meetings and Voice.

dreaming, double, autoresearch

KeyDefaultMeaning
dreaming.enabledtruethe nightly memory routine; false installs no routine file and no prompt block
dreaming.window / idle_minutes / min_sessions["01:00", "06:00"] / 20 / 1local hours it may run (may cross midnight); minutes since the last root turn; below this many sessions the night only recalls and journals
dreaming.heavy_day.concepts / sessions300 / 40past either count, a second window the same night
dreaming.budget_usd1.0the night's spend, checked before every model call; Settings accepts up to 1000
dreaming.run_timeout / digest45m / Mon 08:00the routine's run_timeout:; weekly digest time
dreaming.models.triage / tidy / propose / judgenullper-tier models: triage unset = local decide_many only; tidy = agent.model; propose = tidy; judge = agent.escalate_model when it differs from the proposer, else the proposer. dreaming.efforts.* sets each tier's effort
dreaming.caps.*triage: 300, merges: 40, archives: 60, verifications: 15, cases: 60, edits_per_target: 4, targets: 3, rows_per_week: 3per-night counts; Inbox rows per 7 days
dreaming.gate.margin / max_regression / min_val_cases / val_fraction0.1 / 0.2 / 3 / 0.34the held-out replay gate an edit must pass
dreaming.preferences.auto_from_explicit / cap_linestrue / 20promote a preference backed by two explicit instructions without asking; lines in the block
dreaming.home_enginenullin a mesh only this engine dreams; unset = the engine that installed the routine
double.enabledfalsethe local model of your approval habits; restart to change. See Tools and permissions
double.capture.approvals / asks / attention / packets / draftstruewhich card kinds are predicted and learned from
double.ladder.grace_secs / mutating_opt_in30 / falsecountdown before an acting answer lands; default opt-in for new mutating classes
double.ladder.caps.read_only / mutating / destructive2 / 1 / 1highest rung per risk class; destructive never climbs past 1
double.training.venue / window / idle_min / run_cap_minauto / 02:00-06:00 / 15 / 90auto, local, node:<name> or off; hours, required idle and minutes per night for adapter training
double.training.share_datatrueship scrubbed training bundles to your own GPU nodes (never a VM)
double.retention_days / model.checkpoint / model.adapter_rank365 / default / 8row retention (golden rows and the last 1,000 per class kept); decision checkpoint; adapter rank
autoresearch.enabled / roottrue / nullstudies; unset root = <data_dir>/autoresearch
autoresearch.max_parallel / confirm_budget_usd / keep_finished_days4 / 50 / 14largest parallel: a study may ask for; draft budgets above this must be typed; finished worktrees kept
autoresearch.gate.z / z_fast / z_discard / z_suspicious / confirm_runs2.0 / 3.5 / 1.0 / 8.0 / 2the sequential keep gate
autoresearch.noise.max_cv / plateau.window0.05 / 12baseline noise that refuses a start; experiments without a keep before explore mode
autoresearch.review.model / notify.new_bestnull / falsereviewer (unset = another vendor's model; off disables); channel ping on a new best

The full autoresearch section, including defaults.*, models.*, brief.*, bench.* and pause.*, is on Autoresearch.

roster, tasks, cells, sessions

KeyDefaultMeaning
roster.theuth_model / theuth_effortnullthe built-in theuth agent's model and effort; unset = the default for new sessions
roster.decision_wait_secs / max_rounds120 / 3escalate wait for a live answer before a task is parked; follow-up rounds a desk may spend on one task
roster.episode_idle_secs / episode_context_pct / journal_max_bytes21600 / 60 / 8192a desk's episode closes after this idle time or context share; desk journal ceiling
roster.alert_delay_ms2000an Inbox alert shows only if the item is still there after this
roster.attention.stopped_ttl_mins / rescore_secs / weights.*45 / 60 / built inInbox: a session-stopped card's lifetime; re-score tick; score weights
tasks.orphan_secs / stale_secs / note_secs120 / 900 / 300a checkout whose engine is unreachable is orphaned; a doing task without progress is stale; progress note cadence
tasks.cross_task_write_cap / cross_task_write_window_secs20 / 86400tasks a hired agent may change outside its reporting line per window
tasks.backoff_min_secs / backoff_max_secs120 / 1800no-progress back-off
tasks.place_prefer / project_order / home_offline_ask_secs[] / [] / 300preferred engines; project rank; when to ask about moving tasks off an unreachable home engine
cells.enabledtruerunnable cells in chat, notes and notebooks
cells.kernel_idle_hours / max_kernels12 / 16idle kernel shutdown; live kernels engine-wide
cells.retention_days / store_max_mb30 / 2048run history retention and size cap
sessions.takeover_secs / release_wait_secs / orphan_keep_days300 / 10 / 7transcript replication across mesh engines
sessions.harness_outbox_ttl_secs604800an input for a session owned elsewhere waits this long before it is dropped with a local note

signal, slack, telegram

KeyDefaultMeaning
signal.enabledtruethe daemon starts the channel when a device is linked (--headless only)
signal.device_name / owner / allowedtheuth / "" / []linked-device name; owner E.164 (written by --link-signal); more numbers
signal.picturestruediagrams go out as PNG attachments drawn by a connected desktop or web client; false sends the text fallback
slack.enabledtruethe daemon opens Socket Mode when slack_bot and slack_app secrets exist (--headless only)
slack.owner / allowed / channels"" / [] / []owner member id; more user ids; channel ids where @theuth is honoured (empty = DMs only)
slack.tools / reasoning / approvalsall / true / alltask cards per tool call (all, errors, none); quoted reasoning; where approvals for unbound sessions go (all = owner DM, threads = nowhere)
slack.plan / deliveries / blocks / picturestrue / hidden / true / truethe plan message; subagent and job deliveries post nothing; json-render as Block Kit; other diagrams as PNGs
telegram.enabledtruethe daemon polls the Bot API when the telegram_bot secret exists (--headless only)
telegram.owner / allowed / groupsunset / [] / []owner's numeric user id (written by --telegram-setup or pairing); more user ids; chat ids where mentions and commands are honoured (empty = private chats only)
telegram.tools / reasoning / approvalsall / true / allactivity cards per tool batch (all, errors, none); reasoning text in the expandable quote; where approvals for unbound sessions go (all = owner chat, threads = nowhere)
telegram.picturestruediagrams as pictures; false = text fallback

A compact config.yaml

Everything below is optional except agent.model. Values shown are the defaults, so this file changes nothing; uncomment and edit what you need.

# <data_dir>/config.yaml (env overrides: THEUTH_<SECTION>__<KEY>)
agent:
  model: anthropic/claude-sonnet-4-5
  # communication: true         # unset: on once this machine is paired; /communication on always → true
  # effort: high
  # favorite_models: ["anthropic/claude-sonnet-4-5"]
  # vision_model: anthropic/claude-haiku-4-5
  # subagents: {max_depth: 1, max_concurrent: 16, max_concurrent_external: 32, max_runtime_secs: 600}
  # endless: {default_chat: false, view_bytes: 128000, tail_mode: fixed}
  compact_at: 0.8
  compact_style: summary

tools:
  policy: {read_only: allow, mutating: ask, destructive: ask}
  # approvals: false            # /approvals off always → never prompt
  # builtins: {disabled: []}

rpc:
  listen: 127.0.0.1:7777

# secrets: {key_store: auto, tools: true}
# knowledge: {enabled: true, peek: true}
# advisor: {max_consults: 6}
# web: {engines: [google, brave, qwant, duckduckgo, wikipedia, arxiv, github], allow_private_network: true}
# browser: {profile: shared, allow_private_network: true, import_cookies: false}
# link: {enabled: false, relay: wss://relay.example.com}
# mcp_server: {enabled: false, port: 7788}
# share: {default_expiry: 8h, max_live: 5, interstitial: true}
# dreaming: {enabled: true, budget_usd: 1.0}
# double: {enabled: false}
# schedule: {enabled: true, run_timeout_secs: 1800}
# update: {enabled: true}
# a2a: {enabled: false, listen: 127.0.0.1:7780}

Keep API keys out of this file: provider keys live in the secrets vault, MCP credentials in mcp/*.json as {{secret:NAME}} or $(cmd), AWS credentials in AWS's own files.

Other configuration files

  • providers.yaml: named OpenAI-compatible gateways, name: {base_url}; the key is the vault secret of the same name. /provider add writes both and fetches GET {base}models into models.json.
  • models.json: optional; the bundled models.dev catalog shape, adds or overrides models (local ollama/..., private gateways).
  • prompt.md: read verbatim into every system prompt. Text between <!-- root-only --> and <!-- /root-only --> reaches only sessions a person reads; subagents and scheduled runs get the file without those spans.
  • acp/agents.yaml: one entry per external harness, name: {command, args, env, description}; /acp lists, probes, adds from the registry and removes. See Delegation.
  • a2a/peers.yaml: owner-edited peers and exports; /a2a reload validates the whole file and installs all of it or none.
  • schedules/<name>.md: cron: / every: / at: front matter and the prompt as body; until:, max_runs:, cwd:, approvals:, agent:, project: and run_timeout: refine a run. A when: sensor turns the file into a watcher, with fire: (on_change, while_true, once), for:, cooldown:, mode: (skip, queue, restart), memory:, expires: and timeout:. The desktop app calls these Routines. See Schedules and Watchers.

Security scope

See Security and privacy for the whole model.

  • rpc.listen defaults to loopback and the token is required on every connection; nothing listens on other interfaces unless you change it. Phones and browsers reach the harness through the outbound link uplink, not an open port. mcp_server binds loopback only and is off by default.
  • a2a.listen must be loopback; publish it only behind an HTTPS reverse proxy with a2a.public_url set.
  • web.allow_private_network and browser.allow_private_network are on by default so the agent can reach dev servers on localhost and your LAN; set them to false on machines where that reach is not wanted. Cloud metadata endpoints are always refused.
  • browser.import_cookies hands real browser credentials to the model; leave it off unless you need it. browser.profile: off stops the shared signed-in profile from syncing across your machines.
  • tools.approvals: false removes every prompt for ask actions but never rewrites deny. Prefer tools.policy.destructive: deny on unattended machines. Public sharing stays owner-approved either way.
  • The desktop app launches t --headless through your login shell, so the daemon has the same environment a terminal would, including any provider keys exported there.

On this page