---
title: "Keybindings"
description: "Keyboard shortcuts for Cody CLI and how to customize them"
canonical: "https://docs.ainative.studio/docs/cody-cli/keybindings"
last-updated: "2026-10-22T17:48:46.689Z"
---

# Keybindings

Source: https://docs.ainative.studio/docs/cody-cli/keybindings

> Keyboard shortcuts for Cody CLI and how to customize them

# 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`:

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

## Slash Commands

Type `/` in the input to see available slash commands:

| Command | Description |
|---------|-------------|
| `/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 |
| `/fast` | Toggle fast mode |
| `/review` | Review current changes |
| `/init` | Initialize CODY.md |
