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
| Shortcut | Area | Action |
|---|---|---|
Tab | Global | Cycle focus between the conversation area, input box, and sidebar |
Shift+Tab | Global | Switch between Agent and Plan modes |
Up / Down | Conversation area | Scroll conversation history |
PgUp / PgDn | Conversation area | Scroll one page |
Ctrl+K / Ctrl+J | Conversation area | Scroll one line |
Ctrl+B | Global | Show or hide the right sidebar |
Ctrl+O | Global | Cycle tool detail display modes |
Input box
| Shortcut | Action |
|---|---|
Enter | Send current message |
Shift+Enter / Alt+Enter / Ctrl+J | Insert newline |
Ctrl+Enter | Insert newline in terminals that support CSI u/modifyOtherKeys reporting; older terminals may be indistinguishable from Enter |
Up / Down | Browse sent prompt history |
Alt+K / Alt+J | Scroll multiline input one line at a time |
Ctrl+V | Paste |
Conversation and changes
| Shortcut | Action |
|---|---|
Ctrl+G | Open the Changes panel to view code changes generated in the current session |
Esc | Request cancellation while running; an active panel handles it first |
Ctrl+C | Press 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:
| Shortcut | Action |
|---|---|
↑ / k | Move up option |
↓ / j | Move down option |
Enter | Confirm the selected option |
y / 1 | Allow once |
s / 2 | Allow for this session; similar operations are allowed automatically until the session ends |
a / 3 | Always allow; persist the approval across sessions |
n / Esc / 4 | Reject this call |
Command palette
| Shortcut | Action |
|---|---|
Ctrl+P | Open the command palette |
Left / Right | Navigate between menu levels |
Enter | Execute selected item or enter submenu |
Esc | Close all panel levels |
For slash commands, see Slash commands.