CODEX_HOME
optional
Codex home directory; defaults to %USERPROFILE%\.codex.
CODEX_PROJECTS_ROOT
optional
Project root scanned by project catalog and read tools; set it to a local project directory.
CODEX_ALLOWED_ROOTS
optional
Semicolon-separated path allowlist; set it to approved local paths.
CODEX_PROJECTS_REGISTRY
optional
Optional JSON project registry; point it to a local registry file.
CODEX_MCP_STATE_DB
optional
Path to the MCP state SQLite database; set it to a local database file.
CODEX_CONTROL_PLANE_MCP_LOG
optional
Log file path; set it to a local log location.
CODEX_MCP_HOOK_HISTORY_ENABLED
optional
Enables or disables SQLite hook history; enabled by default.
CODEX_MCP_HOOK_HISTORY_MAX_TEXT_CHARS
optional
Per-message hook capture character limit; set the desired cap.
CODEX_KB_HISTORY_PROJECTS_ROOT
optional
Optional legacy normalized knowledge base history root; set it to a local directory.
CODEX_BINARY_PATH
optional
Optional explicit Codex binary path; point it to the local executable.
CODEX_MCP_DEFAULT_SANDBOX
optional
Default write sandbox policy; defaults to read-only.
CODEX_MCP_DEFAULT_APPROVAL_POLICY
optional
Default write approval policy; defaults to on-request.
CODEX_MCP_DEFAULT_MODEL
optional
Default Codex model passed to app-server; set the desired model.
CODEX_MCP_DEFAULT_EFFORT
optional
Default reasoning effort; set the desired level.
CODEX_MCP_MAX_IMAGE_INPUT_ITEMS
optional
Maximum image attachments per codex_submit_task; defaults to 10.
CODEX_MCP_MAX_IMAGE_INPUT_BYTES
optional
Maximum bytes for one local image input; defaults to 20000000.
CODEX_MCP_TURN_STALL_TIMEOUT_SECONDS
optional
Inactivity threshold for reporting a stalled turn; defaults to 900 seconds.
CODEX_MCP_STALLED_TURN_ACTION
optional
Policy for stalled turns; defaults to diagnose_only.
CODEX_MCP_APPROVAL_RESPONSE_TIMEOUT_SECONDS
optional
Timeout for pending interaction responses; set the desired number of seconds.
CODEX_MCP_INSTRUCTIONS_FILE
optional
Optional UTF-8 instructions file returned to MCP clients; defaults to ~/.codex-control-plane/instructions.md.
DEEPSEEK_ENV_PATH
optional
Optional .env file path for DeepSeek summary settings; point it to the local file.
DEEPSEEK_SUMMARY_ENABLED
optional
Enables or disables remote summary calls; set the desired value.
CODEX_CONTROL_PLANE_MCP_CONFIG
optional
JSON configuration file path; set it to the config file location.
OPENCLAW_CODEX_MCP_CONFIG
optional
Legacy fallback for CODEX_CONTROL_PLANE_MCP_CONFIG; set it to the config file location.
CODEX_MCP_EXECUTION_MODE
optional
Execution mode; examples set it to worker for the central worker or client for client processes.
CODEX_MCP_MAX_ACTIVE_TURNS_GLOBAL
optional
Global concurrent turn limit; documented default is 4.
CODEX_MCP_MAX_ACTIVE_TURNS_PER_PROJECT
optional
Concurrent turn limit per project; documented default is 3.
CODEX_MCP_MAX_ACTIVE_TURNS_PER_AGENT
optional
Concurrent turn limit per agent; documented default is 3.
CODEX_MCP_MAX_ACTIVE_TURNS_PER_THREAD
optional
Concurrent turn limit per thread; documented default is 1.
CODEX_MCP_MAX_ACTIVE_WRITE_TURNS_PER_PROJECT
optional
Concurrent write-turn limit per project; documented default is 1.
CODEX_MCP_MAX_APP_SERVER_PENDING_REQUESTS
optional
Pending app-server request limit; documented default is 8.