Codex

Run Mopheus agent tasks with the OpenAI Codex CLI.

Codex

Mopheus runs the OpenAI codex CLI as a native provider. Install it on the machine that runs the Mopheus daemon; the daemon discovers it and registers a Codex runtime automatically.

Runtime

FieldValue
Binarycodex
Path overrideMOPHEUS_CODEX_PATH
Verifycodex --version
ProtocolNative
Interaction deliveryActive-turn steer, with next-turn fallback
Mopheus-managed MCPSupported
Task skill path.codex/skills/
Filesystem sandboxSupported on Linux

An agent whose provider value is codex is dispatched to this runtime. For a binary outside $PATH:

export MOPHEUS_CODEX_PATH=/opt/openai/bin/codex
mopheus daemon start

Sessions and sandbox

Mopheus keeps Codex resumable session history workspace-scoped, including when the filesystem sandbox is disabled. Credentials, global CLI preferences, plugins, and other host-global data remain owned by the daemon user and are not copied into a workspace. Existing host-global session history is not migrated automatically.

On Linux, the optional filesystem sandbox provides the outer filesystem boundary with bwrap. Mopheus disables Codex's inner sandbox for that task so the two sandbox implementations do not nest.