Codex CLI
Codex CLI provides OpenAI model access for general security analysis and code-oriented workflows.
Requirements
codexCLI installed.Codex authentication completed (
codex loginor an API-key/configuration method supported by your installed Codex version).
Setup
Install CLI:
npm install -g @openai/codexAuthenticate. For an interactive login:
codex loginVerify locally:
codex exec "hello"Configure in AI Backend settings tab.
Configuration
Preferred Backend
codex-cli
Codex CLI Command
codex chat (default)
Model example:
codex chat is retained as the persisted default for compatibility. At dispatch time the adapter removes the legacy chat token and invokes codex exec --color never --skip-git-repo-check, feeds the prompt on stdin, and reads the final answer through a temporary --output-last-message file. That file is deleted in the call's cleanup path; a bounded shutdown registry retries cleanup when Burp exits while a call is still in flight.
Notes
Windows
The extension automatically resolves npm-installed CLI shims on Windows. When codex is configured, the resolver:
Checks for a
.cmdsibling next to the resolved path (e.g.,codex.cmdalongsidecodex).Falls back to wrapping the command with
cmd /cif no.cmdsibling is found.
This prevents CreateProcess error=193 that occurs when Java tries to execute a shell script shim directly on Windows.
Windows + WSL bridge
If Burp runs on Windows and Codex runs in WSL, set Codex CLI Command to a .cmd wrapper that forwards args into WSL.
Wrapper example:
Troubleshooting
Related Pages
Last updated
