Skip to content

Commit ae83940

Browse files
authored
codex: add page (#16559)
1 parent 60c61f3 commit ae83940

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pages/common/codex.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# codex
2+
3+
> Natural language code assistant for the terminal, powered by OpenAI.
4+
> Reads and edits files in your current directory to fulfill requests.
5+
> More information: <https://github.com/openai/codex>.
6+
7+
- Start an interactive Codex session in the current directory:
8+
9+
`codex`
10+
11+
- Run a single Codex command using a prompt:
12+
13+
`codex "{{your prompt}}"`
14+
15+
- Run a prompt with automatic approval of all file edits and commands:
16+
17+
`codex {{[-a|--approval-mode]}} full-auto "{{your prompt}}"`
18+
19+
- Use a specific provider and model:
20+
21+
`codex --provider {{provider_name}} {{[-m|--model]}} {{model_name}} "{{your prompt}}"`
22+
23+
- Load the entire repository as context (experimental):
24+
25+
`codex --full-context "{{your prompt}}"`
26+
27+
- Show the resource usage for the current session (run this command inside a session):
28+
29+
`/cost`
30+
31+
- Display help:
32+
33+
`codex --help`

0 commit comments

Comments
 (0)