Skip to main content
These examples assume the yelu provider is configured as described in the Codex CLI setup guide. Run them from a Git repository with YELU_API_KEY available in the current environment.

Explore in a read-only sandbox

macOS WSL
Inside the interactive UI, use /status to verify the Yelu provider and /permissions to inspect or change execution boundaries.

Implement and verify a change

macOS WSL
workspace-write allows edits inside the workspace while retaining sandbox boundaries. Review the diff and test output before committing.

Review local changes

Review all staged, unstaged, and untracked work without asking Codex to modify it:
Terminal
Review a branch against its base:
Terminal

Run a non-interactive audit

Terminal
--ephemeral avoids persisting the session rollout. The final response is written to standard output; progress is written to standard error.

Save a final report

Use an image as context

Attach an error screenshot, UI reference, or architecture diagram:

Resume the latest session

Terminal
Use the session picker with codex resume when several tasks exist for the same repository.

Add repository instructions

Use /init in Codex or commit a reviewed AGENTS.md:
AGENTS.md
Keep sandboxing and approvals enabled for normal local work. Never use --dangerously-bypass-approvals-and-sandbox unless the process already runs inside a separately secured disposable environment.
Last modified on July 13, 2026