Skip to content

OpenAI Codex Setup (Beta)

Omnodex supports tracing OpenAI Codex sessions via Codex’s hook system. The integration approach is the same as Claude Code: hook-based, async, non-blocking.

This guide applies to both the Codex CLI (terminal) and Codex Desktop app. On macOS and Linux, everything runs natively. On Windows, Codex Desktop runs a WSL-based agent internally - see the Desktop app note below.

Hooks must be enabled in ~/.codex/config.toml (add the section if it does not exist):

[features]
hooks = true

Restart Codex after editing this file.

  1. Install the hook into your project:

    Run this once per project you want to trace, from the project root:

    Terminal window
    npx omnodex install codex

    This creates a .codex/hooks.json file that routes Codex events through Omnodex.

  2. Verify the configuration:

    Terminal window
    npx omnodex status
  3. (Optional) Install the MCP proxy plugin for MCP tool visibility:

    The Codex plugin system is folder-based. The .plugin bundle is a zip archive that must be unpacked first:

    Terminal window
    mkdir -p ~/.codex/plugins/omnodex-codex
    unzip -o omnodex-codex.plugin -d ~/.codex/plugins/omnodex-codex

    Then register it as a local plugin in Codex. See the Codex plugin documentation for details on local plugin registration.

  4. Run Codex normally. Traced events will appear alongside any Claude Code events in the same Omnodex dashboard.

Codex Desktop runs as a native process. All config, hooks, and data use your standard home directory (~). No special setup is needed beyond the hook installation above.

  • ~/.codex/config.toml - Codex configuration
  • ~/.omnodex/ - Omnodex event log and config
  • npx omnodex dashboard works without any overrides
Event TypeStatus
Bash commandsTraced (hooks)
Session lifecycleTraced (hooks)
MCP tool callsTraced (MCP proxy plugin)
File writesNot yet available (upstream hooks)
Web searchNot yet available (upstream hooks)

As Codex expands its hook surface area, Omnodex will automatically capture additional event types without requiring reinstallation.

Codex events flow into the same event log and dashboard as all other interceptors:

Terminal window
npx omnodex dashboard

Events from Codex sessions are tagged with their source, so you can filter by agent type in the dashboard.