OMX
Oh My CodeXv0.14.0

Configuration

OMX configuration files, CLI flags, and hook registration — a complete reference for `.codex/config.toml`, `.codex/hooks.json`, and common launch flags.

OMX reads configuration from files in ~/.codex/ (user-level) and .codex/ (project-level). Project-level files take precedence over user-level files for overlapping keys. Configuration controls model selection, hook registrations, custom prompts, and feature flags.

.codex/config.toml

The primary configuration file. Key fields:

FieldTypeDescription
modelstringDefault model for Codex sessions (e.g. "gpt-4.1", "o3").
codex_hooksboolEnable the OMX hooks extension pipeline. Set true to activate skills, team, and OpenClaw.
custom-promptsstringPath to a directory containing custom prompt files that override or extend OMX defaults.
approval_policystringTool-call approval policy: "suggest", "auto-edit", or "full-auto".

Example:

model = "gpt-4.1"
codex_hooks = true
custom-prompts = "~/.codex/prompts"
approval_policy = "auto-edit"

.codex/hooks.json

Registers hook handlers that OMX calls at specific lifecycle points. Each entry maps a hook name to a handler command or MCP tool. See the hooks extension docs for the full hook catalog.

Example registering a post-session-end shell handler:

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

Common CLI flags

FlagDescription
--madmaxMaximum parallelism mode — spawns the full team pipeline automatically.
--highHigh-effort mode — uses the highest-tier model available.
--skip-git-repo-checkSuppresses the error when launching outside a git repository.
--sparkRoutes team workers through the spark worker tier for lighter tasks.
--madmax-sparkCombines --madmax with spark worker routing.
Was this page helpful?

On this page