brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Option+P switches the Claude Code model without losing your prompt

Claude
~/tips/tip-claude-option-p-switch-model

Option+P macOS

Opens the model picker in the middle of typing, and your draft stays where it is.

You’ve typed half a prompt and decide this one needs the bigger model. Typing /model means clearing what you wrote first.

Option+P   macOS
Alt+P      Windows and Linux

This opens the model picker while your text stays in the input. Pick a model, and you’re back at your draft with the cursor where you left it. Then send the prompt to the new model.

On macOS there is a setup step, because most terminals don’t send Option as a modifier. In Terminal.app, check “Use Option as Meta Key” under Settings, Profiles, Keyboard. In iTerm2, set the Option keys to Esc+ under Profiles, Keys. In the VS Code terminal it is the terminal.integrated.macOptionIsMeta setting. The neighbour Option+T for thinking is an exception and works without it.

Each model has its own prompt cache, so the first request after a switch reads the whole conversation again without the cache. In a long session that makes the next answer slower and more expensive. My advice: switch early in a session, or before a single heavy question, rather than back and forth every few turns.

Further reading: Interactive mode: keyboard shortcuts, Enable Option key shortcuts on macOS

More Claude tips /recap /focus /skill-doctor /autocompact 500k claude purge ~/work/my-repo --dry-run All Claude tips (83) All topics

Link