Keybindings
Cody CLI supports keyboard shortcuts in interactive mode. All bindings are customizable.
Default Shortcuts
| Key | Action |
|---|---|
Enter | Submit message |
Shift+Enter | New line in input |
Ctrl+C | Interrupt current response |
Escape | Cancel / go back |
Up / Down | Navigate message history |
Ctrl+L | Clear screen |
Tab | Autocomplete 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. Common ones:
/help— Show help/clear— Clear conversation/model— Switch model/mcp— Manage MCP servers/memory— Manage memory/doctor— Run diagnostics/cost— Show token usage and cost