# Best terminal for Claude Code on Mac, Linux and Windows

*The best terminal for Claude Code: Windows Terminal on Windows; Ghostty or Kitty on Mac, with no setup. Shift+Enter, /terminal-setup, notifications, tmux.*

Dmitriy Solodukha, checked 2026-11-18 · https://caprock.dev/guides/best-terminal-for-claude-code/

Claude Code runs in any terminal, but two need no setup at all: Ghostty and
Kitty. In both, Shift+Enter starts a new line and Claude Code sends desktop
notifications when it needs you; iTerm2 does the same once you turn on its
alert settings. WezTerm, Warp and Windows Terminal 1.25 or later handle
Shift+Enter too but need the terminal bell or a [notification hook](https://caprock.dev/guides/claude-code-notifications/); VS
Code, Cursor and Zed need `/terminal-setup` once. In any terminal, Ctrl+J
or `\` then Enter also makes a new line.

**In short**
- **No setup:** Ghostty or Kitty, on macOS and Linux.
- **iTerm2, on macOS:** Shift+Enter works; notifications after its alert settings.
- **On Windows:** Windows Terminal 1.25 or later; Shift+Enter works, notifications need the bell or a hook.
- **In VS Code, Cursor or Zed:** run `/terminal-setup` once; it writes the Shift+Enter key binding.
- **In tmux:** three lines in `~/.tmux.conf`, below.
- **Many sessions:** Caprock's free app is a terminal with a tab per session
  and the sessions waiting on you first, over a record of every agent on the
  machine.

## Open Claude Code in a terminal

Claude Code is a terminal program: there is no window to open, you start it
inside a terminal, in the folder you want it to work on. Open one: on macOS
press Cmd+Space, type Terminal and press Enter; on most Linux distributions
press Ctrl+Alt+T; on Windows press Win+X and pick Terminal or PowerShell.

1. Go to your project: `cd ~/my-project`
2. Start Claude Code and sign in on first run: `claude`

If the shell says `command not found: claude`, it is not installed or not on
your `PATH` yet: [how to install Claude Code](https://caprock.dev/guides/install-claude-code/).
Type `/help` for commands, Esc to interrupt, and `exit` to leave. To skip the
terminal entirely, Anthropic's [desktop app](https://caprock.dev/guides/claude-code-desktop-app/)
runs Claude Code in a window of its own.

## The best terminal for Claude Code: what each one supports

*Terminals and what Claude Code gets in each, from Anthropic's terminal docs and each terminal's own page, read 18 November 2026.*

| Terminal | Runs on | Shift+Enter | Notifications |
| --- | --- | --- | --- |
| Ghostty | macOS, Linux | yes | yes |
| Kitty | macOS, Linux | yes | yes |
| iTerm2 | macOS | yes | yes, after its alert settings |
| WezTerm | macOS, Linux, Windows | yes | bell or hook |
| Warp | macOS, Linux, Windows | yes | bell or hook |
| Apple Terminal | macOS | not in Anthropic's list — use Ctrl+J | bell or hook |
| Windows Terminal | Windows | 1.25 and later; before, use Ctrl+J | bell or hook |
| Alacritty | macOS, Linux, Windows | 0.16 and later; before, after setup | bell or hook |
| VS Code, Cursor, Zed | in the editor | after setup | bell or hook |
| GNOME Terminal, JetBrains IDEs | Linux; in the IDE | no — use Ctrl+J | bell or hook |
| Caprock app | macOS, Windows, Linux | yes | its own, for permission prompts |

*"After setup" means running `/terminal-setup` once, below. The Caprock row is from Caprock's own source, checked 18 November 2026. Shift+Enter needs Claude Code 2.1.269 or later in Alacritty 0.16 and other terminals that speak the kitty keyboard protocol, such as foot.*

The choice comes down to two things Claude Code does all day: you write
prompts of several lines, and it stops to ask you something while you are in
another window. A terminal that handles both without setup is the one with
the least friction; the rest get there with the steps below.

## Shift+Enter for a new line

Shift+Enter works with no setup in Ghostty, Kitty, iTerm2, WezTerm, Warp and
Windows Terminal 1.25 or later. In VS Code, Cursor, Devin Desktop, Zed and
Alacritty before 0.16 it works after `/terminal-setup`, next. In GNOME
Terminal, JetBrains IDEs and Windows Terminal before 1.25 it is not
available: use Ctrl+J, or `\` then Enter. Inside tmux it also needs the
tmux lines further down. You can rebind the keys with the `chat:newline`
and `chat:submit` keybindings.

## What /terminal-setup does in Claude Code

`/terminal-setup` is a command you type inside Claude Code, once per
terminal. In the terminals that need it, it writes a Shift+Enter key binding
into the terminal's own configuration file, so Shift+Enter starts a new line
instead of sending the prompt:

```
/terminal-setup
```

- **Terminals that need it:** VS Code, Cursor, Devin Desktop, Zed and
  Alacritty before 0.16.
- **Terminals that do not:** Ghostty, Kitty, iTerm2, WezTerm, Warp and
  Windows Terminal 1.25 or later; Alacritty 0.16 or later and foot with
  Claude Code 2.1.269 or later.
- **Where it cannot help:** GNOME Terminal, JetBrains IDEs and Windows
  Terminal before 1.25. Use Ctrl+J there.
- **Run it in the terminal itself,** not inside tmux or screen: it writes to
  the host terminal's configuration.
- **It keeps what you have.** Existing bindings stay. The first run prints a
  line such as "Installed VSCode terminal Shift+Enter key binding"; "already
  configured" means nothing changed.

It changes other settings too, and in Apple Terminal and iTerm2 only these:

- **VS Code, Cursor, Devin Desktop:** sets
  `terminal.integrated.gpuAcceleration` to `"off"`, against garbled text,
  and the mouse wheel's scroll sensitivity for full-screen mode. Set the
  first back to `"auto"` and reload the window to undo it.
- **Zed:** merges the binding into `keymap.json`, backing the file up
  first when it already holds bindings; if it cannot read or verify the file, it leaves it alone and prints
  the block to add yourself.
- **Apple Terminal:** turns on "Use Option as Meta Key" and turns off the
  audible bell. Claude Code's first-run setup prompt, if you accept it, runs
  it for you.
- **iTerm2:** lets terminal apps reach the clipboard, so `/copy` works;
  restart iTerm2 afterwards.

## Option as Meta on a Mac

Claude Code's Alt shortcuts need the Option key to send Meta:

- **Apple Terminal:** Settings → Profiles → Keyboard → "Use Option as Meta Key". `/terminal-setup` sets it for you and turns off the audible bell.
- **iTerm2:** Settings → Profiles → Keys → General, set Left and Right Option to "Esc+".
- **VS Code:** `"terminal.integrated.macOptionIsMeta": true`.

## Notifications when Claude needs you

Ghostty and Kitty show a desktop notification with no setup. iTerm2 shows it
once you turn on Settings → Profiles → Terminal → "Notification Center
Alerts" → "Filter Alerts" → "Send escape sequence-generated alerts". Over
SSH, set `preferredNotifChannel` to `"ghostty"`, `"kitty"` or
`"iterm2"`, your local terminal, on the machine that runs Claude Code, and
the notification reaches your own machine. In other terminals Claude Code
sends nothing by default (Apple Terminal gets at most a silent bell), so pick
the terminal bell or a hook in
`~/.claude/settings.json`:

```
{ "preferredNotifChannel": "terminal_bell" }
```

In Apple Terminal also turn on Settings → Profiles → Advanced → "Audible
bell" to hear it. A `Notification` hook can run any command as well, such
as a system notification or a sound.

## Claude Code in tmux

Add three lines to `~/.tmux.conf` and reload it with
`tmux source-file ~/.tmux.conf`. Passthrough lets notifications reach the
outer terminal; the two extended-keys lines make Shift+Enter work:

```
set -g allow-passthrough on
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
```

Then detach, attach again and restart Claude Code. For notifications also set
`preferredNotifChannel` to `"ghostty"`, `"kitty"` or `"iterm2"`, the
outer terminal; a pane in a window you are not viewing sends none.
Anthropic's sample has a fourth line, `set -g focus-events on`, which it
lists for images drawn by a mod.

## The best Windows terminal for Claude Code

Use Windows Terminal: it is free and MIT-licensed, Shift+Enter starts a new
line with no setup in version 1.25 or later (the stable release since
October 2026; in an older one use Ctrl+J), and notifications come once you
turn on the terminal bell or add a `Notification` hook, as above. WezTerm,
Warp, Alacritty and the Caprock app run on Windows too. Leaving Warp: [Warp
alternatives](https://caprock.dev/guides/warp-alternatives/).

Claude Code runs natively on Windows 10 1809 or later, in PowerShell or CMD,
and in WSL. Git for Windows is optional and gives Claude Code Git Bash for its
shell tool, otherwise it uses PowerShell. If Backspace deletes a whole word, set
`CLAUDE_CODE_BS_AS_CTRL_BACKSPACE=0`. Install steps:
[how to install Claude Code](https://caprock.dev/guides/install-claude-code/).

## Flicker, themes and long pastes

- **Flicker:** `/tui fullscreen` or `CLAUDE_CODE_NO_FLICKER=1` switches to
  full-screen rendering.
- **Theme:** `/theme`; "Auto" follows the terminal's light or dark background.
- **Vim keys:** `/config` → Editor mode, or `"editorMode": "vim"`.
- **Pastes** over 800 characters or three lines collapse to one line such as
  "[Pasted text #1 +120 lines]". The VS Code terminal can drop characters
  from a very large paste.
- **Status line:** a row of your choice under the prompt —
  [setting up the status line](https://caprock.dev/guides/claude-code-statusline/).

## Caprock: a terminal for many sessions

![The Caprock app with a Claude Code session on top and a shell split below it, in the same project](https://caprock.dev/shots/app-split.png)

*A session and a shell in one tab, split. The macOS app replaying a real Caprock work session.*

With several sessions open, the terminal stops being the problem; finding
the one that is waiting on you is. Anthropic's own desktop app is a window
for one agent, free with a plan. Caprock is a free desktop app for macOS,
Windows and Linux built on the record of every agent on the machine — the
sessions it did not start included, how close each subscription is to its
limit, each pull request's CI state and cost — and its terminal is how you
live with that record.

- **A tab per session.** **New agent** starts Claude Code, Codex, OpenCode,
  Gemini CLI, Cursor's CLI, Grok Build or Hermes Agent in a real terminal tab of its project,
  beside plain shells (⌘T). ⌘E and ⇧⌘E split a tab, up to four panes. Tabs
  come back when you reopen the app; closing one ends an idle agent, its
  conversation saved, and asks about one still working.
- **The keys Claude Code needs.** Shift+Enter, Option+Enter and Ctrl+J add a
  new line. ⌘F finds in the terminal; drop a file from Finder, Explorer or
  your file manager and its quoted path is typed at the prompt.
- **Scrolled up stays put.** New output never moves what you are reading; a
  "↓ N new lines" pill takes you back down.
- **What is waiting first.** Sessions stopped on a prompt or waiting for your
  answer lead the sidebar, ⌘J jumps to the next, and the Dock badge counts
  them.
- **The look.** Settings → **Terminal**: eleven colour palettes or *Match app*, the font, size,
  line height and cursor. The defaults match the JetBrains IDE terminal:
  JetBrains Mono, 13 px, line height 1.2.

It also works beside the terminal you already use:

- **Open in terminal:** a session's *Open in …* button opens it in your own
  terminal — Ghostty, iTerm2, WezTerm, kitty, Warp or Terminal.app on macOS;
  Ghostty, GNOME Terminal, Konsole, kitty, WezTerm, Alacritty or xterm on
  Linux; Windows Terminal, PowerShell or cmd on Windows.
- **Sessions from any terminal** appear in the app with their cost;
  it types only into the sessions it started.
- **In every terminal:** `caprock statusline install` puts the model,
  context, session cost and plan-limit windows under the prompt, and never
  replaces a status line you already have.

Free, open source; nothing leaves your machine unless you switch on a phone
or an alert.
[Install Caprock](https://caprock.dev/install/).

## Sources

- [Claude Code docs — Terminal guide for new users, read 18 November 2026](https://code.claude.com/docs/en/terminal-guide)
- [Claude Code docs — Configure your terminal for Claude Code, read 18 November 2026](https://code.claude.com/docs/en/terminal-config)
- [Claude Code docs — Interactive mode, read 18 November 2026](https://code.claude.com/docs/en/interactive-mode)
- [Claude Code docs — Advanced setup (Windows), read 18 November 2026](https://code.claude.com/docs/en/setup)
- [Claude Code docs — Customize your status line, read 18 November 2026](https://code.claude.com/docs/en/statusline)
- [Ghostty — download, read 18 November 2026](https://ghostty.org/download)
- [iTerm2 on GitHub, read 18 November 2026](https://github.com/gnachman/iTerm2)
- [WezTerm, read 18 November 2026](https://wezterm.org)
- [kitty, read 18 November 2026](https://sw.kovidgoyal.net/kitty/)
- [Alacritty on GitHub, read 18 November 2026](https://github.com/alacritty/alacritty)
- [Windows Terminal on GitHub: MIT; 1.25 is the stable release since 2 October 2026, read 18 November 2026](https://github.com/microsoft/terminal)
- [Warp pricing (Free; Build $20 a month, $18 billed yearly), read 18 November 2026](https://www.warp.dev/pricing)
- [Warp on GitHub — the client is open source, AGPL-3.0, read 18 November 2026](https://github.com/warpdotdev/warp)
- [Caprock source — terminals it opens sessions in (internal/nativeterm/nativeterm.go)](https://github.com/dspv/caprock/blob/master/internal/nativeterm/nativeterm.go)
- [Caprock source — status line (internal/statusline/statusline.go)](https://github.com/dspv/caprock/blob/master/internal/statusline/statusline.go)
- [Caprock docs — the app's terminal: tabs, split panes, find, drop a file, terminal look (docs/app.md)](https://github.com/dspv/caprock/blob/master/docs/app.md)
- [Caprock source — Shift+Enter, Option+Enter and Ctrl+J send a new line (ui/src/lib/xtermInput.ts)](https://github.com/dspv/caprock/blob/master/ui/src/lib/xtermInput.ts)
