Configuration reference
Omnigent configuration controls the CLI, local server, harnesses, and managed sandboxes. These settings are separate from an agent's portable YAML spec and from the REST API.
Configuration scopes
| Scope | File or command | Use |
|---|---|---|
| Project | .omnigent/config.yaml or omni config set KEY=VALUE | Defaults for the current project. Project values override user values, except user-level-only settings. |
| User | ~/.omnigent/config.yaml or omni config set --global KEY=VALUE | Defaults shared across projects and settings owned by the local server. |
| Deployed server | omni server --config /path/to/config.yaml | Server-wide settings for every user and session on that deployment. |
Run omni config list to inspect the effective user and project configuration.
Use omni config unset KEY or omni config unset --global KEY to remove a
value from the corresponding scope.
Not every key is valid in every scope. Each setting below identifies its scope, type, default, and validation behavior.
User-level-only settings
Some settings are read only from ~/.omnigent/config.yaml. A project's
.omnigent/config.yaml can't change them:
server: which server the CLI connects to. Setting it without--globalis rejected, and aservervalue in a project file is ignored. To use a different server for one command, pass--server.session_title_instructions: see Automatic session titles.- Per-harness
commandandargsunder theharness:key. A project can still select the default harness (harness: <id>orharness.default). See Override the harness binary and launch args.
The user-level-only mcp and harness.<id>.mcp settings control inherited
Claude Code and Codex MCP servers. See
Limit inherited MCP servers.
omni config list flags project-file values it ignores: user-level-only keys
appear as # ignored user-level-only setting(s): ... (set with --global), and
per-harness launch entries appear as
# ignored project harness launch overrides: ....
Automatic session titles
| Setting | Value |
|---|---|
| Key | session_title_instructions |
| Scope | User or deployed server; project values are rejected |
| Type | String, up to 4,000 characters |
| Default | No additional instructions |
Use natural-language instructions to control the format of session titles.
These requirements apply both to titles generated from the first message in a
session and to later agent-initiated renames through the sys_session_rename
tool:
omni config set --global \
'session_title_instructions=Prefix pull request titles with the PR number and use a short snake_case name.'
This setting belongs to the server, not an agent's portable instructions. It
must use the global scope for a local server. On a deployed server, set the same
key in the YAML passed to omni server --config:
session_title_instructions: |
Prefix pull request titles with the PR number.
Use a short snake_case name for other work.The generator receives the current date as YYYY-MM-DD along with the first
message. Default generated titles are limited to 100 characters; output beyond
that limit is rejected in favor of the first-message fallback. When custom
instructions are set, generated titles may use up to 200 characters and longer
output is truncated with an ellipsis. Manually assigned titles also have a
200-character limit.
When an agent renames a session with sys_session_rename, its proposed title
is formatted against these same requirements before the rename is applied. If
that formatting fails, the existing title is preserved rather than replaced by
an unformatted proposal. Without custom instructions, the agent's proposal is
used as-is. Manually assigned titles are never reformatted.
The setting applies after the local server restarts, to both new-session titles and agent renames. An empty value removes the additional guidance. A non-string value or a string longer than 4,000 characters is ignored and the default title prompt is used.
Personal title instructions
Each user can also save their own title requirements in the web UI under Settings → General → Sessions → Title instructions (up to 4,000 characters). The server stores them per user and applies them to automatic titles and agent renames of sessions that user owns. They're read when each title is generated, so no server restart is needed.
When both are set, the server's session_title_instructions come first,
followed by the user's instructions, which win where the two conflict. Leaving
the field blank, or clicking Clear, removes only the personal instructions;
titles then use the server setting, or the default prompt if there is none.
If a user's saved instructions can't be read, titles fall back to the server
setting alone.
The same value is available through the REST API.
Web UI base path
| Setting | Value |
|---|---|
| Key | OMNIGENT_WEB_BASE_PATH environment variable, or omni server --base-path <prefix> |
| Scope | Server process only (environment or CLI flag); not a config.yaml key |
| Type | URL path prefix — leading slash, no trailing slash, e.g. /proxy/6767 |
| Default | Unset — served at the origin root (/) |
Serves the server and web UI under a path prefix behind a reverse proxy such as
code-server's /proxy/<port>/ or an nginx location block. The web UI
prefixes its API, SSE, WebSocket, and asset URLs, and the server accepts
requests with or without the prefix, so prefix-stripping and non-rewriting
proxies both work from one value. The flag is shorthand for the environment
variable and wins over an inherited value.
"" and / are treated as unset. A missing leading slash is added and a
trailing slash is removed. Values that start with //, contain characters
outside letters, digits, and -._~/, include ./.. segments, or whose first
segment collides with a reserved API namespace or a top-level web UI route are
rejected at startup. For the full list of reserved segments, the auth variables
to pair with it, and how the local managed server remembers the prefix, see
Serving under a subpath.
Attachment limits
| Setting | Value |
|---|---|
| Keys | filesystem_attachment_max_bytes, filesystem_attachment_max_files, filesystem_attachment_max_total_bytes, filesystem_attachment_denied_extensions |
| Scope | Server config (omni server --config) |
| Applies | .zip, .docx, .xlsx, .pptx, .db, .sqlite, .sqlite3, .mp4 uploads |
Uploads of ZIP archives, Office documents, SQLite databases, and MP4 videos are
admitted by filename extension and stored without extraction; the harness reads a
local copy outside the working checkout (see Attach archives, Office documents,
databases, and MP4
videos).
MP4 videos also need a host and runner that advertise
filesystem_attachment_delivery; older builds refuse them with an update
message.
These formats require an updated execution host/runner and a supported native
agent: Claude Code, Codex, Pi, Cursor, Kiro, Goose, Antigravity, Qwen Code,
Kimi, Hermes, or Devin. OpenCode and API/SDK harnesses do not support them.
Forking a session containing these files requires Claude Code or Codex.
The upload, copy, and fork routes apply the following limits to them:
| Key | Default | Scope |
|---|---|---|
filesystem_attachment_max_bytes | 52428800 (50 MiB) | Bytes per file |
filesystem_attachment_max_files | 20 | Stored files of these types per session |
filesystem_attachment_max_total_bytes | 209715200 (200 MiB) | Combined bytes of these types per session |
filesystem_attachment_denied_extensions | [] | Further restrict the allowlist, e.g. [".zip", ".db"] |
filesystem_attachment_max_bytes: 26214400 # 25 MiB per file
filesystem_attachment_max_files: 10
filesystem_attachment_max_total_bytes: 104857600 # 100 MiB per session
filesystem_attachment_denied_extensions: [".zip", "db"] # leading dot optionalDenied-extension entries are matched case-insensitively, with or without the leading dot. Entries that are not non-empty strings are skipped with a warning; if the value is not a list, the whole setting is ignored. The denylist can only narrow the built-in allowlist, and it does not restrict files the agent creates or downloads through other tools.
These are filename-based admission and storage limits, not content inspection:
the server does not identify file formats from their bytes, inspect archive
entries, or detect renamed binary content. Images, PDFs, and text/code uploads
keep their separate existing limits. The web composer also has a fixed 50 MiB
ceiling for these formats, so raising filesystem_attachment_max_bytes above
that has no effect for uploads made from the web UI.
Sandbox access. The runner writes attachment copies to
~/.omnigent/attachments/<session-key>/<filename> (or
$OMNIGENT_DATA_DIR/attachments/ when overridden) on the execution host, and the
harness receives that absolute path. Custom sandbox and provider configurations
must let the runner write this cache and the harness's file-reading tools read
it; permission to read the working directory does not cover attachments/. If
the harness runs in a separate filesystem namespace, expose the session cache at
the same absolute path. Scope any added access to the required cache rather than
the whole data directory, which also contains credentials.
Request-phase custom policies
receive the filename and content type of these attachments with an empty text
value; their contents are not scanned as text.
Automation trigger polling
| Setting | Value |
|---|---|
| Key | automation_trigger_poll_minutes |
| Scope | Server config (omni server --config) |
| Type | Integer, whole minutes from 10 through 240 |
| Default | 10 |
Sets how often new trigger-template automations (the Jira, Slack, GitHub, Linear, and PagerDuty templates) check for new matching items. Trigger templates poll; they don't receive webhooks. To poll every 30 minutes, set this in the server YAML and restart the server:
automation_trigger_poll_minutes: 30A value that is not an integer from 10 through 240, including a boolean, stops
the server from starting. The server advertises the effective value as
automation_trigger_poll_minutes in /v1/info.
The setting applies only to trigger templates created after the restart. Existing automations keep their saved schedules and prompts. New templates use this interval only when automations v2 is enabled. If automations v2 is off, or the server doesn't support sub-hour schedules and the value is under 60, new templates poll hourly.
Automatic session recovery
| Setting | Value |
|---|---|
| Key | host.recover_interrupted_sessions |
| Scope | The host machine's ~/.omnigent/config.yaml |
| Type | Boolean |
| Default | false (interrupted sessions are continued manually) |
When a host restarts while an agent turn is running, the session normally stops with a disconnect error until you send another message. A host that opts in lets the server continue the interrupted task automatically, in the same chat and without another message:
host:
recover_interrupted_sessions: trueRestart the host process to apply the setting. While connected, an opted-in
host asks the server every 30 seconds to recover its interrupted sessions. Only
the literal value true opts in. Omitting the key, setting it to false, or
running an older host keeps manual continuation. The setting works on ordinary
machines as well as cloud sandbox hosts, but
the host must reconnect under the same host identity. For managed sandboxes,
roll it out to every host through the provider's
host_config:
sandbox:
provider: kubernetes
host_config:
host:
recover_interrupted_sessions: trueThe host must come back with its workspace, credentials, and harness state restored. Leave recovery disabled if those files may still be restoring after the host registers. The server never provisions or wakes compute to recover a session, and it refuses recovery when the session's workspace directory is missing.
What gets continued:
- Only root sessions whose unfinished turn the server recorded are eligible. A session that merely shows a past running status or disconnect error stays manual.
- A completed turn, Stop, a pending approval or other human-input wait, a newer message, archiving or closing the session, or a changed host binding prevents continuation. Sessions whose runner is still alive are skipped.
- Each interrupted task gets at most three launch attempts within 24 hours. Retries back off, and the budget survives a server restart. A new user message starts a fresh budget.
- The agent receives a hidden prompt tagged
[System: session resumed]. The transcript doesn't show it as a user message. - If the retry budget runs out, or the server can't confirm the continuation was delivered, it stops instead of replaying work that may have finished. The session then shows Automatic resume failed. Please send a new message to continue.
Recovery isn't exactly-once. A tool call that was in flight when the host restarted may already have taken effect. The default prompt tells the agent to continue the task and check the outcome of any interrupted operation before it repeats it.
Recovery prompt
| Setting | Value |
|---|---|
| Key | recovery_prompt |
| Scope | Server config (omni server --config) |
| Type | Non-blank string, up to 8,000 characters |
| Default | Built-in prompt to continue the task and check interrupted operations |
Replaces the instructions sent to the agent when a session is resumed. The
server still adds the [System: session resumed] marker:
recovery_prompt: |
Your previous run was interrupted. Re-check the working tree and test status,
then continue the task.A managed sandbox provider can override this for its own hosts with
host_config.host.recovery_prompt. The same limits apply to both settings, and
the server rejects an invalid value at startup. Neither hosts nor end users can
supply these instructions.
The stock omni server, Docker, and Databricks App entrypoints allow hosts to
opt in. A server embedded by calling create_app directly must also pass
host_session_recovery=True, or a callable that returns True. Without it,
recovery stays off.
Read-only code hosts
Set read_only_code_hosts in the server config (omni server --config) to
keep pull requests visible while refusing server-side edits, comments, reviews,
merges, and attachment uploads. The default is [] (no host restriction).
Restart the server after changing it:
read_only_code_hosts:
- "*.code.example.com"
- git.example.orgPatterns match URL hostnames case-insensitively, ignoring ports. Only * is a
wildcard: *.code.example.com matches subdomains, not code.example.com.
Use hostnames, not URLs or paths; invalid entries are ignored with a warning.
Aliases are also checked against the provider's resolved hostname. While any
pattern is set, writes whose target cannot be determined are refused too.
This restricts the server's pull-request routes. It does not restrict an agent
running gh or other provider tools directly; use policies
for those calls.