[FEATURE] Keyboard shortcut to switch models while composing prompt
Resolved 💬 14 comments Opened Jan 24, 2026 by PaulRBerg Closed Jun 18, 2026
What feature would you like to see?
A keyboard shortcut to switch between Codex 5.2 models (Low, Medium, High, Xhigh) while composing a prompt in the input area.
Use case: I often start writing a prompt and then realize mid-composition that I want to use a smarter model for a complex task, or a faster/cheaper model for a simple one. Currently, there's no way to switch models without abandoning the prompt or using the menu.
Suggested implementation:
A keybinding like Ctrl+M to cycle through available models
This would improve the workflow for users who frequently switch between models based on task complexity.
Additional information
Codex v0.89.0
14 Comments
Couldn't agree more. Claude code, Opencode pretty much all of them have this.
This would be great because sometimes I will want to swap between multiple models within a session.
Or smarter model to plan, medium model to execute, faster model to QA.
Even better would be setting up rules on which model to use and when so I don't have to swap by hand
This would also be helpful in the macOS app
I would like a separate keymap for changing thinking levels. On open code this is ctrl+t. they also have ctrl+x m for opening the model selection
This feels like the narrower keyboard-control seam under #14356.
That issue broadens the ask in three ways that seem worth keeping tied together:
[◉···] [◉◉··] [◉◉◉·] [◉◉◉◉]In practice I think the control surface wants to feel like a fast cockpit lever, not something that requires walking back through
/modelsconstantly.I would like to toggle between spark and whichever model I was already running
alt + p -> Claude Code could switch.
If you add the following to
~/.codex/config.tomlit will[tui.keymap]
chat.decrease_reasoning_effort = "alt-d"
chat.increase_reasoning_effort = "alt-i"
global.toggle_fast_mode = "alt-f"
editor.delete_forward_word = ["alt-delete", "ctrl-delete", "ctrl-shift-delete"]
editor.move_word_right = ["alt-right", "ctrl-right"]
Thanks for the idea @NerdyPunkDad - custom keybindings are a great workaround in the interim.
There's a typo in your comment in the 2nd bullet point - I think you meant to write
alt-d.I'm not sure I understand why we need this. Can you explain? Why do they conflict with
alt-iandalt-dandalt-f?edit: I figured it out:
```
tomlalt-d[tui.keymap]
chat.decrease_reasoning_effort = "alt-d"
chat.increase_reasoning_effort = "alt-i"
global.toggle_fast_mode = "alt-f"
# need to set this because
is by default set todelete_forward_wordalt-feditor.delete_forward_word = ["alt-delete", "ctrl-delete", "ctrl-shift-delete"]
# need to set because
is by default set tomove_word_right`editor.move_word_right = [
"alt-right",
"ctrl-right",
]
````
I've modified @NerdyPunkDad's keymaps to use
alt-minusandalt-=(note: on Macs at least,=is on the same key as+, but+requires a shift; I decided to stick with=for simplicity), which I find a little more intuitive and easier to remember. And they also solve the issue of having to overrideeditor.delete_forward_wordbecausealt-minusandalt-=do not bind to anything by default.````toml
[tui.keymap]
chat.decrease_reasoning_effort = "alt-minus"
chat.increase_reasoning_effort = ["alt-="]
global.toggle_fast_mode = "alt-f"
# need to set because
alt-fis by default set tomove_word_righteditor.move_word_right = [
"alt-right",
"ctrl-right",
]
````
shift + upandshift + downare the default keymaps to increase and decrease reasoning effort respectively. also you can do /keymap to check the existing keymaps. #9807 and #10155 these issues can be closed now.@frhanjav that's great news. In which Codex CLI version did they add keybindings for increasing/decreasing effort level?
Yeah, I found it the keyboard shortcuts you provide works
Paul Berg @.***>于2026年6月14日 周日23:45写道:
Yeah, I can confirm that <kbd>SHIFT+↑</kbd> and <kbd>SHIFT+↓</kbd> work now.
Closing this issue.