Install and verify OpenAI Codex on the host
codex app-server command through the
host Terminal PATH by default. Use Codex CLI 0.142.0 or newer for the
current default model profile.Jaidu does not install Codex automatically, update Codex automatically, or
switch to an npx fallback when codex is missing. Install or update Codex
on the host that runs jaidu-agent.If you install Codex after starting jaidu-agent, restart jaidu-agent so
it sees the updated PATH. For a systemd user service, restart the service
with:Follow the login instructions
Complete the authentication flow as prompted. Follow the authentication instructions from the OpenAI help centre to use Codex with your ChatGPT plan.Alternatively, Codex can be used via the OpenAI API by setting the
OPENAI_API_KEY environment variable. For more details, see the OpenAI documentationCustom Codex Home Directory
By default, Codex stores its settings and conversation data in~/.codex.
If you have configured a custom location using the CODEX_HOME environment
variable, Jaidu will automatically detect and use that location.
- Project-specific Codex profiles
- Separating work and personal configurations
- Custom automation setups
CODEX_HOME, start or reopen the relevant Main Chat or workspace
thread from the control plane so the host-side Codex process picks up the new
configuration directory.