The best terminal for Claude Code
Claude Code runs in any terminal. A few terminal features make long agent sessions much easier to live with.
Claude Code works in any terminal with no setup, so the best terminal for Claude Code is the one that handles the side jobs well: entering multi-line prompts, telling you when the agent needs you, running several agents side by side, and letting you search and copy long output. Ghostty, kitty and iTerm2 get the most out of the box, because Claude Code recognises them and sends real desktop notifications. WezTerm and Lumen are strong picks if you want splits and scripting. The same advice applies to other terminal coding agents such as Codex CLI, Gemini CLI or Aider.
What matters in a terminal for Claude Code
Shift+Enter for new lines
Enter sends your prompt. Ctrl+J, or \ then Enter, adds a new line in every terminal. Shift+Enter is nicer, and according to Claude Code's terminal setup docs it works without setup in Ghostty, kitty, iTerm2, WezTerm, Warp, Apple Terminal and Windows Terminal, and in other terminals that support the kitty keyboard protocol (such as foot and Alacritty 0.16 or later) from Claude Code v2.1.269. For VS Code, Cursor, Zed and older Alacritty, you run /terminal-setup once and it writes a key binding for you. GNOME Terminal can't do it, so you use Ctrl+J there.
If you run Claude Code inside tmux, tmux needs extended-keys turned on before Shift+Enter gets through, even when the outer terminal supports it.
Option as Meta on macOS
Some Claude Code shortcuts use Option, such as Option+Enter and Option+P to switch models. Most Mac terminals don't send Option as a modifier by default. In Apple Terminal, tick "Use Option as Meta Key" (first-run /terminal-setup does this for you). In iTerm2, set the Option keys to "Esc+". Ghostty and kitty have an option-as-alt setting in their config files.
Knowing when the agent is waiting
This matters more than anything else once tasks take minutes. Claude Code sends a desktop notification itself in Ghostty, kitty and iTerm2 (iTerm2 after you turn on its alerts). In other terminals you either set preferredNotifChannel to "terminal_bell", or add a Notification hook in ~/.claude/settings.json that runs any command you like.
Splits for several agents
Running two or three agents on different tasks, with a shell beside them for tests and git, is common. Built-in splits mean no prefix keys and no extra config. Our split terminal guide compares how each terminal does it.
Scrollback, find and copy
Agents produce long output: diffs, test logs, plans. You want generous scrollback, fast find, and an easy way to copy a block of output back into the prompt. If the display flickers or scroll jumps, Claude Code's fullscreen mode (/tui fullscreen) moves scrolling inside Claude Code instead of your terminal's scrollback.
Readable long output
Good font rendering, 24-bit colour for diffs, and a theme with clear red and green make a real difference after an hour of reading changes.
The best terminals for Claude Code
Ghostty
Shift+Enter works, Claude Code sends desktop notifications to it directly, and over SSH you can forward those notifications to your local machine by setting preferredNotifChannel to "ghostty". Native splits and tabs. The easiest pick on macOS and Linux.
kitty
The same notification support as Ghostty, plus layouts for arranging agents and a remote-control API for scripting. Best if you like to configure your workspace precisely.
iTerm2
Mac only. Shift+Enter works, notifications work once you enable its alert settings, and /terminal-setup lets /copy reach your clipboard. Its tmux integration is handy if your agents run on a remote box inside tmux.
WezTerm
Shift+Enter works, it runs on Windows as well, and its multiplexer lets agent sessions on a remote host survive a dropped connection. No built-in Claude Code notifications, so add a hook.
Warp
Shift+Enter works. Warp has its own built-in agents, which some people want alongside Claude Code and others find gets in the way. Claude Code doesn't send it desktop notifications, so use a hook or the terminal bell.
Lumen
Our terminal; it has no built-in AI, and that's deliberate. What it adds for agent work is in the next section. It isn't on Claude Code's list of recognised terminals, so notifications for "Claude is waiting" need a hook. It's young, with one main author, and runs on Linux and macOS only.
Terminal comparison for Claude Code
| Terminal | Shift+Enter | Claude Code notifications | Built-in splits | Platforms |
|---|---|---|---|---|
| Ghostty | Works | Built in | Yes | macOS, Linux |
| kitty | Works | Built in | Yes | macOS, Linux |
| iTerm2 | Works | Built in, enable alerts | Yes | macOS |
| WezTerm | Works | Hook or bell | Yes | macOS, Linux, Windows |
| Warp | Works | Hook or bell | Yes | macOS, Linux, Windows |
| Lumen | Kitty keyboard protocol | Hook | Yes | macOS, Linux |
| Alacritty | 0.16 or later | Hook or bell | No (use tmux) | macOS, Linux, Windows |
| GNOME Terminal | No, use Ctrl+J | Hook or bell | No | Linux |
Using Lumen as a terminal for Claude Code
Lumen supports the kitty keyboard protocol, which is how Claude Code gets Shift+Enter in terminals it doesn't list by name. If Shift+Enter doesn't insert a new line for you, update Claude Code or use Ctrl+J. Lumen's docs don't describe an Option-as-Meta setting on macOS, so if Option shortcuts matter to you, Ghostty, kitty or iTerm2 are safer bets.
The rest of Lumen's features fit agent work:
- Splits: Ctrl+Shift+D and Ctrl+Shift+E on Linux, Cmd+D and Cmd+Shift+D on macOS. Focus Mode (Ctrl+Shift+Enter / Cmd+Shift+Enter) zooms one agent's pane when you need to read it. Session restore brings the layout and folders back next launch (not the running agents).
- Copy last output: with shell integration, Ctrl+Shift+O (Cmd+Shift+O) copies the last command's output. Run the failing test in a split, copy it, paste it into the agent.
- Find in scrollback with regex (Ctrl+Shift+F / Cmd+F), and keyboard select mode with vi keys.
- Long-command notifications: any shell command that runs at least
notify-afterseconds (default 10) notifies you when it finishes while you're looking elsewhere, and puts a green or red dot on its tab. That covers your builds and tests. For Claude Code's own "waiting for you" moments, which happen whileclaudeis still running, use a hook. - Scripting:
lumen msgcan badge tabs, send notifications, type into panes (send-text), read a pane's screen (read-screen) and stream events such aslumen msg watch command-finished. See the scripting docs.
For example, a Claude Code Notification hook that badges the tab when the agent needs you:
{
"hooks": {
"Notification": [
{ "hooks": [{ "type": "command",
"command": "lumen msg tab-style --badge waiting --color yellow" }] }
]
}
}
With read-screen a script, or another agent, can check what a dev server pane is printing, and watch command-finished gives you JSON such as {"event":"command-finished","command":"npm test","exit":0} to trigger the next step. If you'd rather package that as a palette command, see Lumen plugins.
How to choose
If you want notifications with zero setup, pick Ghostty or kitty (or iTerm2 on a Mac). If your agents run on a remote server, pair your terminal with tmux or use WezTerm's multiplexer so sessions survive disconnects; our tmux alternatives guide covers the trade-offs. If you want shell integration, splits and a scripting socket for orchestrating several agents locally, try Lumen. And if you use Neovim alongside the agent, check the keyboard protocol notes too.
Questions
What terminal does Claude Code work best in?
Claude Code works in any terminal. Ghostty, kitty and iTerm2 need the least setup, since Shift+Enter works and Claude Code sends them desktop notifications directly.
How do I make Shift+Enter add a new line in Claude Code?
In Ghostty, kitty, iTerm2, WezTerm, Warp, Apple Terminal and Windows Terminal it works already. In VS Code, Cursor, Zed or Alacritty before 0.16, run /terminal-setup once. Ctrl+J works everywhere.
Does Claude Code need a special terminal?
No. It runs in any terminal on macOS, Linux and Windows. A good terminal just makes long sessions nicer: notifications, splits, search and readable output.
How do I get notified when Claude Code finishes?
In Ghostty, kitty and iTerm2 Claude Code sends a desktop notification. Elsewhere, set preferredNotifChannel to "terminal_bell" or add a Notification hook in ~/.claude/settings.json.
Does Lumen have built-in AI?
No. Lumen is a plain terminal. It runs Claude Code and other agents like any other program, and its splits, shell integration and lumen msg scripting help you manage them.
Try Lumen
Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.