Skip to main content
Claude Code supports a full set of keyboard shortcuts for navigating the REPL efficiently. Run /help inside the REPL to see the current keybinding reference.

Default keybindings

Input & editing

KeyAction
EnterSend message
Shift+EnterInsert newline
Ctrl+CCancel current request or clear input
Ctrl+DExit Claude Code
Ctrl+LClear the screen
TabAccept autocomplete suggestion
Ctrl+ZUndo last input edit

History navigation

KeyAction
/ Navigate input history
Ctrl+RSearch input history

REPL navigation

KeyAction
Ctrl+POpen command palette / list available actions
EscCancel current operation

Multi-line input

KeyAction
Shift+EnterAdd a new line in the input box

Vim mode

Enable vim keybindings with /vim. In vim mode, the input prompt gains a modal interface:

Normal mode

KeyAction
h j k lMove cursor left/down/up/right
w bMove by word forward/backward
0 / $Go to start/end of line
gg / GGo to start/end of input
i / aEnter insert mode
AEnter insert mode at end of line
oOpen new line and enter insert mode
d dDelete current line
y yYank (copy) current line
pPaste
uUndo
Ctrl+RRedo
/Search within input
EscReturn to normal mode

Insert mode

Standard text input. Press Esc to return to normal mode.

Custom keybindings

Keybindings can be customized via /keybindings (if available on your version) or by editing the keybindings configuration file in ~/.claude/keybindings.json.
Press Ctrl+P at any time inside the Claude Code REPL to open the command palette and see all available actions with their current keybindings.

Build docs developers (and LLMs) love