Add a keybinding to cycle configured models

Open 💬 11 comments Opened Jul 9, 2026 by PaulRBerg

What variant of Codex are you using?

CLI

What feature would you like to see?

Add a TUI action and keybinding for cycling through a configured shortlist of models without leaving the current session.

Codex already lets me cycle reasoning effort with Shift+Up and Shift+Down. Model selection is becoming similarly granular: with the 5.6 family, I may want to move frequently between variants such as gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna, depending on the task. Opening /model and navigating the picker every time adds friction.

Ideally, config.toml could define the cycle explicitly, with a configurable keybinding for next/previous model. For example:

[tui.model_cycle]
models = ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"]
next = "..."
previous = "..."

The exact config shape isn't important. The useful behavior is a fast, state-preserving next/previous model action, analogous to reasoning-effort cycling, restricted to models the user actually wants in the rotation.

Additional information

The current workaround is /model, or separate launch profiles with a different model value. Profiles don't help when switching within an active conversation, and the picker is heavier than a dedicated cycle action.

View original on GitHub ↗

11 Comments

0xabrar · 1 month ago

+1 to this. only addition I’d prefer next_model and previous_model to cycle through the models already available in the current session. Those are currently configurable so don't think an extra config option is necessary.

tonisives · 1 month ago

As a temporary solution you can use keystroke macros to achieve this. Simulate /model + enter + 3 + 2 to choose specific model and effort.

I used Hammerspoon, but you could use others like Keyboard Maestro or possibly Automator

https://github.com/user-attachments/assets/54d1cf54-8f91-434b-b202-86fb7c02b3fb

macro source code

PaulRBerg · 1 month ago

That's a cool idea @tonisives, but does that solution work even when there is text written in the input?

Keybindings are most useful when I type something and then I realize I need a different model/thinking effort.

tonisives · 1 month ago

Yeah wont work if you have text in the field. This macro just simulates what you would write manually. And it exposes a general model selection inconvenience - you need to delete the input to change the model. I currently manually copy > delete > change model > paste. Not ideal.

For quick model selection we need a native solution with shortcuts or an IPC command to do it with a macro.

a3ylf · 1 month ago

yeah, i really need this, i wanna use smtg like Alt+C to change between luna and sol, hope this get worked on

PaulRBerg · 1 month ago

@a3ylf make sure to thumbs up the original issue, that's how they prioritize issues

Yoshida-Taisei · 1 month ago

yeah, I often realize mid-prompt that I'd rather use Luna or Sol for the task.

Being able to switch models with a single shortcut, without opening the model picker or losing the current input, would be a huge improvement.

PaulRBerg · 1 month ago
I often realize mid-prompt that I'd rather use Luna or Sol for the task

We all do

songce74 · 11 days ago

They should really consider adding this

killgavin · 11 days ago

I’d like to +1 this request from the perspective of frequent model switching in the CLI.

The current Shift+Up / Shift+Down shortcut for cycling reasoning effort is exactly the kind of interaction I would like for model switching as well: one keystroke to move to the previous/next model without opening /model.

Since Shift+Up / Shift+Down are already used for reasoning effort, a separate pair such as Shift+Left / Shift+Right (or configurable keybindings) would work well.

A typical workflow is switching frequently between models such as gpt-5.6-luna, gpt-5.6-terra, and gpt-5.6-sol depending on task complexity. Opening /model each time adds unnecessary friction, while a previous/next model shortcut would make model routing much more practical during an active session.

PaulRBerg · 10 days ago
A typical workflow is switching frequently between models such as gpt-5.6-luna, gpt-5.6-terra, and gpt-5.6-sol depending on task complexity

Exactly. I find myself needing to do that all the time. I've resorted to some shell aliases like c_l and c_t for opening Codex with Luna and Terra, but a keybinding would be so much better UX.