OMX
Oh My CodeXv0.18.14

Configuration

Reference for `.codex/config.toml`, `.codex/hooks.json`, and CLI flags

OMX reads configuration from ~/.codex/ (user-level) and .codex/ (project-level). When the same key appears in both, the project-level value takes precedence.

.codex/config.toml

FieldTypeDescription
modelstringDefault Codex model. In current OMX routing this participates in the frontier/default lane.
[features].hooksboolStable Codex native hook feature flag for setup-owned fallback hooks. Legacy codex_hooks is migration-only.
[features].plugin_hooksboolPlugin-scoped hook feature flag for Codex plugin installs that support it.
[features].goalsboolEnables Codex goal integration used by goal-oriented workflows.
custom-promptsstringPath to a directory that extends or overrides OMX default prompts
approval_policystringCodex approval policy. Autonomous launches may intentionally choose dangerous/no-prompt execution boundaries.
model = "gpt-5.5"
custom-prompts = "~/.codex/prompts"
approval_policy = "never"

[features]
hooks = true
goals = true

.omx-config.json

Use .omx-config.json for OMX-owned routing and feature config that is not a Codex root TOML key.

KeyPurpose
agentModelsPer-agent model overrides such as { "planner": "gpt-5.5" }. These win before built-in role pins.
agentReasoningPer-agent reasoning overrides: low, medium, high, or xhigh.
envFallback environment values such as OMX_DEFAULT_FRONTIER_MODEL, OMX_DEFAULT_STANDARD_MODEL, and OMX_DEFAULT_SPARK_MODEL. Real shell env wins.
modelsMode defaults such as default, team, autopilot, and team_low_complexity.

agentModels.planner is significant for Autopilot and Ralplan planning: when the main/default lane is cheap or mini, OMX can route the initial planning draft to the dedicated planner role. Use omx team status <team> --model-inspect when you need to inspect team model routing.

.codex/hooks.json

Registers hook handlers that run at each lifecycle point. Each entry maps a hook name to a command or MCP tool.

{
  "hooks": {
    "session-end": {
      "command": "~/.codex/scripts/on-session-end.sh {{sessionId}}"
    }
  }
}

For the full hook catalog, see the upstream repository.

CLI Flags

FlagDescription
--madmaxDangerous bypass shorthand for high-autonomy execution boundaries. It is not the same thing as starting a full Team pipeline.
--highReasoning-effort shorthand for high reasoning. It is not a model-tier selector.
--xhighReasoning-effort shorthand for extra-high reasoning where supported.
--skip-git-repo-checkSuppresses the error when launching outside a git repository.
--sparkRoutes team workers through the spark worker tier.
--madmax-sparkCombines --madmax with spark worker routing.

On this page