Documentation Navigation
configure

Custom Keybinds & Shortcuts

Modify the default keyboard combinations used to drive the Terminal UI to match your editor habits.

#Default Mappings

All shortcut commands are preceded by the leader key, which is Ctrl+x by default.

Command NameDefault MappingAction
switch_agentTabCycles through primary agents
new_sessionctrl+x nStarts a new chat thread
undoctrl+x uReverts last action and git file changes
exitctrl+x qExits the TUI app

#Customizing the Leader Key

You can change the leader key and specific mappings in your codey.json:

json
{
  "keybinds": {
    "leader": "ctrl-a",
    "mappings": {
      "new_session": "ctrl-a n",
      "exit": "ctrl-a x"
    }
  }
}