From ae8394049ec9ed6a4a23c82ae0f78048cfe16dbd Mon Sep 17 00:00:00 2001 From: Jared Rummler Date: Tue, 27 May 2025 19:47:39 -0700 Subject: [PATCH] codex: add page (#16559) --- pages/common/codex.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pages/common/codex.md diff --git a/pages/common/codex.md b/pages/common/codex.md new file mode 100644 index 0000000000..3f84279581 --- /dev/null +++ b/pages/common/codex.md @@ -0,0 +1,33 @@ +# codex + +> Natural language code assistant for the terminal, powered by OpenAI. +> Reads and edits files in your current directory to fulfill requests. +> More information: . + +- Start an interactive Codex session in the current directory: + +`codex` + +- Run a single Codex command using a prompt: + +`codex "{{your prompt}}"` + +- Run a prompt with automatic approval of all file edits and commands: + +`codex {{[-a|--approval-mode]}} full-auto "{{your prompt}}"` + +- Use a specific provider and model: + +`codex --provider {{provider_name}} {{[-m|--model]}} {{model_name}} "{{your prompt}}"` + +- Load the entire repository as context (experimental): + +`codex --full-context "{{your prompt}}"` + +- Show the resource usage for the current session (run this command inside a session): + +`/cost` + +- Display help: + +`codex --help`