Add a keybinding to cycle configured models

Open 💬 6 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 ↗

6 Comments

0xabrar · 11 days 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 · 9 days 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 · 9 days 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 · 9 days 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 · 9 days 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 · 9 days ago

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