view source

Octomind Configuration Reference

skill

Reference for octomind config.toml: model profile, roles, MCP servers, hooks, limits, spending caps. Use when configuring octomind or fixing a parse error.

Apache-2.0 Requires: octomind binary for `octomind config --validate`. macOS/Linux/Windows.

agents that use this skill

instructions

Overview

Octomind's configuration lives at ~/.local/share/octomind/config/config.toml (%LOCALAPPDATA%\octomind\config\config.toml on Windows). OCTOMIND_CONFIG_PATH selects another file (its directory is the one merged) and OCTOMIND_DATA_DIR relocates everything. The shipped template, config-templates/default.toml in the octomind source, is the authority when this page and the binary disagree.

Mental model

The file is strict. Octomind owns the schema and fails loudly instead of degrading silently:

  • Required sections — [model], [skills], [timing], [compression], [registry], plus the root scalars. A missing one is a parse error. Octomind upgrades an older config.toml on load and keeps a backup; octomind config --upgrade runs the same step on demand and sets version; never edit it by hand. The upgrade removes [[agents]] and the builtin agent server (delegation is the tap tool of orchestration) and stops on a custom [[agents]] entry until it moves to a tap role. [supervisor] and [decision] do not exist: the Besydr plugin in plugins does that work.
  • One model contract — [model] is the complete profile; [roles.model] and [compression.model] override only the fields they set.

So a config error is usually a missing key, a key under the wrong table or an unknown key. A normal run ignores unknown keys silently; only octomind config --validate reports them (exit 1). Keep root scalars and plugins above the first [table] header and [compression] scalars above its nested tables, or TOML assigns them to the table.

Rules

Editing procedure

  1. Read the config before touching it. octomind config --show prints a summary only (models, limits, roles, MCP servers).
  2. State the goal in config terms: which section and field. Load octomind-supervisor for changes to the Besydr plugin (completion checks, planning, learning): its plugins entry is here, its settings are in Besydr's file.
  3. Make the minimal edit. Preserve formatting, comments and ordering. Of two fields that fit, pick the narrower and say why.
  4. Validate with octomind config --validate. A parse error is a hard failure: fix it and re-validate before reporting.
  5. Read the edited lines back and report exactly which fields changed and what each does.

Useful commands: octomind config --validate, --show, --upgrade, octomind configure (provider, key and model setup), octomind vars (placeholder values), octomind complete run (every role tag). For one run, octomind -c KEY=VALUE run ... overrides an existing key by dotted path; it cannot add keys, does not work with config or configure, and skips the upgrade.

Prefer the tap for reusable wiring

A role others should run belongs in a tap manifest with capabilities = [...], not hand-wired [[roles]] plus [[mcp.servers]]; say so when a request is really a tap agent.

Environment and secrets

Two .env files load, later winning: <data-dir>/config/.env (not moved by OCTOMIND_CONFIG_PATH; octomind configure writes it), then the project ./.env. Both override the system environment. Put an API key in a .env file and reference the variable name; never paste a secret into config.toml or a reply.

Root settings

FieldDefaultMeaning
log_level"info"none, info, debug
default"assistant"Tag used when run/acp/server get none
sandboxfalseRestrict writes to CWD (Linux Landlock 5.13+, macOS Seatbelt)
telemetrytrueAnonymous usage counts, never code or prompts
auto_capabilitiestrueCapability auto-activation on user messages
mcp_response_tokens_threshold20000Truncation ceiling per MCP response; 0 = unlimited
max_session_tokens_threshold300000Context ceiling; 0 = no configured limit; validation fails above 2,000,000
cache_keepalive_enabledfalsePings that keep the provider prompt cache warm; each costs cache-read tokens
enable_markdown_rendering / markdown_themetrue / "default"Themes: default, dark, light, ocean, solarized, monokai
max_session_spending_threshold0.0USD; prompts before continuing when exceeded
max_request_spending_threshold0.0USD; stops the current request when exceeded
commit_attribution"Co-Authored-By: Octomind <[email protected]>"Trailer on commits the agent writes; "" = none
max_identical_rounds10Stops the turn after this many tool rounds in a row repeat earlier calls and results; 0 = off
systemunsetLegacy global prompt; prefer per-role system

default = "assistant" is a tap agent, not a role in this file: a name is looked up in [[roles]] first, then resolved against taps (a tag is <ns>, or <ns>:<variant> for a variant).

[model]

toml
[model]
name = "octohub:auto"        # provider:model
reasoning_effort = "medium"  # none, low, medium, high, xhigh, max
max_tokens = 32768           # 0 = provider default
max_retries = 1
retry_timeout = 30           # backoff base, seconds
request_timeout_seconds = 300  # 0 = none
stream_timeout_seconds = 0     # SSE/WebSocket inactivity limit, 0 = none
request_transport = "websocket"  # or "http"; only octohub: and chatgpt: models use it

name must name a known provider; --validate rejects an unknown one. A root-level model, max_tokens or reasoning_effort is the older layout; the upgrade moves it into [model]. temperature, top_p and top_k are ignored for every model; do not set them.

[capabilities] and [taps]

toml
[capabilities]
websearch = "brave"          # use brave.toml instead of default.toml

[taps]
developer = "ollama:glm-5"   # model name only; a namespace key also covers its variants, an exact tag wins

Model priority, highest first: runtime override (--model, /model), the role's model, the [taps] entry, then [model].name. A [taps] value replaces only the name.

[[roles]]

Fields: name, system, welcome (all required), optional [roles.model] (or model = "provider:model") and [roles.mcp], which needs both server_refs and allowed_tools. A role named like a tap agent hides it, including the default assistant.

toml
[[roles]]
name = "my-role"
system = "You are a helpful assistant."
welcome = "Ready. Working in {{CWD}}"

[roles.mcp]
server_refs = ["core", "orchestration", "runtime", "filesystem"]
allowed_tools = ["core:*", "orchestration:*", "runtime:mcp", "runtime:skill", "runtime:capability", "filesystem:*"]

server_refs lists servers to enable; allowed_tools filters them (empty = all; server:* and trailing * work).

[mcp] and [[mcp.servers]]

[mcp].allowed_tools is the outer limit for every role and runtime-activated server (empty = unrestricted): grants can narrow it, never widen it, and a server with no allowed tool never starts. Builtin synthetic tools (code, search_tools, context, project-local tools) are not filtered.

code_mode (true): tools of external servers are not sent as definitions; the model calls them from scripts through the builtin code tool, which takes only script. false sends every tool as a definition and drops code.

Builtin servers need no process: core (recall when [compression.attention] or its governance is enabled, governance being on by default; context in authorized tap children; code, plus search_tools for long lists, when code mode is on and external tools exist), orchestration (tap, schedule, monitor), runtime (mcp, skill, capability). The filesystem server roles reference is the external octofs server from the built-in tap.

Every server needs name, type (builtin|http|stdio), timeout_seconds (1–3600; an idle deadline that progress notifications reset), and tools ([] = all). Optional auto_bind = ["role"] adds the server to those roles without a server_ref; a namespace entry covers its base agent and every variant, an entry with : that one agent. HTTP adds url and headers; stdio adds command (no shell), args, env and cwd. {{ENV:KEY}} is expanded in command, args, env and headers values from the environment (.env included); a server with an unset or empty placeholder does not start. {{INPUT:KEY}} is for tap manifests only.

Authentication: a static Authorization header carries a bearer token and disables OAuth. Without one, Octomind uses MCP Authorization Discovery (RFC 9728), CIMD/DCR registration and PKCE.

[[hooks]]

Webhook listeners: name, bind (unique, e.g. "0.0.0.0:9876"), script (stdin = HTTP body, stdout = message to inject), timeout (30, 1–3600). Activate with octomind run --daemon --format jsonl --hook <name>.

plugins

An inline array above the first [table] header, or [[plugins]] tables in a split file. Fields: name (unique), type (stdio|socket|http), command/args (stdio), path (socket), url/headers (http), enabled (true), roles (empty = all), timeout_seconds (1–3600), install_manifest with install_key (both or neither). Unknown keys are rejected. To run without Besydr set enabled = false on its entry, or use -c 'plugins=[]' for one run; switch off a single part in Besydr's own file.

[[commands]] and [[prompts]]

[[commands]] fields: name, description, command ("octomind acp <role>"), input_mode (last|all|summary), output_mode (none|append|replace|last|restart), output_role (assistant|user), optional workdir. Model and prompt live in the referenced role. Run with /run <name>.

[[prompts]]: name, prompt, optional description. Inserted via /prompt <name>.

Multi-step pipelines are octomind workflow <file.toml>, not config.

[skills]

auto_activation (true) evaluates skill rules on user messages. auto_validation (false) runs skills' validate scripts after each assistant turn. validation_timeout (60, 0 = unlimited), max_retries (3), activation_timeout (reserved).

[timing]

Calibration for /report's time and energy estimate: think_overhead_min, deliberation_factor, attention_window_min, review_weight, wait_weight, switch_cost_dhe.

[compression]

threshold (120000 tokens, 0 disables), idle (true: compact first when the provider cache expired and it saves money), knowledge_retention (25), analysis_findings_max_tokens (6000, 0 disables). Depth is computed per cycle, not configured.

[compression.model] overrides the profile for folds; the template sets reasoning_effort = "none" so folds do not spend their budget reasoning. [compression.attention] (enabled = false, validator, telemetry, [compression.attention.governance]) is the evidence-grounded compaction layer.

[registry]

cache_ttl_hours (24) governs tap manifest caching. tap ("muvon/tap") names the built-in tap, always loaded after the taps the user added; ref names the branch, tag or commit of it to serve. Added taps follow their default branch.

Multi-file configuration

All *.toml in the config directory merge: config.toml first, then other files alphabetically, then mcp-*.toml last. Arrays of tables concatenate; a same-name entry replaces the whole earlier entry, so repeat every field of the server, role or command you override, in a file named mcp-<name>.toml (not zz-<name>.toml) so it loads last. Scalars and scalar arrays such as allowed_tools are overridden by later files. Keep non-config .toml files out of this directory. Runtime mcp persistence writes mcp-<name>.toml.

Project guardrails (not config.toml)

<workdir>/.agents/guardrails.toml holds [[pipe]] (user input), [[guard]] (block a tool call), [[hook]] (after a tool result) and [[validator]] (after the final reply). It loads at session start; a parse error means no authored rules, never a crash. Its validators run regardless of [skills] auto_validation.

Template variables

In role system and welcome: {{CWD}}, {{ROLE}}, {{DATE}}, {{SHELL}}, {{OS}}, {{BINARIES}}, {{GIT_STATUS}}, {{GIT_TREE}}, {{README}}, {{CONTEXT}}, {{SYSTEM}}. octomind vars lists them with live values; anything else stays literal.

Examples

Example 1: command missing required modes

toml
[[commands]]
name = "task_refiner"
description = "Refines requests"
command = "octomind acp task_refiner"
input_mode = "last"
output_mode = "none"
output_role = "assistant"

Leave out input_mode, output_mode or output_role and the file fails to load: they have no defaults.

Checklist

  • octomind config --validate run after the edit and passing, version untouched?
  • Model settings in [model], [roles.model], or [compression.model]?
  • Every [[commands]] entry has all three modes; every [[mcp.servers]] has timeout_seconds, tools and url or command?
  • Secrets referenced as {{ENV:KEY}} or set in .env, never written into the file?
  • Override files named mcp-*.toml, with every field of the entry repeated?
  • Comments, ordering and formatting left as they were, and the report names each field touched?

Composition / References

  • Pairs with octomind-cli for the octomind config flags, octomind-supervisor for the Besydr plugin, and octomind-runtime for how capabilities and taps resolve into a role's tool surface.
  • Octomind docs: doc/reference/03-config-reference.md, doc/usage/03-configuration.md, doc/usage/06-roles.md, doc/usage/10-commands-and-layers.md, doc/usage/18-guardrails.md. The same pages are served at https://octomind.run/docs/.