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. 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