Claude Code in Ghostty: Setup and Config Guide (2026)
Claude Code Ghostty setup for 2026: the exact config for Option keys, themes, scrollback, splits, notifications and tmux, plus what Ghostty does not do.
Claude Code works in Ghostty with no setup at all: Shift+Enter inserts a newline, and Claude Code sends native desktop notifications when it finishes or needs permission. To get the most out of it, you only need a few lines in Ghostty's config file: turn on macos-option-as-alt so Option shortcuts work, pick a font and theme that read well during long sessions, and add split keybindings so you can run more than one agent side by side. This guide walks through each step with the exact config.
Everything below is current for Ghostty 1.3 (March 2026) and the Claude Code docs as of October 2026.
What works out of the box
| Feature | Status in Ghostty | Setup needed |
|---|---|---|
| Shift+Enter for newline | Works | None |
| Desktop notifications from Claude Code | Works (sent by default) | Allow notifications for Ghostty in macOS settings |
| Option key shortcuts (Option+P, Option+Enter) | Off by default | macos-option-as-alt = true |
| 24-bit color and Claude Code themes | Works | Optional theme pairing |
| Notifications over SSH | Forwarded to your Mac | None |
| Inside tmux | Needs tmux config | allow-passthrough and extended keys |
Ghostty is one of three terminals (with Kitty and iTerm2) where Claude Code sends a desktop notification by default, according to the Claude Code terminal configuration docs. That is the single most useful thing a terminal can do for agent work, and Ghostty does it without asking.
Step 1: Find your config file
Ghostty reads a plain text file named config.ghostty (older versions used a file named just config, which still works). On macOS it looks in two places:
~/.config/ghostty/config.ghostty~/Library/Application Support/com.mitchellh.ghostty/config.ghostty
The second location loads after the first, so it wins if both set the same key. Pick one and stick with it. After editing, reload with Cmd+Shift+, (comma). Some settings only apply to new windows.
Step 2: The Claude Code config block
Here is a starting config. Each line is explained below.
# Option key sends Alt, so Claude Code Option shortcuts work
macos-option-as-alt = true
# Readable font for long sessions
font-family = JetBrains Mono
font-size = 14
# Follow macOS light and dark mode
theme = light:Catppuccin Latte,dark:Catppuccin Frappe
# Keep plenty of history for long agent transcripts
scrollback-limit = 50000000
# Splits for running agents side by side
keybind = cmd+d=new_split:right
keybind = cmd+shift+d=new_split:down
# Drop-down terminal from anywhere
keybind = global:cmd+grave_accent=toggle_quick_terminal
Option as Alt
Claude Code has shortcuts that use Option, such as Option+P to switch models and Option+Enter for a newline. macOS terminals do not send Option as a modifier by default. macos-option-as-alt = true fixes that. You can also set it to left or right if you want to keep one Option key for typing special characters.
Font and theme
Any monospace font works. Ghostty enables ligatures by default; if you dislike them in diffs, you can turn them off with font-feature = -calt. The light: and dark: theme syntax switches Ghostty's colors with your macOS appearance. Run ghostty +list-themes to browse the built-in themes. Inside Claude Code, run /theme and choose the auto option so Claude Code's own colors follow the terminal's background too. For font picks, see our best monospace fonts for Claude Code.
Scrollback
scrollback-limit is measured in bytes, not lines. Claude Code sessions produce a lot of output, and the 50 MB value above keeps plenty of history so you can scroll back through a long run. Ghostty 1.3 also added scrollback search with Cmd+F, which is useful for finding a specific tool call or error.
Splits and the Quick Terminal
Splits let you run two or three Claude Code sessions in one window, for example one per git worktree. The global keybind opens Ghostty's Quick Terminal, a drop-down window, from any app. Global keybinds require granting Ghostty accessibility permission in macOS settings.
Step 3: Notifications
Claude Code fires a notification when it finishes a task or stops for a permission prompt while you appear to be away. In Ghostty these arrive as normal macOS notifications. If you see nothing:
- Open System Settings, Notifications, Ghostty, and allow notifications.
- If you run Claude Code inside tmux, enable passthrough (next step).
Ghostty 1.3 also added notify-on-command-finish, which alerts you when any shell command finishes. That is useful for builds, but it fires when the claude process exits, not when Claude finishes a turn, so it does not replace Claude Code's own notifications. Our Claude Code notifications guide covers hooks if you want a sound or a custom script on top.
Step 4: If you use tmux
Inside tmux, Shift+Enter submits instead of adding a newline, and notifications get swallowed. Add this to ~/.tmux.conf, then run tmux source-file ~/.tmux.conf:
set -g allow-passthrough on
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
What Ghostty does not do
Ghostty is deliberately "just a terminal." It does not know which split holds an agent that is waiting on you; it only knows a notification arrived. It has no widgets, no session list, and no visual skin system beyond color themes. That is the right call for a fast, native terminal, and most people should be happy with it.
If you regularly run five or ten agent sessions, that is where a purpose-built shell helps. MOLTamp is a macOS terminal shell for Claude Code with up to 50 tabs, attention badges that flag the tab that needs you or just finished, session monitoring, search, and a customizable status line. It is Electron-based, so it is heavier than Ghostty. Many people keep Ghostty for general shell work and use MOLTamp for agent sessions. Our best terminal for Claude Code guide compares both, and Ghostty vs iTerm2 is worth a read if you are still choosing.
Verdict
Ghostty is one of the best plain terminals for Claude Code in 2026. It gets notifications and Shift+Enter right by default, and the only must-have config line is macos-option-as-alt = true. Add a theme pair, a bigger scrollback, and split keybindings, and you are done in five minutes.
FAQ
Does Claude Code work in Ghostty?
Yes, with no setup. Shift+Enter inserts a newline, and Claude Code sends desktop notifications in Ghostty by default. Enable macos-option-as-alt for Option key shortcuts.
Do I need to run /terminal-setup in Ghostty?
No. /terminal-setup is for terminals that need a Shift+Enter keybinding written to their config, such as VS Code, Cursor, and Zed. Ghostty handles Shift+Enter natively.
Why don't I get Claude Code notifications in Ghostty?
Check that Ghostty is allowed to send notifications in macOS System Settings. If you run Claude Code inside tmux, add set -g allow-passthrough on to your tmux config so the notification reaches Ghostty.
Where is the Ghostty config file on Mac?
Ghostty reads config.ghostty from ~/.config/ghostty/ and from ~/Library/Application Support/com.mitchellh.ghostty/. The second location overrides the first. Reload with Cmd+Shift+comma.
Is there a terminal with more built-in support for Claude Code than Ghostty? Ghostty runs Claude Code very well but treats it like any other program. MOLTamp adds per-tab attention badges, session monitoring, and skins for agent-heavy workflows. It is free to use, and a one-time $10 license removes a recurring popup. You can download MOLTamp and run it next to Ghostty.