How to use Codex /presets: save common prompts and switch model settings
Learn about Codex CLI 0.164.0's 10 preset slots, creation and invocation steps, model and permission commands, direct execution by number, model availability and usage limits.
What is Codex /presets
/presets is a preset for commonly used Codex CLI input: save recurring prompts or slash commands in 10 slots, numbered 0–9, then invoke it directly from the menu. For example, save code review requirements or a set of model, reasoning effort and speed settings.
OpenAI Codex CLI 0.164.0, released October 23, 2026 lists this feature and also adds /model and /permissions inline parameter support. Official version notes
This article checks operations against official release notes, merge notes and the version's source code; 0.164.0 was not upgraded and run locally. The following steps apply to Codex CLI in the terminal, and menus in the desktop app and IDE extension may differ.
Check the CLI version before starting
Check the current version in your system terminal:
codex --version
If your version is older than this article's 0.164.0, follow Official CLI installation and update guide update. Organization-managed installations should use approved versions and update methods.
Then enter the project directory and run codex. Once the session finishes starting, in Codex input field enter in /presets; do not execute it as a system Shell command.
Save a frequently used prompt
Using the official presets menu, create your first preset as follows:
- Input
/presetsOpen the menu. - by
nCreate a new one and enter text to reuse. - After editing, press Enter and select a slot from 0–9 to save. When replacing existing content, check the displayed old and new text before confirming.
- Next time you open
/presets, invoked with the corresponding number. You can also select an empty slot to create one.
For example, the following is an editable review prompt, not an officially recommended template:
检查当前未提交的改动。
优先找影响用户行为的缺陷。
说明触发条件、影响和文件位置。
暂不修改文件。
没有确认的问题时,
说明检查范围和未验证部分。
in the menu e For editing,d deletes presets; replacing and deleting existing presets requires confirmation. Presets are saved in the active user configuration tui.presets ; if saving fails, check the error message first. Exiting the editor alone does not mean it saved. Presets guide、New preset menu guide
Invoking a saved preset by number sends it to the normal execution queue. It does not just fill the input box for you to submit again. Your current draft text is preserved, but the preset has already been invoked. To change contents first, use Edit; do not run it and change it afterward.
Save current model settings as a preset
If you frequently switch model settings between tasks, start with /model Select an available model, reasoning effort and speed for the current account, then open /presets, according to s Create from current settings and select Current model, check the generated command, then save it to a slot.
The official 0.164.0 source converts these selections into a reusable /model command. Implementation in the corresponding version
You can also use inline parameters directly in the Codex input box. For example, if the current model supports high reasoning effort:
/model --reasoning=high
To also specify standard speed, append on the same line --speed=standard. Omitting the model name changes the current model. Parameters accept both --reasoning=high, also accepts --reasoning high; enter separately /model still opens the picker.
These inline settings apply to Current session; saved defaults remain unchanged. The CLI rejects the command if the model is unavailable, reasoning tier unsupported, parameters duplicated, or parameter values missing. First use /model Check your own available options. Do not copy model names or speed tiers from someone else's preset without checking. Inline model parameter guide
/permissions can also be saved, but permission confirmation still applies
0.164.0 supports using /permissions <profile-id> Choose a permission configuration; the official example is:
/permissions :read-only
These commands can also be saved as presets. First enter separately /permissions Check the options available in your current environment, then choose a configuration suited to the task.
Permission commands invoked through presets still follow configuration requirements, feature availability, and required confirmations; they do not bypass workspace restrictions. Official guidance also says queued input pauses while awaiting confirmation of a permission choice. Inline permission parameter details
Troubleshooting missing presets or nonworking shortcuts
| Symptom | What to check first |
|---|---|
Not found /presets | Whether entered in the CLI, the current CLI version, and whether the session has finished starting |
| Shortcut does not respond | use /presets Open the menu, then use /keymap View actual binding |
| Cannot replace or delete after saving | Check whether the error says the preset comes from a configuration layer other than user configuration; inspect its source as instructed |
| Model preset will not run | Whether this account can still select that model, reasoning effort and speed tier |
| Drafts with images or linked mentions were not fully saved | This version does not copy images or linked mentions directly into text presets. Reorganize the input |
The official implicit shortcut is leader p, but it avoids existing keybindings and explicit configuration. Therefore, follow /keymap displayed Open Presets prevails. Do not treat one key combination as a universal shortcut across all terminals. Shortcut guide
Is an extra plan needed? Does it use less quota?
The official release notes describe /presets Released as a CLI feature, with no separate subscription listed for presets. Codex itself is included across ChatGPT plans, including Free and Go, but models and usage vary by account and plan. Saving a command does not unlock models unavailable to your account or increase usage.
Presets mainly save repeated typing. Actual tasks still consume usage according to model, context, reasoning effort, speed and tools. '10 slots' does not mean 10 free tasks. Official Codex access and usage guide
If you use multiple clients, continue reading How login and usage relate across Codex App, CLI, and IDE; if unsure whether you are using subscription or API billing, see Codex credits vs API balance.
Information verification
Verified on: October 25, 2026. This article is based on the official 0.164.0 release notes and corresponding source code. It does not include hands-on interaction tests, speed tests, or cost estimates. For menus, configuration, and options in later versions, follow the current client and official documentation.