codex exec

Run Codex non-interactively from a script or cron job: one prompt in, result out.

Codex Hermes

Example

codex exec "Summarise yesterday's error log in /var/log/app.log"

Useful inside automations, for example a nightly check that posts its summary to Telegram.

← Approval mode Updated 2026-11-26 config.toml →