Skip to content
Development documentation: these guides follow main and may describe changes not yet in a published release.

Deployment configuration reference

Reference · Operator guide

The no-clone stack uses deploy/.env.pi.example (GitHub), a common Compose file, exactly one backend overlay, and explicit overrides. The source-built stack uses .env.example (GitHub) and root compose.yaml (GitHub). Exported shell variables take precedence over .env during Compose interpolation. An .env value reaches the process only when the Compose service forwards it; add an explicit service environment override for a binary setting not forwarded by the selected bundle. Keep the exact COMPOSE_FILE exported for every operational shell.

The binary validates settings in internal/config/config.go (GitHub). Compose-only image, port, secret-source, group, and healthcheck settings are interpreted by the bundle rather than that loader. Do not assume an unset binary default equals the value supplied by Compose.

SettingMeaning
OMNIGREX_ORCHESTRATOR_IMAGEExact qualified selected-backend orchestrator digest for no-clone deployment
OMNIGREX_PI_IMAGE, OMNIGREX_PI_PLATFORMRequired exact golden registry digest and supported Linux platform
OMNIGREX_EXECUTION_BACKENDOne installation backend, docker or microsandbox; selected by overlay
OMNIGREX_DOCKER_GIDDocker socket group, Docker only
OMNIGREX_MICROSANDBOX_KVM_GIDKVM device group, native overlay only
OMNIGREX_SECRET_GIDDedicated secret-file group distinct from backend authority group
OMNIGREX_GITHUB_DEVELOPER_APP_ID, OMNIGREX_GITHUB_REVIEWER_APP_IDDistinct numeric App identities
OMNIGREX_RUNTIME_PROFILE_COMPATIBILITY_RESULTS_FILEOptional private absolute host path mounted for exact backend-scoped qualification results

A normal supported Pi image rollout without Session migration does not require OMNIGREX_RUNTIME_PROFILE_COMPATIBILITY_RESULTS_FILE. When configured, the artifact must match the exact target image/platform, Runtime Profile contract, and backend family/contract version; startup and doctor reject stale evidence. Clear an obsolete optional import setting or replace it with separately qualified matching results while preserving historical private artifacts and ledger evidence. Import records compatibility only, not Session migration or Participant rebinding authority. See normal rollout and optional qualification.

See release/image selection, App permissions, and secret placement. OMNIGREX_DATABASE_PASSWORD_FILE, App private-key files, webhook-secret file, and provider-credentials file identify Compose host secret sources. The orchestrator reads mounted secrets, including OMNIGREX_DATABASE_PASSWORD_SECRET_FILE for its PostgreSQL password path. Never put secret contents into examples or command-line values.

SettingMeaning
OMNIGREX_OPENAI_AUTH_MODEapi_key by default, or explicit subscription; never automatic paid fallback
OMNIGREX_PROVIDER_CREDENTIALS_FILELiteral API-key bundle; optional/empty for subscription-only use; unrelated provider keys remain selectable
OMNIGREX_PROVIDER_AUTH_ROOTBinary default /var/lib/omnigrex/provider-auth; orchestrator-only mutable credentials, separate from workspace, runtime state, and mise roots

Compose mounts its dedicated provider-auth volume at the fixed container root above. A custom root requires a matching explicit environment/mount override. See provider authentication for login, status, recovery, account replacement, and protected backups.

SettingSupplied stack value or binary default
OMNIGREX_AGENT_MAX_STEPSUnset: unlimited; positive decimal integer (1..2147483647) or unlimited; explicitly empty is invalid; step budgets
OMNIGREX_AGENT_TURN_CONCURRENCY_LIMIT2
OMNIGREX_AGENT_TURN_MEMORY_MIBCompose 1024 MiB; unset binary 512 MiB
OMNIGREX_AGENT_TURN_EXECUTION_TURN_TIMEOUT2h
OMNIGREX_PI_STARTUP_TIMEOUT10m
OMNIGREX_AGENT_TURN_EXECUTION_CLEANUP_TIMEOUT10s
OMNIGREX_TERMINAL_CORROBORATION_DURATION30m
OMNIGREX_ASSIGNMENT_RETENTION_DURATION720h
OMNIGREX_ASSIGNMENT_TOOL_CACHE_WARNING_MIB1024 MiB, soft warning only
OMNIGREX_ASSIGNMENT_TOOL_CACHE_POLL_INTERVAL5m
OMNIGREX_READINESS_TIMEOUTCompose 60s; unset binary 15s
OMNIGREX_HEALTHCHECK_TIMEOUTCompose 70s, at least 10s beyond readiness
OMNIGREX_SHUTDOWN_TIMEOUT10s
OMNIGREX_STOP_GRACE_PERIODCompose 1m; must cover draining/cleanup plus final telemetry shutdown

Startup and whole-Turn deadlines overlap; increasing one does not automatically increase the other. See installation sizing, health, and retention.

SettingPurpose
OMNIGREX_AGENT_INSTRUCTIONS_DIROptional mounted operator guidance loaded at orchestrator startup
OMNIGREX_AGENT_PATH_ENV_ALLOWLISTApproved comma-separated repository path-variable names
OMNIGREX_HTTP_PORTCompose published HTTP port/address, default 8080
OMNIGREX_HTTP_ADDRBinary HTTP listener, default :8080
OMNIGREX_MCP_ADDR, OMNIGREX_MCP_ENDPOINT_URLPrivate MCP listener/address contract; never expose publicly
OMNIGREX_WORKSPACE_VOLUME, OMNIGREX_RUNTIME_STATE_VOLUME, OMNIGREX_MISE_VOLUMELogical Docker storage names, must match actual overridden volumes
OMNIGREX_DOCKER_AGENT_NETWORKPrivate agent network, must match the selected Compose network
OMNIGREX_WORKSPACE_ROOT, OMNIGREX_RUNTIME_STATE_ROOT, OMNIGREX_WORKSPACE_CAPTURE_ROOT, OMNIGREX_MISE_ROOTControl-plane storage roots with protected binding/ownership requirements

Some advanced settings require Compose environment/mount overrides; use the loader and selected bundle together as the exact contract. Backend and namespace bindings are immutable after initialization. Changing only a Compose project name is insufficient to isolate a second installation. See agent policy, native backend settings, and installation.

Observability owns OTLP endpoints, headers, samplers, metrics opt-in, and export timing. Runtime qualification owns OMNIGREX_PI_* fixture/upgrade/live-gate inputs. In particular, OMNIGREX_PI_DEPLOY_ORCHESTRATOR_IMAGE and OMNIGREX_PI_DEPLOY_IMAGE select test script images, not normal deployment images. Do not place qualification credentials or compatibility output in source control.