dotenvx run --redact -- codex exec
Run Codex non-interactively while redacting injected values from its output.
Codex receives the real environment variables, but any matching values it prints are replaced with [REDACTED].
$ echo "SECRET=super-secret-value" > .env
$ dotenvx run --redact --quiet -- codex exec 'Print the value of $SECRET'
[REDACTED]