Keyboard shortcuts
This page lists the default shortcuts. To change a shortcut, open Settings → Keybindings. On macOS, the menu bar shows your own shortcuts: when you change one in Settings, the menu changes too.
On Windows and Linux, use Ctrl for ⌘, Alt for ⌥ and Shift for ⇧.
Go somewhere
| Shortcut | What it does |
|---|---|
| ⌘K | Open the command palette: go to a project or session, run a command, search messages. See Sidebar and navigation. |
| ⌘B | Show or hide the sidebar |
| ⌘[ | Go back to the previous project or session |
| ⌘] | Go forward |
| ⌘⌥→ | Next session tab |
| ⌘⌥← | Previous session tab |
| ⌘1 to ⌘9 | Session tabs. Hold ⌘ to see the numbers on the tabs. |
| ⌘, | Open Settings |
Sessions and worktrees
| Shortcut | What it does |
|---|---|
| ⌘T | New session |
| ⌘⇧T | Open the new session dialog |
| ⌘N | New worktree (not in a plain project) |
| ⌘W | Close the session or the worktree. Escape does not close a session. |
| ⌘⇧⌥T | Restore the item you archived last. See Archived items. |
In a session
| Shortcut | What it does |
|---|---|
| ⌘L | Put the cursor in the chat input |
| ⇧Tab | Switch the mode: Plan, Build, Yolo. See Agents and modes. |
| ⌘↵ | Approve the plan or answer the question |
| ⌘J | Add a note to the follow-up list |
| ⌘M | Open the Magic Menu |
| ⌘⇧B | Open the Files tab of the side panel |
| ⌘⇧G | Show or hide the Graph tab of the side panel. See Graphs and agents. |
| Ctrl⌘Z | Zen mode (macOS) |
Git and other apps
| Shortcut | What it does |
|---|---|
| ⌘G | Open the diff. See Review, commit, merge. |
4 in the diff | Open the Checkpoints tab. See Checkpoints. |
| ⌘⇧C | Open the commit dialog |
| ⌘R | Start or stop the run script of the worktree |
| ⌘O | Open Open In: the worktree in your editor, terminal or Finder |
C in Open In | Open the worktree in your git client. See Open in other apps. |