Skip to content
Download

Operate and reference

Configuration reference ​

This page documents the user-facing keys of config.yaml for sMind, where the file lives and the default of each key. It is for people who tune or operate the daemon.

sMind, version 0.24.0. This page describes the 0.24.0 release.

The daemon reads one file, config.yaml. Every key is optional. A missing key keeps its default, and a missing file is fine.

Where config.yaml lives ​

The file is config.yaml inside the smind home directory. The home directory is ~/.smind unless the SMIND_HOME environment variable names another one. The daemon log, daemon.log, lives in the same directory.

sh
SMIND_HOME=/srv/smind smind serve

The CLI and the daemon must see the same SMIND_HOME. smind status prints the home directory and config file path the CLI uses.

Change settings from the command line ​

smind config edits the file for you and keeps its comments.

sh
smind config get                       # all settable keys
smind config get server.port           # one key
smind config set server.port 4650
smind config unset server.port         # back to the default

Only these paths can be set:

PathValue
server.portA port from 1 to 65535.
server.listenhost:port to bind.
server.hostnamesComma-separated host names.
providers.<id>.defaultModelA model name. <id> is any built-in provider id: claude-native, codex-native, glm, kimi, opencode, copilot, cline, goose, cursor or antigravity.
fleet.enabledtrue or false. Needs a restart.
plugins.enabledtrue or false. Applies on the next call.
learning.enabledtrue or false. Needs a restart.
automations.enabledtrue or false. Applies on the next engine tick.
automations.pausedtrue or false. Applies on the next engine tick.

server.passwordHash can only be removed with smind config unset. Set it with smind set-password. Every other key below is edited by hand in config.yaml.

Changes apply when the daemon restarts. If the file does not parse or a value fails the checks below, the daemon logs a config: error and carries on with its default settings, so check the log after you edit by hand.

Changing switches from the app (config.get and config.set) ​

Five global switches can be changed from the app as well as from the command line: automations.enabled, automations.paused, plugins.enabled, fleet.enabled and learning.enabled. Every other setting stays in config.yaml. The app reads them with config.get, which reports each key's effective value, its default, where the value comes from (default, file or environment), whether a change needs a restart and whether this connection may change it. A paired phone or a remote login can read the switches, so it can say "change this on the daemon's machine", but it cannot change them. The server.* keys are shown only to a local connection.

config.set changes one key per call and works only from a local (loopback) connection by the person at the machine. It is refused to agents, plugins, relay sessions, other hosts and remote logins, including password logins over a network. The edit is the same comment-preserving write as smind config set.

  • A key that an environment variable overrides is refused with "overridden by SMIND_x, unset it first", because the file write would have no effect.
  • fleet.enabled and learning.enabled take effect after a daemon restart; the other three apply live.
  • Every attempt, accepted or refused, is logged in config-audit.jsonl in the daemon home (owner-only, rotated by size), with the key, the old and new values, the outcome and the kind of caller.

One honest limit: a process running as the same operating-system user can still edit config.yaml directly. Refusing agent runs and non-local callers narrows the easy path; it does not make the file private. In the same way, config.set treats a connection as local only when it comes straight from the machine (a loopback address, a local host name, no proxy headers). A reverse proxy on the same machine that rewrites the host name and adds no forwarding headers cannot be told apart from a local client, so do not put one in front of a daemon whose password you share.

Keys ​

config get shows values as stored in the file. It does not show defaults or environment overrides.

server ​

KeyDefaultNotes
server.port4648Port of the default listen address.
server.listenemptyhost:port. Empty means 127.0.0.1 and server.port. If it also names a port, that port must match server.port.
server.hostnamesemptyExtra Host header names accepted besides localhost and IP addresses. A leading . matches the domain and its subdomains, such as .example.com. No ports, schemes or wildcards.
server.passwordHashemptyA bcrypt hash written by smind set-password.

A non-loopback server.listen (for example 0.0.0.0:4648) needs a password. The daemon refuses to start without one. The daemon always also listens on 127.0.0.1 so local clients keep working.

orchestration ​

KeyDefaultNotes
orchestration.maxDepth2How many ancestors a task may have. A root task is depth 0.
orchestration.maxConcurrentRunsPerTree4Runs that may be active at once in one task tree. Must be 1 or more.
orchestration.notifyParenttrueWhen a child task goes quiet, queue one message on the parent chat.
orchestration.notifyDebounceSeconds20Hold a parent message so several finished children merge into one. 0 sends at once.
orchestration.stallAlertMinutes15Raise a "tree stalled" notification after this long with unfinished work and nothing running or queued. 0 turns it off.

worktrees ​

KeyDefaultNotes
worktrees.root<smind home>/worktreesFolder task worktrees are created under (absolute, ~ ok). Use it to keep worktrees on another disk. Applies to new tasks only; set with smind config set worktrees.root <path>. Must not be /, contain or sit inside the smind home, contain your home folder, or be inside a project.
worktrees.setupTimeoutSeconds600Time limit for a task's setup script.
worktrees.teardownTimeoutSeconds120Time limit for a teardown script.
worktrees.ports.rangeemptylo-hi inside 1024-65535. Empty turns per-task port allocation off.

providers ​

yaml
providers:
  claude-native:
    defaultModel: sonnet
    env:
      CLAUDE_CONFIG_DIR: ~/.claude-work
KeyDefaultNotes
providers.<id>.defaultModelemptyModel a run uses when nothing else names one. Empty keeps the provider's own default. Up to 100 characters from letters, digits and . _ : / @ [ ] -; it may not start with -.
providers.<id>.env.CLAUDE_CONFIG_DIRemptyclaude-native only. An absolute path, or one starting with ~/.
providers.<id>.env.CODEX_HOMEemptycodex-native only. Same rules.
providers.customemptyA list of extra providers: instances of Claude Code or Codex with their own config directory (extends), and custom ACP agents (command). See Provider instances.

An unknown provider id under providers.<id> is an error. See Providers for the launch environment.

agents ​

KeyDefaultNotes
agents.glm.maxTurnsunsetTurn limit passed to the GLM agent. From 1 to 10000. Unset keeps the agent's own default.
agents.sharedCachestrueAgent runs reuse your normal Go, npm and bun caches (GOMODCACHE, GOCACHE, npm_config_cache, BUN_INSTALL_CACHE_DIR), so a temporary HOME does not re-download or rebuild. A value the agent's own env already sets is never overridden.

accountUsage ​

KeyDefaultNotes
accountUsage.enabledtrueTurn off to stop every outbound usage request.
accountUsage.ttlSeconds300How long a usage snapshot stays fresh. It can only be raised; the minimum is 300.
accountUsage.routingtrueRoute around accounts whose usage window is exhausted.
accountUsage.exhaustThresholdPct100Usage percent at which an account counts as exhausted. From 1 to 100.
accountUsage.passivetrueWatch runs passively and cool down accounts that hit a limit.

relay ​

KeyDefaultNotes
relay.maxDevices16How many paired devices may be connected at once. Must be 1 or more.
relay.legacyDevicesfalseAdmits older apps that cannot prove a device identity, without approval. Leave it off.

push ​

KeyDefaultNotes
push.enabledtrueSend mobile push notifications. A daemon with no registered phone sends nothing.
push.expoAccessTokenemptyOnly needed if your push project requires it. Prefer the SMIND_EXPO_ACCESS_TOKEN variable over writing it here.

log ​

KeyDefaultNotes
log.maxSizeMB10Size at which daemon.log rotates. Must be 1 or more.
log.maxFiles5Log files kept, including the active one. Must be 1 or more.

runs ​

KeyDefaultNotes
runs.historyRetentionDays30How long a finished run keeps its large tool output (the copies over 512 bytes). After that the run keeps its prompts, answers, one row per tool call with a short summary, permissions, usage, failure reason and git facts, and its full history can still be read back from the provider's own session while that file exists. Runs finished before this rule, and runs the daemon could not convert, keep the old behaviour: their whole detail is deleted and opening one shows a note. A task that is not archived keeps everything, whatever its age. 0 keeps everything forever. Must be 0 or more. See the warning below.
runs.historyBudgetMB64Memory the daemon keeps for finished runs' output. Older output stays in the database and is read when you open the run, complete and unchanged; a running run is never limited. Must be 1 or more. Raise it if reopening recent runs feels slow; lower it on a small machine.
runs.rebuildCacheMB16Memory for full histories read back from a provider's own session (never stored by smind). While the session file is unchanged, reopening such a run is served from here without reading the file again. 0 turns it off. Must be 0 or more.

Warning: large tool output older than 30 days is removed. After you upgrade, the first pass runs two minutes after the daemon starts and then once a day, and removes the large tool output (the copies over 512 bytes) of finished runs older than runs.historyRetentionDays (30 by default) whose task is archived, while their prompts, answers, tool-call summaries, permissions, usage, failure reason and git facts stay; the full history can still be read back from the provider's own session while that file exists. Runs finished before this rule, and runs the daemon could not convert, are deleted whole, as before. Runs of tasks you have not archived are never touched. To keep everything, set runs.historyRetentionDays: 0 (or SMIND_RUN_HISTORY_RETENTION_DAYS=0) before upgrading. Run smind runs prune --dry-run to see what a pass would remove. Deleting rows does not shrink smind.db; run smind db compact once to give the space back (see the CLI reference).

How a run is stored, and what a crash can lose. While a run streams, smind writes its text and thinking to smind.db in merged rows, not one row per token. The open row is flushed when a tool call or any other event arrives, when the kind changes (text to thinking), after 250 ms without new output, when it reaches 4 KiB, and when the run ends. If the daemon is killed hard (kill -9, a power loss) the output still in that open buffer is lost: at most 250 ms of streaming or 4 KiB of text per running run. A run left running by a crash is marked interrupted at the next start anyway. A normal stop, an agent error or a daemon shutdown loses nothing. Once a run finishes, smind keeps its prompts, answers and one row per tool call, and moves large tool output (over 512 bytes) to a separate table that the retention pass removes after runs.historyRetentionDays days while the rest of the summary stays; the full history can still be read back from the provider's own session (Load full history) while that file exists. Thinking text is not kept after the run ends.

debug ​

KeyDefaultNotes
debug.pproffalseServe Go's /debug/pprof/ on the daemon's HTTP port for memory diagnosis. Only a local client that sends the daemon token (Authorization: Bearer <token>) is answered; everyone else gets an error. Leave it off unless you are chasing a memory problem.

fleet ​

KeyDefaultMeaning
fleet.enabledfalseTurns on connected hosts. Only a hand edit of this file turns it on, and it needs a restart. With it off no key is created and nothing dials out.
fleet.maxHosts16The most hosts one daemon may be paired with.
fleet.handshakeSeconds10How long a peer handshake may take.
fleet.replayWindowMinutes10How long a request id is remembered to refuse a replay.
fleet.auditRetentionDays30How long the fleet audit trail is kept.

automations ​

KeyDefaultMeaning
automations.enabledfalseRuns the automation engine. With it off nothing polls and nothing fires. Read on every tick.
automations.pausedfalseRecords every signal as paused and fires nothing, keeping all state.
automations.maxBudgetUsd10The most a single automation run's budget may be.
automations.allowRemoteManagefalseLets a direct non-loopback connection create, enable, resume or fire automations. Relay sessions and agents are refused either way.
automations.allowUnattendedModesfalseLets an automation use autoAccept or a full-access permission mode.

plugins ​

KeyDefaultNotes
plugins.enabledfalseTurns plugins on. With it off, no plugin adds anything. Read on every request, no restart needed.
plugins.allowRemoteManagefalseLets a direct connection that is not a loopback connection install, enable, disable, remove, update or reload plugins. Read on every request.

With plugins.allowRemoteManage off, those actions need a loopback connection. A same-host reverse proxy that terminates TLS counts as loopback. Paired phones (the relay) and agents cannot manage plugins whatever this is set to. See Plugins.

steward ​

KeyDefaultMeaning
steward.policy.enabledfalseTurn on the standing permission policy in ~/.smind/steward/policy.yaml (see Scripting and permissions). Read on every decision.
steward.enabledfalseTurn on the Steward review engine. Read on every decision.
steward.autoReview[]Workspace titles (exact match) whose finished root Lead runs with a pushed branch are reviewed without being asked.
steward.annotatefalseLet the review seat attach an advisory recommendation to an escalated permission request.
steward.budgetUsd1.5Cost cap of one review. 0 means the default.
steward.maxBudgetUsd5Ceiling for budgetUsd; at most 5.
steward.maxMinutes20Time cap of one review, at most 60.
steward.maxReviewsPerHour6Reviews across all tasks per hour, at most 24.
steward.maxReviewsPerTask5Reviews per task.

learning ​

Learning is on by default. Set learning.enabled: false to stop collection and delivery everywhere. Defaults for the other keys are tuned already; change them only if you know you need to.

KeyDefault
learning.enabledtrue
learning.cadenceToolCalls50
learning.tailFlushPending10
learning.tailIdleMinutes30
learning.cooldownMinutes30
learning.windowKB120
learning.recordKB4
learning.inputKB1
learning.resultKB1
learning.failureResultKB2
learning.dailyBudgetUSD0.25
learning.dailyBudgetTokens150000
learning.probationRuns25
learning.capacity30
learning.curatorEveryLandings5
learning.curatorMinSkills8
learning.curatorMinIntervalDays7
learning.prefaceBudgetBytes6144
learning.claudeIndexPrefacefalse
learning.similarity.duplicate0.85
learning.similarity.possible0.6
learning.reflectorModelclaude-haiku-5-5
learning.curatorModelclaude-haiku-5-5
learning.probe.prevalenceDays30
learning.probe.prevalenceMaxEvents20000
learning.probe.perProbeBudgetUSD1.5
learning.probe.dailyBudgetUSD3
learning.probe.quotaSkipPercent80
learning.probe.armTimeoutMinutes15
learning.probe.maxTurnsCap80
learning.probe.retentionDays14
learning.probe.outputCapKB256

Every number must be 1 or more. Budgets must be above 0, and learning.probe.perProbeBudgetUSD may not exceed learning.probe.dailyBudgetUSD. learning.similarity needs 0 < possible < duplicate <= 1.

Environment variables ​

VariableEffect
SMIND_HOMEHome directory instead of ~/.smind.
SMIND_LISTENOverrides server.listen.
SMIND_HOSTNAMESOverrides server.hostnames. Separate names with commas or spaces.
SMIND_PASSWORDPassword for remote clients, hashed in memory at start. It is never read from or written to config.yaml. Handy for containers.
SMIND_PUSH0, false, off, no, n, f or disabled turns push notifications off.
SMIND_EXPO_ACCESS_TOKENOverrides push.expoAccessToken.
SMIND_LEARNINGThe same off values force learning.enabled off.
SMIND_RUN_HISTORY_BUDGET_MBA positive number overrides runs.historyBudgetMB.
SMIND_RUN_REBUILD_CACHE_MBA whole number of megabytes (0 or more) overrides runs.rebuildCacheMB.
SMIND_RUN_HISTORY_RETENTION_DAYSA whole number of days (0 or more) overrides runs.historyRetentionDays.
SMIND_PPROF1, true, on, yes, y, t or enabled turns debug.pprof on.
SMIND_VERSION, SMIND_INSTALL_DIR, SMIND_APP_DIRRead by the install scripts. See Getting started.

Environment variables win over the file.