Odin documentation

How to configure, run and check Odin v4.30.0. Every number here was checked against the source at that release.

Checked against Calmingstorm/Odin v4.30.0 (commit 35e2fc4): 67 built-in tools, 234 REST routes, and 929 pytest files, 28,655 tests: 28,628 passed and 27 skipped on the release commit.

Contents

Start from what you want to do

Configuration

Odin reads config.yml at startup and resolves environment-variable references. Keep credentials in .env rather than literal YAML values. The default Discord posture does not require a mention; review admission and permissions before use.

timezone: UTC

discord:
  token: ${DISCORD_TOKEN}
  require_mention: true
  respond_to_bots: false

web:
  enabled: true
  host: 127.0.0.1
  port: 3000
  api_token: ${ODIN_API_TOKEN}

permissions:
  default_tier: user

tools:
  command_timeout_seconds: 300
  hosts:
    localhost:
      address: 127.0.0.1
      ssh_user: operator

Example, not the shipped template: it opts into mention-only Discord admission, a user default tier, and loopback WebUI binding. Configure tools.local_working_dir as an absolute private directory outside the checkout before using local shell tools.

Command timeout
300 s default, per-tool overrides via tools.tool_timeouts
Log levels
DEBUG / INFO / WARNING / ERROR / CRITICAL
Mention required
No, by default. Odin answers in his channels without being mentioned.

Permissions

Tool permission and host permission are separate checks. A user must be allowed to invoke the tool and to reach the selected host.

TierToolsFor
adminAll 67 built-in tools, plus enabled user-created skillsOperators, infrastructure owners
userEleven tools, all read-only except manage_list, which can add, clear and delete lists: get_tool_output, search_history, search_knowledge, web_search, fetch_url, list_schedules, list_tasks, list_skills, list_knowledge, manage_list, parse_timeTeam members, observers
guestConversation only, no toolsRestricted access

run_command is deliberately NOT in the user tier — it is arbitrary shell execution. Host access is enforced separately per user at execution time, independent of tier.

The schema default is user; the tracked config.yml template sets permissions.default_tier to admin. Review this setting before admitting users.

Models, images and email

Switch providers from the WebUI or API at runtime. In-flight requests complete on the current provider; per-provider health is tracked independently.

ChatGPT (Codex)
ChatGPT subscription OAuth (device flow). Multi-account selection stays sticky while healthy. A 429 can rotate the account; a 401 first attempts refresh, then can bench and rotate it. Refresh tokens persist across restarts. Replies can carry the serving account’s provider-reported quota snapshot, shown by /usage when available. Primary and secondary windows commonly represent 5 hours and a week; the reported window lengths and resets are used rather than assumed constants.
Models
GPT-6 and GPT-5.6 families (gpt-6.2-astra, gpt-6.2-sol, gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna selectable from the WebUI; per-model effort compatibility enforced).
Reasoning effort
Configurable reasoning effort (none/low/medium/high/xhigh/max — max and none are per-model, default xhigh) plus a separate agent-level effort that sub-agents read live.
OpenAI-compatible
Presets for DeepSeek, GLM/Z.AI, Qwen, DashScope, OpenAI, Moonshot and OpenRouter, or a custom endpoint. Output budget derives from the selected model’s profile rather than one global limit. With OpenRouter, per-model context and output ceilings are derived from the endpoints that can actually serve the model.
Ollama
Models auto-detected from the instance; base URL restricted to local/private networks; optional api_key for proxied remotes. Default address http://127.0.0.1:11434.
Images
One image backend: native OpenAI image generation over the same Codex OAuth as chat, with no separate billing. It requires the Codex provider to be active. Native OpenAI image generation only, available when the Codex provider is active. The backend selects content-appropriate dimensions; explicit size, negative prompts and checkpoint selection are not supported. The selected backend is recorded in audit metadata and queryable via search_audit. Records are signed when audit HMAC signing is enabled.
Email
SMTP/IMAP integration with four tools: email_send, email_search, email_read, email_list_recent (Gmail App Password supported).

Onboarding, connection & compatibility

Fresh installs bootstrap on loopback and finish setup in the WebUI; existing installations keep working unchanged.

Bootstrap
A fresh package install starts a pending bootstrap service bound to loopback even if the configured host is broader. /api/setup/status is the first-boot probe; setup completes in the WebUI. Since 4.28.0 the setup page generates the admin token, saved as web.api_token, that you sign in with afterwards. A Discord token is not Web authentication.
Listener consent
Installations with no usable Web/API credential stay loopback-only. Widening requires a freshly entered admin API token (POST /api/setup/listener or the WebUI), revalidated under the configuration transaction, followed by an operator restart. Authenticated installations keep their configured listener.
Discord connection
GET and POST /api/discord/connection report and change gateway attachment (admin-only). If the attached gateway task ends unexpectedly, Odin clears readiness and exits with status 1 so the supervisor restarts it. Pure HTTP webhook schedules keep running without Discord; Discord-delivered work waits for a connected gateway.
Automatic learning
Off by default for configurations that omit learning.enabled; an explicit true stays on. Capabilities → Learned has a live administrator toggle that stops both lesson generation and learned-context injection. Stored entries are retained; deliberate memory (memory_manage) is unaffected.
Existing installations
Source checkouts with 0775 directories, symlinked data directories, a working-directory .env and legacy token stores keep starting unchanged; group-writable ancestors log one diagnostic per directory. No permission change or policy file is required.
Retired models
gpt-5.5 and gpt-5.3-codex-spark are no longer selectable. Persisted selections, including agent selectors, allowlists and hints, migrate in memory to gpt-6-sol with a warning (an old image outer_model pin to gpt-6-astra); explicit requests are rejected; the YAML is not rewritten.
Local command shell
Since 4.12.0, tools.command_shell (auto, bash or sh; default auto) runs raw model- and skill-written local commands under bash when it is installed, otherwise sh. Set it to sh to return to /bin/sh at once. Remote commands and explicit script interpreters are unchanged.
Usage store
4.12.0 migrates the usage store from schema 3 to 4, one way. Rolling back to 4.11.0 or earlier switches usage statistics off until you upgrade again; back up data/usage/ first if you may roll back.
Command governor
Since 4.13.0, more forms of remote-script execution, uploads of sensitive local files to outside hosts, and cloud instance-metadata requests rate critical. Admins with governor override on still run them, with the usual warning and audit label; otherwise they are blocked. No command rates lower than in 4.12.0.
Prompt cache
Since 4.18.0, each conversation sends its own random ID as the session_id header and prompt_cache_key, so ChatGPT-backed Codex requests reuse the prompt cache: one ID per channel session (a reset or restart starts a new one, and a turn resumed later keeps the ID it started with), one per spawned agent, loop and delegated task. Every Codex request also names Odin: originator odin and User-Agent odin (<os>; <arch>).

Managed hosts

Managed hosts are added, connection-tested, enrolled (pinned key, CA, or TOFU trust), described, disabled, and removed live from the WebUI Hosts page with no restart; hosts already defined in config.yml keep working as legacy-trust entries.

Requester scope
The prompt lists only hosts available to the requester. Per-host descriptions supply context, while current host authorization is checked at execution and evidence retrieval. Host Access policy remains separate from the tools.hosts inventory.
Drain & removal
New remote targets must pass enrollment and a connection test before activation. Normal disable/edit/remove stops new admission while existing generation leases drain; configured references can block removal. Force-revoke is a separate action, and an unreachable remote outcome may remain unknown.
Concurrency & queues
Default active-operation limits: 10 SSH, 20 subprocess, 3 browser operations. Their queue limits are 20, 40, and 6 respectively.
Connections
SSH connections are reused via ControlMaster with a persistence window. Failed SSH connections retry with exponential backoff.
Remote processes
manage_process supervises long-running commands on remote hosts as well as localhost. Remote jobs have a one-hour deadline. Shutdown attempts termination; jobs are not re-adopted as running work after restart. Transport loss is reported as unknown, not a confirmed stop.

Discord commands

One global set of slash commands, available in guilds and in bot DMs for users who share a guild with the bot. Startup clears legacy per-guild copies and reconciles the global set; a guild that refuses cleanup no longer blocks publication everywhere. Admission follows discord.allowed_users; /steer additionally requires the turn’s requester or an admin.

/status
Public status summary: version, uptime, latency, configured versus serving backend state, tools, agents, and loops. It is not an end-to-end health check.
/reload
Reloads context files and invalidates prompt/tool caches. Its reply is ephemeral. This does not reload application code or general configuration.
/usage
Ephemeral durable usage summary. window accepts 24h, 7d, 30d, or all; default 7d. Includes the serving account’s current quota snapshot when available.
/steer
Queues a correction into the channel’s running turn, consumed at the next iteration boundary. Only the turn’s requester or an admin may steer it. The ephemeral receipt updates to report consumption, or that the turn ended without consuming it. This is cooperative steering, not cancellation: it does not interrupt an in-flight generation or tool call. Over the REST API, POST /api/chat/steer steers the caller’s own running /api/chat turn the same way.
/stop
Requests safe interruption of the current channel turn and stops its active agents, including descendants. The ephemeral response can report a pending stop while an effect-capable operation finishes. Completed effects are not undone; unrelated loops and jobs are not a global stop target.

Tools

The registry has 67 built-in tools. Enabled runtime skills and configured, enabled MCP servers extend the catalog. Disabled built-in tools are omitted from the model catalog; the count is every registered built-in, not an installation’s enabled set. Opt-in computer use adds three config-gated tools (computer_session, computer_observe, computer_act) beyond the 67 when enabled. Since 4.19.0, spawned agents also get report_to_parent, an agent-only tool outside the 67 that the main conversation never sees.

Each tool, what it does and its risk rating: Capabilities. Every parameter: the generated tool reference.

Agents and loops

  • 5agents at once per channel, by default
  • 120iterations per agent, by default
  • 4 hhard lifetime per agent
  • 2levels of agents starting agents

Default 5 concurrent agents per channel; agents.max_concurrent_agents can be changed live from 1–25. Spawn admission and the spawn_agent description use the current value. Lifetime changes apply to new agents, not existing workers.

Model choice
When the agent model is set to auto, a model must be chosen explicitly for each spawn from the configured allowlist, or from the eligible built-in candidates when no allowlist is set; there is no implicit inheritance. A concrete agent model runs exactly that model and is not constrained by the allowlist. Leaving the setting unset inherits the main model.
Iteration timeout
15 minutes per LLM iteration (agents.iteration_timeout_seconds, default 900)
Lifetime
4 hours (agents.max_lifetime_seconds, default 14400); a hard deadline — expiry yields TIMEOUT, never a fake completion
States
SPAWNING → READY → EXECUTING → COMPLETED / FAILED / TIMEOUT / KILLED. Kill is idempotent and cascades to children.
Progress
A running agent reports normalized generation telemetry - phase, request attempt, elapsed time, time since the last wire event and time since the last substantive delta, accumulated size and tool-call counts. It distinguishes a stream kept alive without producing output from one making progress. The telemetry is agent-only and never alters a response, consumes an iteration or ends a turn.
Tool history
Agents preserve native tool-call IDs and paired results across iterations. This gives the model evidence of completed work; it does not guarantee the model will never repeat an operation. Malformed tool arguments are refused without execution. Image results (analyze_image and MCP images) reach an agent as native images, never as tool text; images the model has already seen are dropped, oldest first, only when a request would otherwise not fit.
Coordination
Messages to a running agent are queued with a sequence, wake an agent waiting on its children, and are applied at safe boundaries (a running command or patch is never cancelled). Agents report their phase — generating, executing a tool, waiting for children — instead of idle time, and a private guard stops an agent that repeats an identical call with an identical result.
Interim reports
Since 4.19.0, spawned agents have one agent-only tool, report_to_parent, that queues an interim report for whoever spawned them: the parent agent or the conversation. It returns a receipt at once and never wakes a wait or interrupts work; reports arrive at the recipient’s next eligible step as one message marked as agent-produced evidence, and replies go through send_to_agent. Waiting reports live in memory and are discarded unread when the recipient closes or Odin restarts; final results remain the complete record.
Results
wait_for_agents returns every accepted ID and status, each with a preview: the largest equal share of the aggregate budget, up to 8,000 UTF-8 bytes per agent, so a result that fits arrives whole. Since 4.26.0, return_when "any" returns as soon as one listed agent has finished (an earlier finish counts) while the others keep running. Read get_agent_results with its returned cursor until truncated=false: the default ceiling is 4,000 bytes, maximum 8,000, and the complete serialized envelope must fit. A parent message interrupts the wait, not its children.
Long tool loops
A chat turn may run up to 500 tool iterations by default (tools.max_tool_iterations_chat), and so may each pass of an autonomous loop (tools.max_tool_iterations_loop). A loop itself stops after 50 passes unless start_loop sets max_iterations, up to 1,000. A completion classifier decides when a task is done; anti-hedging guards reject fake progress reports.

Sessions and context

Conversation state persists across turns, compacts under pressure, and can restore from archives. sessions.token_budget controls compaction; sessions.context_token_budget limits the estimated conversation-history tokens sent per request, with per-channel context_budget_overrides. These are separate from the model’s full request-context budget.

History
50 messages, kept for up to 24 hours by default
Compaction budget
256,000 estimated tokens
History per request
64,000 estimated tokens
Compaction
When the token budget is exceeded, older messages are summarized by the LLM; if summarization fails, a deterministic extractive summary is built instead.
Replies
Since 4.26.0, a person’s Discord reply to an earlier message also carries that message as quoted history: its author, time, text and embed text, its files, and its still images. It is labelled as history, not as a new request, and a credential in it is masked. discord.reply_context turns it off.
Archives
No age expiry by default. Capacity pruning is oldest-first at 2 GiB or 10,000 archive files. The newest archive per channel is evicted last, but can still be removed to honor a hard cap. Archived sessions restore on demand; reset epochs prevent pre-reset history from being restored.
Compression
context_compression.max_context_chars defaults to null: the working limit is derived from the selected model, not a fixed character threshold. openai_codex.context_utilization defaults to 60% (range 30–100%); normal compression keeps the 30 most recent iterations.

Scheduling

The scheduler sleeps until the next due schedule (60 s maximum interval), so tasks fire on time without busy-polling.

Actions
  • reminder — post a message
  • check — run a command (command/host shortcuts)
  • workflow — multi-step tool chain with conditions
  • digest — infrastructure summary
Retries
Retries are disabled by default. Per-schedule max_retries enables exponential backoff with a 60-second base and a one-hour cap. Failed one-time tasks are retained while eligible for retry.
Pausing
Pausing never causes catch-up runs: a recurring schedule resumes at its next interval, and a one-time schedule whose run time passes while paused is quarantined instead of firing — setting a new run time re-arms it.

Browser and knowledge

Browser
Native Playwright Chromium — no external container required. Set cdp_url to a ws:// URL for remote CDP/Browserless instead. Default timeout 30,000 ms, viewport 1920×1080.
Search
Hybrid retrieval combines sqlite-vec embeddings (fastembed) with FTS5 keyword results. Unscoped history searches prioritize current-session, archive, and channel-log keyword matches before semantic fill; scoped channel searches keep their own ordering.
Chunking
Documents are chunked to ~1,500 characters with overlap before embedding.
Durability
Ingestion verifies canonical SQLite chunks and configured FTS rows before reporting a complete document or recording a successful version. Replacement installs the new document before retiring old rows; identical-source replay skips only after a durability check. These stores do not share one atomic transaction, so failed writes are reported rather than called durable.
Validation
Shared query validation rejects embedded NUL and text that cannot encode as UTF-8. The knowledge search API returns HTTP 400 for malformed queries. Hybrid ranking uses reciprocal-rank fusion with canonical IDs, not IDs reconstructed from lossy metadata.

Skills

Skills add Python tools at runtime, usable in the same turn they are created. A skill created or edited locally is trusted code: it runs in-process with Odin’s privileges. Skills installed from a URL get a static check first. Skills are not an OS-level sandbox.

Per call
50 tool calls, 20 HTTP requests, 10 messages, 10 file sends per invocation
Isolation
Loading a local skill executes its top-level code before its definition is validated; it is then hot-reloaded. Only URL installs get the static preflight, which refuses imports such as os, subprocess and socket and calls such as exec, eval and open. execute_tool() refuses tools outside its seven-tool allowlist, including run_command and apply_patch, but the run_on_host() helper runs authorized host commands, so skills are not read-only.
Runtime
Default 120-second execution timeout, overridable through per-tool timeouts, and a 50,000-character result-text cap before the truncation marker.
Blocked reads
Skill file-read checks reject .env and .env.* files, config.yml/config.yaml, /etc/shadow, SSH private keys and .ssh paths, credentials.json, and .kube/config.
execute_tool() allows
read_filememory_manageweb_searchfetch_urlhttp_probebrowser_read_pagebrowser_read_table
Helpers
Besides execute_tool(), a skill gets helpers of its own: run_on_host, read_file, post_message, post_file, remember and recall, http_get and http_post, search_knowledge, ingest_document, search_history, and the schedule helpers (schedule_task, list_schedules, update_schedule, delete_schedule).

MCP & tool visibility

Capabilities → MCP Servers manages stdio and Streamable HTTP servers. Tools are published only while global MCP and the individual server are enabled and discovery/validation succeeds.

Visibility
Allowlist and tool-limit checks gate publication. Disabled or stale generations cannot republish tools. Saving a server is distinct from connecting it successfully; configured does not mean available.
Publication limits
Per-server and total published-tool ceilings are configurable in Capabilities → MCP and read live at each publication or tools refresh. An over-limit server publishes nothing rather than silently truncating to the first N. Raising a limit takes effect on the next publication or refresh; lowering one does not evict already-published tools.
Images and files
Result images reaching a supported raster format are delivered to native vision, and every accepted binary part — images, embedded resource blobs, and audio — is retained byte-faithfully for 24 hours and retrievable through get_tool_output with a whole-file SHA-256. post_file posts a retained file as an attachment by its manifest entry’s cursor, after checking that hash. Inline resource text is preserved as text. No transcription, URL fetching, or filesystem extraction is performed.
Endpoint display
Header and environment secret values are not returned. HTTP endpoint displays mask userinfo, query values, and fragments while keeping scheme, host, port, and path recognizable.
Protocol scope
Static header/environment authentication is supported. Interactive OAuth, deprecated HTTP+SSE transport, and MCP resources/prompts/sampling are not supported.
Built-in tools
Capabilities → Tools can disable built-ins per installation through tools.disabled_tools. They disappear from the model catalog and are rejected at dispatch; their names stay reserved against skill/MCP shadowing. Visibility does not grant tool or host permission.

Audit and command safety

Tool executions produce audit records with HMAC chaining for tamper evidence when audit.hmac_key is set, log rotation, and a 17-entry failure taxonomy including unknown. Signing is disabled when the key is empty. Sub-agent tool calls record the same scrubbed, capped arguments as the main thread, plus the agent, its parent and root, the originating turn, iteration and call id, so a search can attribute any call to the agent that made it.

Critical and exfiltration commands are blocked for callers who are not admins. With governor.admin_can_override on, the default, admins can override many of those blocks: the command runs with a critical warning in the output and the audit record. Turning the setting off keeps them blocked for admins too, provided block_critical and block_exfil stay on, as they are by default. A host marked strict in governor.host_overrides adds restrictions: it blocks high-risk commands there, and some commands raised from high to critical risk stay blocked even for admins. It does not disable every admin override, so it is no substitute for turning admin_can_override off. Unconditional git force-pushes are blocked for everyone; the denial suggests --force-with-lease.

Critical
rm -rf / (and equivalents)mkfsshutdown / poweroff / halt / init 0fork bombs
Exfiltration
curl | bash and wget | sh pipelinesreverse shells (bash -i >& /dev/tcp/, nc -e)base64 --decode piped to a shellwrites to /etc/passwd, /etc/shadow, /etc/sudoers
Risky but allowed
Allowed-but-risky commands (targeted rm -rf, systemctl restart, docker rm) execute with a risk annotation in output and in the audit record.

The rules: src/tools/risk_classifier.pyThe audit chain: src/audit/signer.py

Output & evidence

The default shared tool-delivery cap is 12,000 characters, including the serialized envelope. Large results use a labelled head and tail when retention succeeds; the tail is context only. get_tool_output follows contiguous head-only pages from the end of the head without re-running the tool. read_file has its own framed, contiguous-read contract.

Tool snapshots
Scrubbed snapshots survive turn completion and restart for up to 24 hours from capture. Default limits are 4 MiB per result and 64 MiB aggregate body bytes; when a new snapshot needs room, the oldest expire early, and a bundle being delivered is held. Retention failure, quota exhaustion, eviction, and expiry are explicit: a cursor is not promised for evidence that was not saved.
Authorization
Reading a cursor rechecks the original caller, channel, tool permission, and host scope. Possessing a cursor is not authorization. General tool cursors use code-point offsets; agent and process cursors use UTF-8 byte offsets. Pass the returned cursor unchanged to its named retrieval tool.
Search pages
Retained searches preserve the returned ranking, prefer whole matches, and report showing/deferred counts. Oversized matches advance in bounded fragments. Pagination recovers retained results, not source content already omitted before the tool result was formed.
Process spools
manage_process retains up to 4 MiB per job, with a combined local/remote quota of 128 MiB. Default polls show the newest 50 lines when safely available, reduced to fit delivery. Metadata distinguishes emitted, retained, shown, and lost bytes; capture is not unlimited.
Process cursors
Offset 0, blank, null, or omitted selects the newest-lines status view. Start a full read with the preview’s generation:0 cursor; non-empty cursors override offset, while offsets ≥1 select explicit ranges. Page limits default to 4,000 bytes, accept 4–8,000, and may shrink to fit serialization.
After exit
Process output remains read-only for 24 hours after observed exit; reads do not renew expiry. Remote output is read through an authorized output-only lease to the original host identity. A clipped tail with unverifiable secret context is withheld explicitly, with retrieval limited to the safely retained prefix.
Agent results
wait_for_agents returns every accepted ID and status, each with a preview: the largest equal share of the aggregate budget, up to 8,000 UTF-8 bytes per agent, so a result that fits arrives whole. Since 4.26.0, return_when "any" returns as soon as one listed agent has finished (an earlier finish counts) while the others keep running. Read get_agent_results with its returned cursor until truncated=false: the default ceiling is 4,000 bytes, maximum 8,000, and the complete serialized envelope must fit. A parent message interrupts the wait, not its children.

Reading & editing files

Use read_file for source inspection and apply_patch for context-checked text edits on an explicitly selected managed host.

read_file
start_line is one-based; lines defaults to 200 with a maximum of 1,000. Numbered reads return contiguous ranges and continuation instructions, never a head/tail replacement.
Raw reads
raw=true returns contiguous UTF-8 source inside a length-framed envelope, with recognized secrets redacted and content_redacted reported. For ingestion or copying, consume only framed source content. ingest_document requires a complete logical document and replaces it; never ingest individual transport pages as though they appended. Do not claim an exact original-file hash from redacted content.
apply_patch
Add, Update, Delete, and Move use paths relative to an explicit absolute root. Consecutive named @@ lines form ordered anchor chains; the body follows the final anchor directly and the complete chain/body must match exactly once. A bare @@ opens a new hunk. An ambiguous match is refused with up to five matching line numbers, each with the line above it.
Atomicity & errors
Add and Move create missing parent directories under the root. The envelope is validated before writes; failed multi-file application attempts rollback of files and patch-created directories, with rollback failures reported. Match errors identify patch lines and anchors. A native atomic no-replace rename is required: renameat2(RENAME_NOREPLACE) on Linux with glibc 2.28+, or renameatx_np(RENAME_EXCL) on macOS hosts (Python 3.9+ there). Case-only moves work on case-insensitive volumes; no unsafe fallback is used.

Context budgets & recovery

context_compression.max_context_chars defaults to null: the working limit is derived from the selected model, not a fixed character threshold. openai_codex.context_utilization defaults to 60% (range 30–100%); normal compression keeps the 30 most recent iterations.

Built-in model input budgets
Without an operator override, the resolver starts from the CODEX_MODEL_INPUT_BUDGETS input-token budgets: gpt-6.2-astra and gpt-6.2-sol 921,597 each; gpt-6-astra 917,534; gpt-6.1-sol 921,849; gpt-6.1-terra 921,847; gpt-6-sol and gpt-6-luna 921,799 each; gpt-5.6-sol 921,601; gpt-5.6-terra, gpt-5.6-luna and gpt-5.4 917,506 each; gpt-5.4-mini 262,146. These are known-safe usable input budgets, not advertised context-window sizes or the final working target.
Budget resolution
The resolver combines model input budgets, utilization, envelope reserves, and observed character/token density. An explicit character ceiling can lower the derived target; it cannot raise it.
Observed clamps
Qualified capacity evidence can lower a model budget for 24 hours. Codex Advanced → Context budgets shows and can clear these clamps. Not every overflow qualifies as evidence of a smaller model window.
Overflow
context_length_exceeded triggers a bounded emergency compression ladder within the same iteration. Emergency retention is size-bounded rather than a promise to keep every recent iteration. Agents also have bounded, agent-local overflow recovery.
Recovery deadline
Typed errors separate capacity, rate-limit, transport, authentication, and invalid requests. Capacity breakers are keyed by effective provider and model. Recovery waiting defaults to a 5-minute budget per logical generation, not a 5-minute task or healthy-generation timeout.
Suspension
When durable turn state is enabled and successfully saved, capacity exhaustion can suspend the turn. resume or continue requests continuation; restart recovery needs an explicit request. Ambiguous effects or changed session state prevent automatic replay.
Turn State
System → Turn State exposes a SQLite checkpoint ledger, lease heartbeats, and separate model-capacity breakers. A boot sweep suspends formerly active turns and marks uncertain effects unknown rather than blindly repeating them. Attention highlights suspended/stale work and effects requiring manual resolution.

Web interface and API

Management WebUI served by aiohttp with 234 REST routes. Bearer-token auth; secrets redacted from API responses. The interface listens on port 3000 by default. Sessions last 12 hours (configurable; 0 = never expire); "Stay logged in" sessions survive restarts for up to 30 days.

Dashboard
system posture, live activity, health strip
Chat
direct operator conversation (WebSocket with REST fallback), with Stop, mid-turn corrections, a live status line of the turn’s own tool calls, and file and image attachments
Operations
Live execution viewer, Agents, Loops, Processes, Schedules
History
Audit, Sessions, Traces, Usage & Activity
Capabilities
Tools, Skills, Knowledge, Memory, Learned, MCP Servers
Personality
behavior and response profile
System
Health, Resources, Logs, Config, Discord (connection status, connect, detach), Hosts, Host Access (per-user tiers and hosts), API Tokens, LLM Config, Internals, Turn State, Update

Every route, with its method, purpose and whether it needs an admin: the generated API reference.

Config Center

The apply registry classifies field-level behavior. Saving desired configuration is not proof that every runtime consumer has changed.

Apply modes
Live-read, explicit live-apply, next-work, restart-required, activation-required, dormant, and legacy-controlled fields are distinguished. Next-work changes do not rewrite work already in progress.
Pending restart
The WebUI compares desired values with the boot snapshot for known restart-bound consumers. Unknown effective state stays unknown; this is not a general runtime-drift detector.
LLM settings
The LLM page can apply auth, model, effort, and context-budget changes without a restart. In-flight requests retain their leased client. Some transport/pool/compression settings remain restart-applied; consult each field’s status.
Restart API
Admin-only POST /api/restart schedules a restart and returns 202. Repeated requests while one is scheduled are idempotent. Saving configuration alone does not request a restart.

Self-update & restart

The self_update API module serves GET /api/update/check and POST /api/update/apply. It is not a model tool or an odin CLI subcommand.

Git installations
The updater checks tracked modifications and the command workspace, preserves config.yml and .env, fetches tags, fast-forwards master, and reinstalls dependencies when needed before requesting restart. It does not promise to preserve arbitrary modified files.
Packages
Package installations should update through apt. The package preserves configuration/data and restarts only when the service was already running.
Restart boundary
Normal restart drains shutdown and re-execs in place. Unproven teardown can veto re-exec; failure can exit nonzero and require supervisor recovery. Restart completion alone does not establish service health.