Skip to main content

Keybindings

Cody CLI supports keyboard shortcuts in interactive mode. All bindings are customizable.

Default Shortcuts

KeyAction
EnterSubmit message
Shift+EnterNew line in input
Ctrl+CInterrupt current response
EscapeCancel / go back
Up / DownNavigate message history
Ctrl+LClear screen
TabAutocomplete slash command

Customizing Keybindings

Edit ~/.cody/keybindings.json:

[
{
"key": "ctrl+s",
"command": "submit"
},
{
"key": "ctrl+k",
"command": "clearScreen"
}
]

Slash Commands

Type / in the input to see available slash commands:

CommandDescription
/helpShow help
/clearClear conversation
/modelSwitch model
/mcpManage MCP servers
/memoryManage memory
/doctorRun diagnostics
/costShow token usage and cost
/fastToggle fast mode
/reviewReview current changes
/initInitialize CODY.md