Skip to content

TUI keyboard shortcuts ​

The TUI includes a conversation area, input box, sidebar, and status bar. The sidebar hides automatically when the terminal is 80 columns wide or narrower.

Focus and mode ​

ShortcutAreaAction
TabGlobalCycle focus between the conversation area, input box, and sidebar
Shift+TabGlobalSwitch between Agent and Plan modes
Up / DownConversation areaScroll conversation history
PgUp / PgDnConversation areaScroll one page
Ctrl+K / Ctrl+JConversation areaScroll one line
Ctrl+BGlobalShow or hide the right sidebar
Ctrl+OGlobalCycle tool detail display modes

Input box ​

ShortcutAction
EnterSend current message
Shift+Enter / Alt+Enter / Ctrl+JInsert newline
Ctrl+EnterInsert newline in terminals that support CSI u/modifyOtherKeys reporting; older terminals may be indistinguishable from Enter
Up / DownBrowse sent prompt history
Alt+K / Alt+JScroll multiline input one line at a time
Ctrl+VPaste

Conversation and changes ​

ShortcutAction
Ctrl+GOpen the Changes panel to view code changes generated in the current session
EscRequest cancellation while running; an active panel handles it first
Ctrl+CPress twice to quit; a copyable input selection takes priority
/Open the Slash command candidate list in an empty input box
@Select files, directories, or images at the start of a line or after whitespace

In the Changes panel, use s and i to switch views, and Tab to move between panes. See Review and track changes.

Tool approval ​

When the auto policy triggers approval, the following shortcut keys are available in the approval card:

ShortcutAction
↑ / kMove up option
↓ / jMove down option
EnterConfirm the selected option
y / 1Allow once
s / 2Allow for this session; similar operations are allowed automatically until the session ends
a / 3Always allow; persist the approval across sessions
n / Esc / 4Reject this call

Command palette ​

ShortcutAction
Ctrl+POpen the command palette
Left / RightNavigate between menu levels
EnterExecute selected item or enter submenu
EscClose all panel levels

For slash commands, see Slash commands.