Skip to main content

Overview

The Codex agent wraps the OpenAI Codex CLI via CodexAgentApi. Configure it through Spring properties under agent-client.codex.*.

Configuration Properties

Prefix: agent-client.codex

skipGitCheck and Mode Interaction

The skip-git-check property has special behavior β€” its effective value depends on AgentClientMode when not explicitly set:
Explicit always wins. Setting skip-git-check directly always overrides the mode-derived value. See Defaults Philosophy for the precedence rationale.

Why This Matters

Codex is the only provider that blocks execution in non-git directories by default. Without skipGitCheck=true, attempting to create a file in a temporary directory fails:
The LOOSE mode (default) automatically resolves this, so users can start with Codex without hitting this wall.
Migration note (pre-0.14.0): Before the mode system, Codex required skip-git-check: true explicitly for non-git directories. With LOOSE mode (now the default), this is automatic. To restore the old behavior, set mode: strict or skip-git-check: false.

Full-Auto Mode

When full-auto=true (default), Codex runs with:
  • Workspace-write sandbox β€” can write files in the working directory
  • Never asks for approval β€” autonomous execution
The Codex CLI exec subcommand does not support --ask-for-approval. Only --full-auto and --sandbox control execution behavior.

Authentication

The Codex CLI requires an OpenAI API key via the OPENAI_API_KEY environment variable.