Codex CLI reference - Keyboard shortcuts
Codex CLI keyboard shortcuts
Codex CLI documents 14 keyboard shortcuts, including @, Up / Down and Ctrl+R. These work inside the Codex CLI terminal UI. Each row gives the docs' description, accepted values and an example where one is documented.
Last verified 2 official pagesFull Codex CLI reference
| Shortcut | Description |
|---|---|
@ | Type |
Up / Down | Press |
Ctrl+R | Search prompt history, then press |
Ctrl+O | Copy the latest completed Codex output from the main TUI (same as |
! | Prefix a line with |
Tab (while Codex is working) | Queue a follow-up prompt, slash command, or shell command for the next turn. Docs: Tab (while Codex is working) |
Enter (while Codex is working) | Inject new instructions into the current turn. Docs: Enter (while Codex is working) |
Escape Escape | Press |
Ctrl+C | Close the session (same as |
Ctrl+L | Clears only the terminal view and keeps the current chat (unlike |
Alt+R | Default binding to toggle raw scrollback mode (same as |
/ | Type |
Space (in /plugins) | Press |
Ctrl+G | Open the editor configured by |
The rest of the Codex CLI reference
FAQ
How many keyboard shortcuts does Codex CLI have?
The official Codex CLI docs list 14 keyboard shortcuts, including @, Up / Down and Ctrl+R. All of them are in the table above, in the docs' order.
What does @ do in Codex CLI?
Type @ to search for a file in the workspace and add its path to the prompt.
Where are Codex CLI keyboard shortcuts documented?
On 2 official docs pages at learn.chatgpt.com, last read on October 17, 2026. Every row in the table links the exact section it came from.
More on Codex CLI
- Codex CLI in the tools directoryWhat it is, who makes it and how it fits next to other coding agents.
- Codex CLI errors and fixes14 error messages, quoted verbatim, with the documented fix for each.
- Codex and ChatGPT usage limitsPlan and tier limits for this tool, copied from the official docs.
Use other models in Codex CLI
Setup guides from the model-in-tool directory, each with the env vars and base URL from official docs.
Sources
Last verified . Names and examples are copied verbatim from the 2 official pages below, and every row above links the exact section it came from.
Newsletter
Know when your tools change
One email per week. New coding agent releases, the flags and commands they add, and what they mean for how you work.