Skip to main content

Input Shortcuts

These shortcuts work while typing at the prompt.
ShortcutDescription
EnterSubmit your message
Shift+Enter* or Alt+EnterInsert a newline (for multi-line input)
Shift+TabCycle between modes (Normal, Accept Edits, Plan, Bypass, Autonomous)
Ctrl+CCancel current input (clears text), or cancel running agent
Ctrl+DExit (when input is empty)
EscCancel running agent
Ctrl+GOpen external editor for composing your message
Ctrl+ROpen fuzzy search over previous prompts and insert the selected prompt
Ctrl+OOpen full-screen viewer for the thinking trace
Ctrl+LRedraw / refresh the screen
Ctrl+V or Shift+InsertPaste from clipboard (images appear in input area; use Left/Right to navigate, Backspace to remove)
!Enter bash mode to run a shell command directly (when input is empty). Press Backspace or Esc on an empty input to exit bash mode
@Open file/directory autocomplete to add context
On macOS, Alt is the Option key. Some shortcuts below use Alt (Option) as a modifier. We recommend configuring Option as Meta for the best experience.
* Requires a compatible terminal. Terminals that do not support the Kitty keyboard protocol cannot distinguish Shift+Enter from Enter. Use Alt+Enter or Ctrl+J instead.

Mode & Model Shortcuts

ShortcutDescription
Shift+TabCycle to the next mode (Normal → Accept Edits → Plan → Bypass → Autonomous → Normal)
Alt+T (macOS: Opt+T)Cycle thinking level for the current model
You can also switch modes with slash commands: /normal, /plan, /bypass, or /mode <name>. Use /ask <question> as a oneshot command to ask questions without switching modes.

Text Editing

The input uses readline-style or Emacs-style keybindings for text editing.