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.
SMIND_HOME=/srv/smind smind serveThe 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.
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 defaultOnly these paths can be set:
| Path | Value |
|---|---|
server.port | A port from 1 to 65535. |
server.listen | host:port to bind. |
server.hostnames | Comma-separated host names. |
providers.<id>.defaultModel | A model name. <id> is any built-in provider id: claude-native, codex-native, glm, kimi, opencode, copilot, cline, goose, cursor or antigravity. |
fleet.enabled | true or false. Needs a restart. |
plugins.enabled | true or false. Applies on the next call. |
learning.enabled | true or false. Needs a restart. |
automations.enabled | true or false. Applies on the next engine tick. |
automations.paused | true 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.enabledandlearning.enabledtake effect after a daemon restart; the other three apply live.- Every attempt, accepted or refused, is logged in
config-audit.jsonlin 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
| Key | Default | Notes |
|---|---|---|
server.port | 4648 | Port of the default listen address. |
server.listen | empty | host:port. Empty means 127.0.0.1 and server.port. If it also names a port, that port must match server.port. |
server.hostnames | empty | Extra 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.passwordHash | empty | A 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
| Key | Default | Notes |
|---|---|---|
orchestration.maxDepth | 2 | How many ancestors a task may have. A root task is depth 0. |
orchestration.maxConcurrentRunsPerTree | 4 | Runs that may be active at once in one task tree. Must be 1 or more. |
orchestration.notifyParent | true | When a child task goes quiet, queue one message on the parent chat. |
orchestration.notifyDebounceSeconds | 20 | Hold a parent message so several finished children merge into one. 0 sends at once. |
orchestration.stallAlertMinutes | 15 | Raise a "tree stalled" notification after this long with unfinished work and nothing running or queued. 0 turns it off. |
worktrees
| Key | Default | Notes |
|---|---|---|
worktrees.root | <smind home>/worktrees | Folder 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.setupTimeoutSeconds | 600 | Time limit for a task's setup script. |
worktrees.teardownTimeoutSeconds | 120 | Time limit for a teardown script. |
worktrees.ports.range | empty | lo-hi inside 1024-65535. Empty turns per-task port allocation off. |
providers
providers:
claude-native:
defaultModel: sonnet
env:
CLAUDE_CONFIG_DIR: ~/.claude-work| Key | Default | Notes |
|---|---|---|
providers.<id>.defaultModel | empty | Model 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_DIR | empty | claude-native only. An absolute path, or one starting with ~/. |
providers.<id>.env.CODEX_HOME | empty | codex-native only. Same rules. |
providers.custom | empty | A 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
| Key | Default | Notes |
|---|---|---|
agents.glm.maxTurns | unset | Turn limit passed to the GLM agent. From 1 to 10000. Unset keeps the agent's own default. |
agents.sharedCaches | true | Agent 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
| Key | Default | Notes |
|---|---|---|
accountUsage.enabled | true | Turn off to stop every outbound usage request. |
accountUsage.ttlSeconds | 300 | How long a usage snapshot stays fresh. It can only be raised; the minimum is 300. |
accountUsage.routing | true | Route around accounts whose usage window is exhausted. |
accountUsage.exhaustThresholdPct | 100 | Usage percent at which an account counts as exhausted. From 1 to 100. |
accountUsage.passive | true | Watch runs passively and cool down accounts that hit a limit. |
relay
| Key | Default | Notes |
|---|---|---|
relay.maxDevices | 16 | How many paired devices may be connected at once. Must be 1 or more. |
relay.legacyDevices | false | Admits older apps that cannot prove a device identity, without approval. Leave it off. |
push
| Key | Default | Notes |
|---|---|---|
push.enabled | true | Send mobile push notifications. A daemon with no registered phone sends nothing. |
push.expoAccessToken | empty | Only needed if your push project requires it. Prefer the SMIND_EXPO_ACCESS_TOKEN variable over writing it here. |
log
| Key | Default | Notes |
|---|---|---|
log.maxSizeMB | 10 | Size at which daemon.log rotates. Must be 1 or more. |
log.maxFiles | 5 | Log files kept, including the active one. Must be 1 or more. |
runs
| Key | Default | Notes |
|---|---|---|
runs.historyRetentionDays | 30 | How 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.historyBudgetMB | 64 | Memory 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.rebuildCacheMB | 16 | Memory 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, setruns.historyRetentionDays: 0(orSMIND_RUN_HISTORY_RETENTION_DAYS=0) before upgrading. Runsmind runs prune --dry-runto see what a pass would remove. Deleting rows does not shrinksmind.db; runsmind db compactonce 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.dbin 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 afterruns.historyRetentionDaysdays 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
| Key | Default | Notes |
|---|---|---|
debug.pprof | false | Serve 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
| Key | Default | Meaning |
|---|---|---|
fleet.enabled | false | Turns 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.maxHosts | 16 | The most hosts one daemon may be paired with. |
fleet.handshakeSeconds | 10 | How long a peer handshake may take. |
fleet.replayWindowMinutes | 10 | How long a request id is remembered to refuse a replay. |
fleet.auditRetentionDays | 30 | How long the fleet audit trail is kept. |
automations
| Key | Default | Meaning |
|---|---|---|
automations.enabled | false | Runs the automation engine. With it off nothing polls and nothing fires. Read on every tick. |
automations.paused | false | Records every signal as paused and fires nothing, keeping all state. |
automations.maxBudgetUsd | 10 | The most a single automation run's budget may be. |
automations.allowRemoteManage | false | Lets a direct non-loopback connection create, enable, resume or fire automations. Relay sessions and agents are refused either way. |
automations.allowUnattendedModes | false | Lets an automation use autoAccept or a full-access permission mode. |
plugins
| Key | Default | Notes |
|---|---|---|
plugins.enabled | false | Turns plugins on. With it off, no plugin adds anything. Read on every request, no restart needed. |
plugins.allowRemoteManage | false | Lets 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
| Key | Default | Meaning |
|---|---|---|
steward.policy.enabled | false | Turn on the standing permission policy in ~/.smind/steward/policy.yaml (see Scripting and permissions). Read on every decision. |
steward.enabled | false | Turn 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.annotate | false | Let the review seat attach an advisory recommendation to an escalated permission request. |
steward.budgetUsd | 1.5 | Cost cap of one review. 0 means the default. |
steward.maxBudgetUsd | 5 | Ceiling for budgetUsd; at most 5. |
steward.maxMinutes | 20 | Time cap of one review, at most 60. |
steward.maxReviewsPerHour | 6 | Reviews across all tasks per hour, at most 24. |
steward.maxReviewsPerTask | 5 | Reviews 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.
| Key | Default |
|---|---|
learning.enabled | true |
learning.cadenceToolCalls | 50 |
learning.tailFlushPending | 10 |
learning.tailIdleMinutes | 30 |
learning.cooldownMinutes | 30 |
learning.windowKB | 120 |
learning.recordKB | 4 |
learning.inputKB | 1 |
learning.resultKB | 1 |
learning.failureResultKB | 2 |
learning.dailyBudgetUSD | 0.25 |
learning.dailyBudgetTokens | 150000 |
learning.probationRuns | 25 |
learning.capacity | 30 |
learning.curatorEveryLandings | 5 |
learning.curatorMinSkills | 8 |
learning.curatorMinIntervalDays | 7 |
learning.prefaceBudgetBytes | 6144 |
learning.claudeIndexPreface | false |
learning.similarity.duplicate | 0.85 |
learning.similarity.possible | 0.6 |
learning.reflectorModel | claude-haiku-5-5 |
learning.curatorModel | claude-haiku-5-5 |
learning.probe.prevalenceDays | 30 |
learning.probe.prevalenceMaxEvents | 20000 |
learning.probe.perProbeBudgetUSD | 1.5 |
learning.probe.dailyBudgetUSD | 3 |
learning.probe.quotaSkipPercent | 80 |
learning.probe.armTimeoutMinutes | 15 |
learning.probe.maxTurnsCap | 80 |
learning.probe.retentionDays | 14 |
learning.probe.outputCapKB | 256 |
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
| Variable | Effect |
|---|---|
SMIND_HOME | Home directory instead of ~/.smind. |
SMIND_LISTEN | Overrides server.listen. |
SMIND_HOSTNAMES | Overrides server.hostnames. Separate names with commas or spaces. |
SMIND_PASSWORD | Password for remote clients, hashed in memory at start. It is never read from or written to config.yaml. Handy for containers. |
SMIND_PUSH | 0, false, off, no, n, f or disabled turns push notifications off. |
SMIND_EXPO_ACCESS_TOKEN | Overrides push.expoAccessToken. |
SMIND_LEARNING | The same off values force learning.enabled off. |
SMIND_RUN_HISTORY_BUDGET_MB | A positive number overrides runs.historyBudgetMB. |
SMIND_RUN_REBUILD_CACHE_MB | A whole number of megabytes (0 or more) overrides runs.rebuildCacheMB. |
SMIND_RUN_HISTORY_RETENTION_DAYS | A whole number of days (0 or more) overrides runs.historyRetentionDays. |
SMIND_PPROF | 1, true, on, yes, y, t or enabled turns debug.pprof on. |
SMIND_VERSION, SMIND_INSTALL_DIR, SMIND_APP_DIR | Read by the install scripts. See Getting started. |
Environment variables win over the file.