Appendix C: Configuration Reference

Positioning: This appendix is the complete field reference for config.json and profile files: one table per top-level config section, with field path, type, default, one-line purpose, and source line, all verified against octos 9c157101 (crates/octos-cli/src/config.rs runs 3,790 lines, crates/octos-cli/src/profiles.rs runs 7,003 lines). For behavioral semantics (how the sandbox picks a backend, how MCP performs its handshake, how the goal three-tier inheritance works) see the corresponding chapters; this appendix answers only "what is this field, what is its default, where is it defined." mcp_servers and sub_providers, which overlap with Chapter 9 (extension mechanisms), get field tables only.

C.1 Config file locations and load order

Resolution order for the top-level config.json (crates/octos-cli/src/config.rs:1715 resolve_config_file_path): an explicit --config <FILE> overrides everything, then (under the default install) project-local <cwd>/.octos/config.json, then <config_home>/config.json, then (under the default install) the legacy ~/.octos/config.json. When no file exists, the write location falls back to config_home/config.json.

Profile files live at ~/.octos/profiles/<id>.json (crates/octos-cli/src/profiles.rs:5); their data directory defaults to ~/.octos/profiles/{id}/data (crates/octos-cli/src/profiles.rs:164).

C.2 Top-level Config (crates/octos-cli/src/config.rs:26)

Field pathTypeDefaultPurposeSource
versionu32?null (constant currently 1)config migration versioncrates/octos-cli/src/config.rs:29
providerstring?nullLLM provider name ("anthropic" / "openai" / "gemini")crates/octos-cli/src/config.rs:33
modelstring?nullmodel IDcrates/octos-cli/src/config.rs:37
context_windowu32?nulleffective context window override for the primary model (tokens), outermost wrapper, beats catalog and probingcrates/octos-cli/src/config.rs:46
model_temperaturef32?nulltyped sampling temperature projection for the primary model (#2166)crates/octos-cli/src/config.rs:56
model_top_pf32?nulltop_p projection for the primary model; overrides the same-named key in the sampling params table at runtimecrates/octos-cli/src/config.rs:61
model_reasoning_effortenum?nulldefault reasoning effort for the primary model (low/medium/high)crates/octos-cli/src/config.rs:65
base_urlstring?nullAPI endpoint overridecrates/octos-cli/src/config.rs:69
api_key_envstring?provider defaultAPI key environment variable namecrates/octos-cli/src/config.rs:73
env_varsmap<string,string>{}profile-scoped environment variables (including keys persisted by the dashboard)crates/octos-cli/src/config.rs:77
bypass_auth_storeboolfalseinternal field (#[serde(skip)], not serialized): skip the global AuthStore key lookupcrates/octos-cli/src/config.rs:86
model_hintsobject?nullcustom model behavior hints for OpenAI-compatible proxiescrates/octos-cli/src/config.rs:91
api_typestring?provider defaultprotocol override ("openai" / "anthropic")crates/octos-cli/src/config.rs:97
auth_tokenstring?nulldashboard/admin token; also --auth-token or OCTOS_AUTH_TOKENcrates/octos-cli/src/config.rs:102
gatewayobject?nullgateway mode configuration (see C.3)crates/octos-cli/src/config.rs:106
mcp_serversarray[]MCP server list (see C.9)crates/octos-cli/src/config.rs:110
sandboxobjectSandboxConfig::default()tool sandbox (see C.5)crates/octos-cli/src/config.rs:114
snapshotsobject?null (= off)workspace snapshot-rollback (#1768, off by default)crates/octos-cli/src/config.rs:123
tool_policyobject?nullglobal tool allow/deny/tag policy (see C.5)crates/octos-cli/src/config.rs:127
tool_policy_by_providermap<string,ToolPolicy>{}per-model/provider-prefix tool policycrates/octos-cli/src/config.rs:132
embeddingobject?nullhybrid memory embedding (see C.6)crates/octos-cli/src/config.rs:136
memoryobject?nullmemory subsystem (see C.6)crates/octos-cli/src/config.rs:140
fallback_modelsarray[]fallback models for the provider failover chain (see C.4)crates/octos-cli/src/config.rs:145
max_iterationsu32?nullmax agent iterations per message (--max-iterations can override)crates/octos-cli/src/config.rs:149
format_after_editboolfalserun a language formatter after a successful edit (rustfmt/prettier etc., 5s timeout, #1774)crates/octos-cli/src/config.rs:158
hooksarray[]lifecycle hooks (see C.7)crates/octos-cli/src/config.rs:162
approval_policyobject?nullhuman approval rules for tool calls (see C.7)crates/octos-cli/src/config.rs:168
context_filterstring[][]tool tag filter; only tools with matching tags are visible to the LLMcrates/octos-cli/src/config.rs:173
sub_providersarray[]provider lanes selectable by spawned sub-agents (see C.10)crates/octos-cli/src/config.rs:184
adaptive_routingobject?nulladaptive routing (see C.8)crates/octos-cli/src/config.rs:189
emailobject?nullsend_email tool configuration (see C.6)crates/octos-cli/src/config.rs:193
voiceobject?nullASR/TTS (see C.6)crates/octos-cli/src/config.rs:198
modeenum"local"deployment mode: local / tenant / cloudcrates/octos-cli/src/config.rs:206
tunnel_domainstring?nullcloud/tenant tunnel domaincrates/octos-cli/src/config.rs:211
base_domainstring?compatible crew.ominix.iobase domain for public profiles (OCTOS_BASE_DOMAIN takes precedence)crates/octos-cli/src/config.rs:222
frps_serverstring?nullfrps server address (FRPS_SERVER env can override)crates/octos-cli/src/config.rs:227
allow_admin_shellboolfalsewhether /api/admin/shell is enabled; keep off in productioncrates/octos-cli/src/config.rs:233
dashboard_authobject?nullemail OTP login (api feature, see C.8)crates/octos-cli/src/config.rs:239
monitorobject?nullwatchdog/alert (api feature, see C.8)crates/octos-cli/src/config.rs:244
credential_poolobject?nullcredential pool (M6.5, see C.8)crates/octos-cli/src/config.rs:251
content_routingobject?nullcontent-classifier Cheap/Strong routing (M6.6)crates/octos-cli/src/config.rs:257
appuiobjectAppUiConfig::default()AppUI session defaults (see C.8)crates/octos-cli/src/config.rs:269
pluginsobjectPluginsConfig::default()plugin signature check switch (see C.8)crates/octos-cli/src/config.rs:277
climap<string,json>{} (skip serializing)per-subcommand persisted CLI flag defaults, e.g. {"serve": {"port": 50080}}crates/octos-cli/src/config.rs:292

The mode enum is defined at crates/octos-cli/src/config.rs:14: Local (standalone install, no tunnel, dashboard at /admin/), Tenant (frpc tunnel into the cloud), Cloud (VPS relay plus tenant management plus landing pages).

C.3 The gateway section (crates/octos-cli/src/config.rs:1524 GatewayConfig)

Field pathTypeDefaultPurposeSource
gateway.channels[]array<ChannelEntry>[{"type":"cli",…}]list of enabled channelscrates/octos-cli/src/config.rs:1527
gateway.channels[].typestringrequiredchannel type: "cli" / "telegram" / "discord"crates/octos-cli/src/config.rs:1642
gateway.channels[].allowed_sendersstring[][] (= everyone allowed)allowed sender IDscrates/octos-cli/src/config.rs:1646
gateway.channels[].settingsjson{}channel-specific settingscrates/octos-cli/src/config.rs:1650
gateway.max_historyusize50max history messages injected into the LLMcrates/octos-cli/src/config.rs:1531
gateway.system_promptstring?nullcustom system prompt for gateway modecrates/octos-cli/src/config.rs:1535
gateway.queue_modeenum"collect"how messages received mid-run are queuedcrates/octos-cli/src/config.rs:1541
gateway.max_sessionsusize1000max sessions in memory (LRU eviction)crates/octos-cli/src/config.rs:1545
gateway.max_concurrent_sessionsusize10max concurrently processed sessionscrates/octos-cli/src/config.rs:1549
gateway.browser_timeout_secsu64?null (300s in code)timeout for a single browser actioncrates/octos-cli/src/config.rs:1554
gateway.llm_timeout_secsu64?null (default 120)total LLM HTTP request timeoutcrates/octos-cli/src/config.rs:1558
gateway.llm_connect_timeout_secsu64?null (default 30)LLM HTTP connect timeoutcrates/octos-cli/src/config.rs:1562
gateway.tool_timeout_secsu64?null (default 300)cap on completing parallel tool callscrates/octos-cli/src/config.rs:1566
gateway.session_timeout_secsu64?null (default 600)cap on processing one session messagecrates/octos-cli/src/config.rs:1570
gateway.max_output_tokensu32?nulldefault max output tokens per call (beats model_limits.json)crates/octos-cli/src/config.rs:1575
gateway.reasoning_effortenum?nullreasoning effort for thinking models (low/medium/high), ignored by non-thinking modelscrates/octos-cli/src/config.rs:1582
gateway.llm_temperaturef32?null (= greedy 0.0)sampling temperature override, mainly to rescue repetition collapse on local models (#2172)crates/octos-cli/src/config.rs:1592
gateway.llm_sampling_paramsmap<string,json>?nullpass-through sampling params table, e.g. {"repeat_penalty":1.1} (#2172)crates/octos-cli/src/config.rs:1600

The queue_mode enum (crates/octos-cli/src/config.rs:1499): followup (FIFO, one by one), collect (default, concatenates within a session), latest (keep only the newest, alias steer), interrupt (cancel current), speculative (a slow call continues while a new agent starts).

The default port for octos serve is 50080 (documented example at crates/octos-cli/src/config.rs:283).

C.4 fallback_models[] (crates/octos-cli/src/config.rs:460 FallbackModel)

Field pathTypeDefaultPurposeSource
providerstringrequiredprovider namecrates/octos-cli/src/config.rs:462
modelstring?nullmodel namecrates/octos-cli/src/config.rs:465
base_urlstring?nullbase URL for this fallbackcrates/octos-cli/src/config.rs:468
api_key_envstring?nullkey environment variable for this fallbackcrates/octos-cli/src/config.rs:471
model_hintsobject?nullmodel behavior hintscrates/octos-cli/src/config.rs:474
api_typestring?nullprotocol overridecrates/octos-cli/src/config.rs:477
cost_per_mf64?nulloutput price per million tokens (for cost-aware routing)crates/octos-cli/src/config.rs:480
strongbooltruewhether it is a strong model (reliable with 30+ tools / large payloads)crates/octos-cli/src/config.rs:485
context_windowu32?nullcontext window override for this fallback (#2142)crates/octos-cli/src/config.rs:492

C.5 sandbox / tool_policy / snapshots

sandbox (crates/octos-agent/src/sandbox/mod.rs:37 SandboxConfig)

Field pathTypeDefaultPurposeSource
sandbox.enabledbooltruewhether the sandbox is enabledcrates/octos-agent/src/sandbox/mod.rs:40
sandbox.modeenum"auto"auto / bwrap / landlock / macos / docker / appcontainer / nonecrates/octos-agent/src/sandbox/mod.rs:44, enum crates/octos-agent/src/sandbox/mod.rs:423
sandbox.fail_closedboolfalserefuse execution when auto finds no backend, rather than degrade to bare executioncrates/octos-agent/src/sandbox/mod.rs:58
sandbox.allow_networkboolfalseallow network inside the sandboxcrates/octos-agent/src/sandbox/mod.rs:62
sandbox.workspace_writebooltruewhether shell can write the cwd (false = workspace mounted read-only)crates/octos-agent/src/sandbox/mod.rs:75
sandbox.repo_git_writepath?nulladditionally grant write access to <repo>/.gitcrates/octos-agent/src/sandbox/mod.rs:92
sandbox.docker.imagestring"ubuntu:24.04"image for docker modecrates/octos-agent/src/sandbox/mod.rs:361
sandbox.docker.cpu_limitstring?nullCPU limit such as "1.0"crates/octos-agent/src/sandbox/mod.rs:365
sandbox.docker.memory_limitstring?nullmemory limit such as "512m"crates/octos-agent/src/sandbox/mod.rs:369
sandbox.docker.pids_limitu32?nullmax process countcrates/octos-agent/src/sandbox/mod.rs:373
sandbox.docker.mount_modeenum"rw"none / ro / rw workspace mountcrates/octos-agent/src/sandbox/mod.rs:377, enum crates/octos-agent/src/sandbox/mod.rs:408
sandbox.docker.extra_bindsstring[][]extra bind mounts (host:container[:ro])crates/octos-agent/src/sandbox/mod.rs:381
sandbox.read_allow_pathsstring[][] (= everything allowed)restrict readable paths (whitelist outside the cwd)crates/octos-agent/src/sandbox/mod.rs:102
sandbox.write_allow_globsstring[]?null#1976 shell write fence: workspace-relative globscrates/octos-agent/src/sandbox/mod.rs:125
sandbox.profile_namestring?nullsandbox profile name (Windows AppContainer ID)crates/octos-agent/src/sandbox/mod.rs:129
sandbox.allow_toolchainsbooltruegrant write paths a language toolchain needs (cargo cache and the like)crates/octos-agent/src/sandbox/mod.rs:149

tool_policy (crates/octos-agent/src/tools/policy.rs:28 ToolPolicy)

Field pathTypeDefaultPurposeSource
tool_policy.allowstring[][] (= allow all)allowed tools/groups/wildcardscrates/octos-agent/src/tools/policy.rs:31
tool_policy.denystring[][]deny list, always beats allowcrates/octos-agent/src/tools/policy.rs:34
tool_policy.require_tagsstring[][]expose only tools whose declared tags match (fail closed)crates/octos-agent/src/tools/policy.rs:40
tool_policy.bash_file_writesenum"allow"allow / warn / deny: three tiers for shell file writescrates/octos-agent/src/tools/policy.rs:49

tool_policy_by_provider is a map of the same structure (crates/octos-cli/src/config.rs:132); its keys are exact model IDs (preferred) or provider prefixes.

snapshots (crates/octos-agent/src/snapshot.rs:122 SnapshotConfig)

Field pathTypeDefaultPurposeSource
snapshots.enabledboolfalsemaster snapshot switch (git-backed, stored under <data_dir>/snapshots/)crates/octos-agent/src/snapshot.rs:124
snapshots.keep_lastusize20retained snapshots per workspace (<1 clamps to 1)crates/octos-agent/src/snapshot.rs:127

C.6 embedding / memory / email / voice

embedding (crates/octos-cli/src/config.rs:655 EmbeddingConfig)

Field pathTypeDefaultPurposeSource
embedding.providerstring"openai"embedding provider (including local llamacpp)crates/octos-cli/src/config.rs:658
embedding.api_key_envstring?nullkey environment variable namecrates/octos-cli/src/config.rs:662
embedding.base_urlstring?nullAPI base URLcrates/octos-cli/src/config.rs:666
embedding.modelstring?text-embedding-3-smallembedding model IDcrates/octos-cli/src/config.rs:672
embedding.dimensionsu32?nulldimensions field in requests (episodic HNSW is fixed at 1536)crates/octos-cli/src/config.rs:678
embedding.model_pathstring?nullpath to a local .gguf (feature embed-llama)crates/octos-cli/src/config.rs:685

memory (crates/octos-cli/src/config.rs:694 MemoryConfig)

Field pathTypeDefaultPurposeSource
memory.max_inject_tokensusize?DEFAULT_MAX_INJECT_TOKENStoken budget for memory blocks injected into the system promptcrates/octos-cli/src/config.rs:701
memory.refresh.enabledbool?null (= on)master switch for automatic memory refresh (default product behavior is on)crates/octos-cli/src/config.rs:719
memory.refresh.extract_modelstring?null (= profile provider)model key for extractioncrates/octos-cli/src/config.rs:723
memory.refresh.consolidate_modelstring?null (= profile provider)model key for consolidationcrates/octos-cli/src/config.rs:726
memory.refresh.min_idle_minutesu64?30how long a session must idle before it can be scannedcrates/octos-cli/src/config.rs:729
memory.refresh.max_session_age_daysu64?10sessions older than this are never scannedcrates/octos-cli/src/config.rs:732
memory.refresh.max_sessions_per_passusize?2sessions scanned per passcrates/octos-cli/src/config.rs:735
memory.refresh.max_extractions_per_dayu32?20daily extraction budget per profilecrates/octos-cli/src/config.rs:738
memory.refresh.max_consolidations_per_dayu32?12daily consolidation budget per profilecrates/octos-cli/src/config.rs:742
memory.refresh.max_daily_tokensu64?200000daily token budget (shared by extraction and consolidation)crates/octos-cli/src/config.rs:745
memory.refresh.consolidate_interval_minutesu64?30background scan interval (minutes)crates/octos-cli/src/config.rs:748
memory.refresh.debounce_secondsu64?90fast-lane debounce after a user notecrates/octos-cli/src/config.rs:751
memory.refresh.unused_daysu32?nullhow long unused entries become archive candidatescrates/octos-cli/src/config.rs:755
memory.refresh.max_memory_file_tokensusize?nullMEMORY.md size cap (enforced at consolidation)crates/octos-cli/src/config.rs:758
memory.refresh.pending_confirm_daysu32?nulldays before a pending forget request expirescrates/octos-cli/src/config.rs:762
memory.refresh.max_extract_input_tokensusize?24000hard input budget for a single extraction callcrates/octos-cli/src/config.rs:767

Design defaults come from MemoryRefreshConfig::knobs at crates/octos-cli/src/config.rs:772.

email (crates/octos-cli/src/config.rs:856 EmailConfig)

Field pathTypeDefaultPurposeSource
email.providerstringrequired"smtp" or "feishu"/"lark"crates/octos-cli/src/config.rs:858
email.smtp_hoststring?nullSMTP hostcrates/octos-cli/src/config.rs:862
email.smtp_portu16?nullSMTP portcrates/octos-cli/src/config.rs:864
email.usernamestring?nullSMTP usernamecrates/octos-cli/src/config.rs:866
email.password_envstring?nullSMTP password environment variable (legacy)crates/octos-cli/src/config.rs:869
email.passwordstring?nullSMTP password in plaintext (takes precedence over password_env)crates/octos-cli/src/config.rs:872
email.from_addressstring?nullsender addresscrates/octos-cli/src/config.rs:874
email.feishu_app_idstring?nullFeishu app IDcrates/octos-cli/src/config.rs:878
email.feishu_app_secret_envstring?nullFeishu secret environment variable (legacy)crates/octos-cli/src/config.rs:881
email.feishu_app_secretstring?nullFeishu secret in plaintext (takes precedence)crates/octos-cli/src/config.rs:884
email.feishu_from_addressstring?nullFeishu sendercrates/octos-cli/src/config.rs:886
email.feishu_regionstring?"cn""cn" / "global"crates/octos-cli/src/config.rs:889

voice (crates/octos-cli/src/config.rs:936 VoiceConfig)

Field pathTypeDefaultPurposeSource
voice.api_urlstring?n/a (legacy, ignored)OminiX URL moved to platform-level OMINIX_API_URLcrates/octos-cli/src/config.rs:939
voice.auto_asrbooltrueautomatically transcribe voice messagescrates/octos-cli/src/config.rs:942
voice.auto_ttsbooltrueautomatically synthesize replies in voice sessionscrates/octos-cli/src/config.rs:945
voice.default_voicestring"vivian"default TTS voicecrates/octos-cli/src/config.rs:948
voice.asr_languagestring?null (auto-detect)ASR language hintcrates/octos-cli/src/config.rs:951
voice.tts_providerstring"auto"TTS routing: auto / local / cloudcrates/octos-cli/src/config.rs:964
voice.cloudobject?nullnon-secret Volcano cloud TTS settingscrates/octos-cli/src/config.rs:969
voice.cloud.appidstring?nullcloud TTS app IDcrates/octos-cli/src/config.rs:904
voice.cloud.voicestring?nullcloud TTS voicecrates/octos-cli/src/config.rs:906
voice.cloud.clusterstring?nullcloud TTS clustercrates/octos-cli/src/config.rs:908
voice.cloud.encodingstring?nullcloud TTS encodingcrates/octos-cli/src/config.rs:910
voice.cloud.endpointstring?nullcloud TTS endpointcrates/octos-cli/src/config.rs:912

Cloud TTS secrets never land in this section: the token goes through env_vars["VOLC_TTS_TOKEN"] (crates/octos-cli/src/config.rs:1040 with_cloud_token_from_env).

C.7 hooks and approval_policy

hooks[] (crates/octos-agent/src/hooks.rs:77 HookConfig)

Field pathTypeDefaultPurposeSource
hooks[].eventenumrequiredtrigger event (see below)crates/octos-agent/src/hooks.rs:79
hooks[].commandstring[]requiredargv array executed directly (no shell interpretation)crates/octos-agent/src/hooks.rs:81
hooks[].timeout_msu645000timeout in millisecondscrates/octos-agent/src/hooks.rs:84, default crates/octos-agent/src/hooks.rs:112
hooks[].tool_filterstring[][] (= all tools)fire only for these tool names (tool events)crates/octos-agent/src/hooks.rs:87
hooks[].path_filterstring[][] (= no filter)fire only when the tool argument path matches a globcrates/octos-agent/src/hooks.rs:103
hooks[].requires_binstring?nullfire only if this binary exists on PATHcrates/octos-agent/src/hooks.rs:109

Allowed event values (crates/octos-agent/src/hooks.rs:58 as_str): user_prompt_submit, before_tool_call, after_tool_call, before_llm_call, after_llm_call, on_resume, on_turn_end, before_spawn_verify, on_spawn_verify, on_spawn_complete, on_spawn_failure.

approval_policy (crates/octos-cli/src/config.rs:545 ApprovalPolicyConfig)

Field pathTypeDefaultPurposeSource
approval_policy.defaultenum"allow"disposition for tools matching no rule (v1: allow only)crates/octos-cli/src/config.rs:547
approval_policy.rules[]array[]list of human approval rulescrates/octos-cli/src/config.rs:549
approval_policy.rules[].toolsstring[]required, non-emptytool names this rule interceptscrates/octos-cli/src/config.rs:530
approval_policy.rules[].require_approvalboolmust be trueexplicit intent declarationcrates/octos-cli/src/config.rs:532
approval_policy.rules[].risk_levelenumn/anormal / criticalcrates/octos-cli/src/config.rs:533
approval_policy.rules[].authorized_approversstring[]required, non-emptychannel user IDs allowed to answercrates/octos-cli/src/config.rs:535
approval_policy.rules[].expires_in_secsu64required, >0seconds before a request expirescrates/octos-cli/src/config.rs:537
approval_policy.rules[].on_timeoutenumn/av1: notify onlycrates/octos-cli/src/config.rs:538

Validation lives in validate at crates/octos-cli/src/config.rs:587: non-empty tools, require_approval == true, non-empty approvers, expires_in_secs > 0; otherwise it fails fast.

C.8 Adaptive routing and operations sections

adaptive_routing (crates/octos-cli/src/config.rs:1085 AdaptiveRoutingConfig)

Field pathTypeDefaultPurposeSource
adaptive_routing.enabledboolfalsemaster switchcrates/octos-cli/src/config.rs:1088
adaptive_routing.latency_threshold_msu6410000soft-penalty latency thresholdcrates/octos-cli/src/config.rs:1092, default crates/octos-cli/src/config.rs:1253
adaptive_routing.error_rate_thresholdf640.3error-rate threshold for de-prioritizationcrates/octos-cli/src/config.rs:1096, default crates/octos-cli/src/config.rs:1256
adaptive_routing.probe_probabilityf640.1probability of probing a non-primary providercrates/octos-cli/src/config.rs:1100, default crates/octos-cli/src/config.rs:1259
adaptive_routing.probe_interval_secsu6460minimum interval between probes of the same providercrates/octos-cli/src/config.rs:1104, default crates/octos-cli/src/config.rs:1262
adaptive_routing.failure_thresholdu323consecutive failures before the circuit breaker openscrates/octos-cli/src/config.rs:1108, default crates/octos-cli/src/config.rs:1265
adaptive_routing.modeenum"off"off / hedge / lanecrates/octos-cli/src/config.rs:1114, enum crates/octos-cli/src/config.rs:1053
adaptive_routing.qos_rankingboolfalseinclude response quality in scoringcrates/octos-cli/src/config.rs:1120
adaptive_routing.weight_latencyf640.3latency score weightcrates/octos-cli/src/config.rs:1124, default crates/octos-cli/src/config.rs:1268
adaptive_routing.weight_error_ratef640.3error-rate weightcrates/octos-cli/src/config.rs:1127, default crates/octos-cli/src/config.rs:1271
adaptive_routing.weight_priorityf640.2configured-priority weightcrates/octos-cli/src/config.rs:1130, default crates/octos-cli/src/config.rs:1274
adaptive_routing.weight_costf640.2token cost weightcrates/octos-cli/src/config.rs:1133, default crates/octos-cli/src/config.rs:1277
adaptive_routing.auto_escalation.enabledbooltrueauto-escalate to hedge on latency degradationcrates/octos-cli/src/config.rs:1169+, default crates/octos-cli/src/config.rs:1214
adaptive_routing.auto_escalation.window_sizeusize5observation window samplescrates/octos-cli/src/config.rs:1217
adaptive_routing.auto_escalation.baseline_samplesusize5baseline samplescrates/octos-cli/src/config.rs:1220
adaptive_routing.auto_escalation.degradation_thresholdf643.0degradation multiple for the verdictcrates/octos-cli/src/config.rs:1223
adaptive_routing.auto_escalation.slow_triggeru323consecutive slow samples to triggercrates/octos-cli/src/config.rs:1226
adaptive_routing.auto_escalation.latency_ceiling_msu648000latency ceilingcrates/octos-cli/src/config.rs:1229
adaptive_routing.auto_escalation.recovery_factorf640.6recovery factorcrates/octos-cli/src/config.rs:1232

monitor (crates/octos-cli/src/config.rs:1284 MonitorConfig, api feature)

Field pathTypeDefaultPurposeSource
monitor.alerts_enabledbooltrueproactive alerting switchcrates/octos-cli/src/config.rs:1287
monitor.watchdog_enabledbooltruewatchdog auto-restartcrates/octos-cli/src/config.rs:1290
monitor.health_check_interval_secsu6460health check intervalcrates/octos-cli/src/config.rs:1293
monitor.max_restart_attemptsu323max restart attempts before giving upcrates/octos-cli/src/config.rs:1296
monitor.telegram_token_envstring?nullTelegram bot token environment variable namecrates/octos-cli/src/config.rs:1299
monitor.telegram_alert_chat_idsi64[][]Telegram chat IDs for alertscrates/octos-cli/src/config.rs:1302
monitor.feishu_app_id_envstring?nullFeishu app ID environment variablecrates/octos-cli/src/config.rs:1305
monitor.feishu_app_secret_envstring?nullFeishu secret environment variablecrates/octos-cli/src/config.rs:1308
monitor.feishu_alert_user_idsstring[][]Feishu user IDs for alertscrates/octos-cli/src/config.rs:1311

dashboard_auth (crates/octos-cli/src/otp.rs:46 DashboardAuthConfig)

Field pathTypeDefaultPurposeSource
dashboard_auth.smtp.hoststringrequiredSMTP hostcrates/octos-cli/src/otp.rs:23
dashboard_auth.smtp.portu16465SMTP port (465 implicit TLS / 587 STARTTLS)crates/octos-cli/src/otp.rs:26, default crates/octos-cli/src/otp.rs:40
dashboard_auth.smtp.usernamestringrequiredSMTP usernamecrates/octos-cli/src/otp.rs:28
dashboard_auth.smtp.password_envstringrequiredSMTP password environment variable (legacy; new installs use smtp_secret.json)crates/octos-cli/src/otp.rs:35
dashboard_auth.smtp.from_addressstringrequiredsender addresscrates/octos-cli/src/otp.rs:37
dashboard_auth.session_expiry_hoursu6424session expiry in hourscrates/octos-cli/src/otp.rs:59
dashboard_auth.allow_self_registrationboolfalseauto-create accounts for unknown emailscrates/octos-cli/src/otp.rs:62
dashboard_auth.static_tokensstring[][]static tokens that bypass OTP (for E2E)crates/octos-cli/src/otp.rs:67

The dashboard_auth.smtp block is optional as a whole (crates/octos-cli/src/otp.rs:56); when absent, OTP goes to console output.

credential_pool (crates/octos-cli/src/config.rs:415 CredentialPoolConfig)

Field pathTypeDefaultPurposeSource
credential_pool.state_pathstring?<data_dir>/credential_pool.redbpersistent state file overridecrates/octos-cli/src/config.rs:419
credential_pool.namestring"default"pool name used as a metrics labelcrates/octos-cli/src/config.rs:423
credential_pool.strategystring"round_robin"fill_first/round_robin/random/least_usedcrates/octos-cli/src/config.rs:427
credential_pool.credential_idsstring[][]credential IDs in the pool (env_vars supplies the keys at runtime)crates/octos-cli/src/config.rs:431
credential_pool.default_cooldown_msu64?nulldefault cooldown when a 429 carries no reset hintcrates/octos-cli/src/config.rs:435

appui (crates/octos-cli/src/config.rs:339 AppUiConfig) and plugins (crates/octos-cli/src/config.rs:315 PluginsConfig)

Field pathTypeDefaultPurposeSource
appui.allowed_originsstring[][]extra allowed REST/WS browser origins (exact http(s)://)crates/octos-cli/src/config.rs:348
appui.default_session_cwdpath?nullTier-2 fallback directory when an AppUI session declares no cwd capability (must be absolute)crates/octos-cli/src/config.rs:360
appui.sessions_in_cwdbooltruestore sessions by project directory (<cwd>/.octos/sessions/)crates/octos-cli/src/config.rs:388
plugins.require_signedboolfalseenforce plugin manifest.sha256 signatures (default: warn and allow)crates/octos-cli/src/config.rs:325

C.9 The mcp_servers[] section (crates/octos-agent/src/mcp.rs:53 McpServerConfig)

The field table follows; for protocol behavior (handshake, DNS anti-loopback, OAuth flow) see Chapter 9, not repeated here.

Field pathTypeDefaultPurposeSource
mcp_servers[].commandstring?nullstdio transport: command to spawncrates/octos-agent/src/mcp.rs:56
mcp_servers[].argsstring[][]stdio transport: command argumentscrates/octos-agent/src/mcp.rs:58
mcp_servers[].envmap<string,string>{}stdio transport: child process environment variablescrates/octos-agent/src/mcp.rs:60
mcp_servers[].urlstring?nullHTTP transport: server endpoint URLcrates/octos-agent/src/mcp.rs:63
mcp_servers[].headersmap<string,string>{}HTTP transport: extra headers (e.g. a static bearer); ignored when oauth is setcrates/octos-agent/src/mcp.rs:67
mcp_servers[].oauthboolfalseuse the OAuth 2.1 authorization-code flow with this server (requires url)crates/octos-agent/src/mcp.rs:72
mcp_servers[].scopesstring[][]OAuth scopes requested by octos mcp logincrates/octos-agent/src/mcp.rs:75
mcp_servers[].concurrency_classstring?null (= safe)concurrency class for all tools of this server: safe/exclusive; unknown values are treated conservatively as exclusivecrates/octos-agent/src/mcp.rs:84

Non-configurable hard limits (constants): 30s handshake timeout (crates/octos-agent/src/mcp.rs:43), 60s per tools/call (crates/octos-agent/src/mcp.rs:45), tool input schema nesting ≤10 levels (crates/octos-agent/src/mcp.rs:47), schema serialization ≤64KB (crates/octos-agent/src/mcp.rs:49).

C.10 The sub_providers[] section (crates/octos-cli/src/config.rs:618 SubProviderConfig)

Model lanes that spawned sub-agents can reference. Reserved key: goal_verifier (#1935): when present, that lane becomes a dedicated goal-completion verifier; otherwise the old behavior applies (verifying with the scoring session's own provider). Division of labor with Chapter 9: that chapter covers how the spawn tools consume these lanes; this one gives fields only.

Field pathTypeDefaultPurposeSource
sub_providers[].keystringrequiredshort key referenced by the LLM (e.g. cheap / strong / goal_verifier)crates/octos-cli/src/config.rs:620
sub_providers[].providerstringrequiredprovider namecrates/octos-cli/src/config.rs:622
sub_providers[].modelstring?nullmodel namecrates/octos-cli/src/config.rs:625
sub_providers[].api_key_envstring?provider defaultkey environment variable namecrates/octos-cli/src/config.rs:629
sub_providers[].base_urlstring?nullbase URLcrates/octos-cli/src/config.rs:632
sub_providers[].descriptionstring?nullstatement of when to use this model (goes into the spawn tool schema)crates/octos-cli/src/config.rs:636
sub_providers[].default_context_windowu32?nulldefault context budget for a sub-agent that selects this lanecrates/octos-cli/src/config.rs:642
sub_providers[].max_output_tokensu32?auto-detectedper-call max output tokens overridecrates/octos-cli/src/config.rs:647
sub_providers[].api_typestring?provider defaultprotocol overridecrates/octos-cli/src/config.rs:650

C.11 validators (declarative validators, workspace policy layer)

validators does not live in config.json: it is a subkey of the validation section in the workspace policy file .octos-workspace.toml (crates/octos-agent/src/workspace_policy.rs:13 WORKSPACE_POLICY_FILE). The top-level policy struct WorkspacePolicy is at crates/octos-agent/src/workspace_policy.rs:22; the validation section (crates/octos-agent/src/workspace_policy.rs:115 ValidationPolicy):

Field pathTypeDefaultPurposeSource
validation.on_turn_endstring[][]Tier 1: cheap checks at end of each turn (<100ms)crates/octos-agent/src/workspace_policy.rs:118
validation.on_source_changestring[][]Tier 2: mid-weight checks on source changes (1-5s)crates/octos-agent/src/workspace_policy.rs:121
validation.on_completionstring[][]Tier 3: expensive checks at completion/release (10-30s)crates/octos-agent/src/workspace_policy.rs:124
validation.validators[]array<Validator>[]typed declarative validators (M4.3)crates/octos-agent/src/workspace_policy.rs:127

Each Validator (crates/octos-agent/src/workspace_policy.rs:143):

Field pathTypeDefaultPurposeSource
validators[].idstringrequiredstable unique identifiercrates/octos-agent/src/workspace_policy.rs:145
validators[].requiredbooltruewhether a failure blocks terminal successcrates/octos-agent/src/workspace_policy.rs:149
validators[].soft_failboolfalsewhen true, failures only warn instead of downgrading (Wave-3a soft tier)crates/octos-agent/src/workspace_policy.rs:157
validators[].timeout_msu64?nullper-validator timeout (command/tool kinds)crates/octos-agent/src/workspace_policy.rs:161
validators[].phaseenum"completion"turn_end / completioncrates/octos-agent/src/workspace_policy.rs:164, enum crates/octos-agent/src/workspace_policy.rs:290
validators[].specenum (tagged kind)requiredthe validation body, see belowcrates/octos-agent/src/workspace_policy.rs:166

spec variants (crates/octos-agent/src/workspace_policy.rs:301 ValidatorSpec, serde tag kind, snake_case):

  • command: cmd (required), args (default []): subprocess command, goes through the shell safety layer (crates/octos-agent/src/workspace_policy.rs:306)
  • tool_call: tool (required), args (default {}): calls a registered agent tool (crates/octos-agent/src/workspace_policy.rs:313)
  • file_exists: path (required), min_bytes (default null): asserts the file exists / minimum bytes (crates/octos-agent/src/workspace_policy.rs:318)
  • http_probe: url_template (required), expected_status (default 200), expected_contains (default null): HTTP probe, default 5s timeout (crates/octos-agent/src/workspace_policy.rs:325)
  • ominix_voice_exists: name_arg (required): looks up a custom voice registered with ominix-api (crates/octos-agent/src/workspace_policy.rs:336)
  • audio_non_silent: glob (default ""), min_ratio (default 0.3), source (default glob mode), extension (default null): non-silent audio ratio (crates/octos-agent/src/workspace_policy.rs:344)
  • per_file_non_silent: per-file non-silent validation over whole files, with an require_at_least count (crates/octos-agent/src/workspace_policy.rs:368 vicinity)
  • magic-byte assertion MagicByteKind: mp3/wav/png/jpeg/pdf/mp4/webm/pptx (crates/octos-agent/src/workspace_policy.rs:469)

Runtime constants: default timeout 30s for command kinds (crates/octos-agent/src/validators.rs:55 DEFAULT_COMMAND_TIMEOUT_MS), default 5s for HTTP probes (crates/octos-agent/src/validators.rs:60 DEFAULT_HTTP_PROBE_TIMEOUT_MS), evidence files under <workspace_root>/.octos/validator-evidence/ (crates/octos-agent/src/validators.rs:53), each evidence item ≤512KB (crates/octos-agent/src/validators.rs:62 MAX_EVIDENCE_BYTES).

C.12 Profile system in brief

The config.llm of a profile file ~/.octos/profiles/<id>.json is a first-class structured LLM selection contract, not the flat provider/model keys of the top-level config.json. Three layers:

config.llm (crates/octos-cli/src/profiles.rs:814 LlmProfileConfig)

FieldTypeDefaultPurpose
primaryLlmModelSelectionConfig?nullprimary model selection
fallbacksarray[]fallback model chain

config.llm.primary / each fallback (crates/octos-cli/src/profiles.rs:824 LlmModelSelectionConfig, #[serde(deny_unknown_fields)])

FieldTypeDefaultPurpose
family_idstring?nullmodel family (e.g. moonshot / deepseek)
model_idstring?nullconcrete model ID (e.g. kimi-k2.5)
routeLlmRouteConfig?nullprovider route for this model
model_hintsobject?nullbehavior hints for custom/proxied models
cost_per_mf64?nulloutput price per million tokens (for routing)
strongbool?nullwhether it is reliable for large tool counts
temperaturef32?nulltyped sampling temperature (#2166, AppUI validates 0.0..=2.0)
top_pf32?nullnucleus sampling (#2166, validates 0.0..=1.0)
reasoning_effortenum?nulldefault reasoning effort for thinking models (#2166)
context_windowu32?nullcontext window override (#2135/#2142, beats probing and catalog)

config.llm.primary.route (crates/octos-cli/src/profiles.rs:881 LlmRouteConfig)

FieldTypeDefaultPurpose
route_idstring?nullstable route ID in the catalog (e.g. official / wisemodel)
labelstring?nullhuman-readable route label
base_urlstring?nullendpoint for this route
api_key_envstring?nullkey environment variable for this route
api_typestring?nullprotocol override

Three-tier inheritance (crates/octos-cli/src/profiles.rs:2403 resolve_effective_profile): when a child profile carries parent_id, the parent's LLM contract is inherited as a whole, overriding (ec.llm = pc.llm), while structural sections such as review/search/deep_crawl/apps/email/tool_policy are inherited only when the child's are empty; with no parent, the profile returns unchanged. This is the profile-side mechanism of the goal three tiers (operator default → queue → worker override); the full three-tier semantics are in Chapter 15.

A minimal usable profile JSON example (keys appear only as environment variable names, no key values):

{
  "id": "writer",
  "display_name": "Writer",
  "config": {
    "llm": {
      "primary": {
        "family_id": "deepseek",
        "model_id": "deepseek-v4-pro",
        "route": {
          "route_id": "wisemodel",
          "base_url": "https://api.wisemodel.cn/v1",
          "api_key_env": "WISEMODEL_API_KEY"
        },
        "temperature": 0.3,
        "context_window": 131072
      },
      "fallbacks": [
        {
          "family_id": "moonshot",
          "model_id": "kimi-k2.5",
          "route": { "api_key_env": "MOONSHOT_API_KEY" },
          "strong": true
        }
      ]
    },
    "memory": { "max_inject_tokens": 4000 }
  }
}

C.13 A complete config.json example (JSONC comments)

{
  // migration version, currently 1
  "version": 1,
  // primary LLM (flat keys; for serve multi-tenancy use the profile's config.llm)
  "provider": "anthropic",
  "model": "claude-sonnet-4",
  "api_key_env": "ANTHROPIC_API_KEY",
  "env_vars": {},
  "context_window": 200000,          // #2142 overrides catalog/probing
  // failover chain
  "fallback_models": [
    { "provider": "openai", "model": "gpt-4o", "strong": true, "cost_per_m": 2.5 }
  ],
  // sessions and tools
  "max_iterations": 50,
  "format_after_edit": true,         // #1774 auto-format after edits
  "context_filter": [],
  "tool_policy": { "deny": [], "allow": [] },
  "sandbox": {
    "enabled": true,
    "mode": "auto",
    "allow_network": false,
    "workspace_write": true
  },
  "snapshots": { "enabled": false, "keep_last": 20 },
  // MCP server (see C.9; protocol details in Chapter 9)
  "mcp_servers": [
    {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
      "env": {},
      "concurrency_class": "safe"
    }
  ],
  // sub-agent lanes (see C.10; goal_verifier is a reserved key)
  "sub_providers": [
    { "key": "cheap", "provider": "openai", "model": "gpt-4o-mini", "api_key_env": "OPENAI_API_KEY" }
  ],
  // lifecycle hooks (C.7)
  "hooks": [
    { "event": "after_tool_call", "command": ["cargo", "check"], "timeout_ms": 5000, "tool_filter": ["edit_file"], "path_filter": [] }
  ],
  // gateway (C.3)
  "gateway": {
    "channels": [{ "type": "cli", "allowed_senders": [], "settings": {} }],
    "max_history": 50,
    "queue_mode": "collect",
    "llm_timeout_secs": 120
  },
  // adaptive routing (C.8)
  "adaptive_routing": { "enabled": false, "mode": "off" },
  // memory and embedding (C.6)
  "memory": { "max_inject_tokens": 4000, "refresh": { "enabled": true } },
  "embedding": { "provider": "openai", "model": "text-embedding-3-small", "api_key_env": "OPENAI_API_KEY" },
  // operations (C.8)
  "mode": "local",
  "allow_admin_shell": false,
  "appui": { "allowed_origins": [], "sessions_in_cwd": true },
  "plugins": { "require_signed": false },
  "cli": { "serve": { "port": 50080 } }
}

C.14 Version note

The data baseline of this appendix is octos main 9c157101 (docs(guide): document mcp_servers stdio fields, env sanitization, timeouts, #2211/#2212). Main changes from earlier baselines:

  • typed LLM schema (3a567a4c / #2166): LlmModelSelectionConfig gained temperature / top_p / reasoning_effort / context_window (#2142, split from #2127); the top-level Config mirrors them as model_temperature / model_top_p / model_reasoning_effort (crates/octos-cli/src/config.rs:56-65), forming an explicit precedence chain with gateway.llm_temperature / gateway.llm_sampling_params (#2172).
  • mcp_servers: profile-level [[mcp_servers]] registers no tools before OLP #29 S2b (comment at crates/octos-cli/src/profiles.rs:198); stdio fields, env sanitization, and timeouts documented in #2211/#2212.
  • sub_providers reserved key goal_verifier (#1935): when absent, goal completion verification falls back to the scoring session's own provider (old behavior).
  • hooks schema: the current shape is hooks[] + event + command (argv) + timeout_ms (default 5000) + tool_filter: string[], plus the newer path_filter and requires_bin.
  • queue_mode: steer renamed to latest (crates/octos-cli/src/config.rs:1507-1512, serde alias kept for compatibility).
  • snapshots (#1768), approval_policy, appui.sessions_in_cwd, plugins.require_signed, and the cli section are later additions; sandbox.write_allow_globs (#1976) and tool_policy.bash_file_writes (#28b) are recent tightenings.

Numbers and field tables from older versions of this appendix are obsolete; this appendix is authoritative.