How to Set Up Ghostty for Fast Development (Complete Guide)
Set up Ghostty terminal for a fast AI-assisted dev workflow. GPU-accelerated, under 500 MB RAM, pairs with Claude Code CLI.
Last updated: March 5, 2026
Install Ghostty from ghostty.org, create your config at ~/.config/ghostty/config with plain key-value pairs, and pair it with Claude Code CLI for the fastest AI coding workflow available. Ghostty uses GPU-accelerated rendering and under 500 MB of RAM for multiple projects — compared to 8 GB in VS Code. It is free, open-source (MIT license), and has 45K+ GitHub stars.
Two VS Code windows ate 8 GB of RAM. The same projects in Ghostty used under 500 MB.
That is not an estimate. Developer Mejba Ahmed benchmarked the exact scenario: two projects running Claude Code in VS Code versus the same two projects in Ghostty tabs. VS Code hit 8 GB of RAM, introduced input lag, and kept the fans running. Ghostty stayed under 500 MB with instant keystroke response and a silent machine.
The difference comes down to architecture. VS Code is an Electron app — a full Chromium browser rendering your editor. Ghostty is a GPU-accelerated terminal emulator built with platform-native UI by Mitchell Hashimoto, the co-founder of HashiCorp and creator of Terraform and Vagrant. It does one thing — render terminal output — and it does it with hardware acceleration.
When your primary coding tool is an AI CLI agent like Claude Code, you do not need a full IDE. You need a fast terminal. This guide walks through the complete setup.
Why Ghostty Is the Fastest Terminal for AI-Assisted Development
The shift from IDE-based AI tools (Copilot, Cursor) to CLI-based AI agents (Claude Code, Aider, Codex) changes what developers need from their terminal. The terminal becomes the primary interface, not a secondary panel.
Ghostty’s advantages for this workflow:
- GPU-accelerated rendering — Large AI outputs (code generation, diffs, logs) render without stuttering. The GPU handles text rendering instead of the CPU, keeping the system responsive during heavy output.
- Minimal RAM footprint — Under 500 MB for multiple projects versus 8 GB in VS Code (mejba.me benchmark). This leaves more memory available for the AI tools themselves.
- Platform-native UI — On macOS, Ghostty uses AppKit and Metal. On Linux, it uses GTK4. No Electron overhead. Tabs look and behave like native Safari or Finder tabs.
- Optimized scrollback buffer — AI coding agents produce large volumes of output. Ghostty’s scrollback handling keeps long log output smooth rather than choking on thousands of lines.
- Free and open-source — MIT license, 45K+ GitHub stars, no paid tiers or telemetry.
For a complete reference of every keybinding, see our Ghostty keyboard shortcuts cheat sheet.
Setting Up Ghostty From Scratch
Step 1: Install Ghostty
macOS — Download the .dmg from ghostty.org/download and drag it to Applications. Alternatively, install via Homebrew:
brew install --cask ghostty
Linux — Install from your distribution’s package manager or build from source following the official instructions. Ghostty is available in Arch (AUR), NixOS, and Flatpak repositories.
Launch Ghostty after installation. It works out of the box with sensible defaults — no configuration required to start.
Step 2: Create Your Config File
Ghostty’s configuration uses plain-text key-value pairs. No JSON, no YAML, no TOML. One setting per line.
mkdir -p ~/.config/ghostty
touch ~/.config/ghostty/config
Or open the config directly from Ghostty with Cmd+Comma (macOS) or Ctrl+Comma (Linux). Paste this starter configuration optimized for development:
# Font
font-family = JetBrains Mono
font-size = 14
# Theme
theme = catppuccin-mocha
# Window
window-padding-x = 8
window-padding-y = 4
window-decoration = auto
macos-titlebar-style = tabs
# Performance — key for AI coding workflows
scrollback-limit = 100000
cursor-style = block
# Quick Terminal — global overlay
keybind = global:cmd+grave_accent=toggle_quick_terminal
Save the file and press Cmd+Shift+Comma to reload the config instantly — no restart needed.
Step 3: Master the Split Workflow
Splits are how you run multiple terminal sessions in a single window. For AI-assisted development, the typical layout is one split running Claude Code and another split for manual commands (git, tests, server logs).
| Action | macOS | Linux |
|---|---|---|
| Split right (vertical) | Cmd+D | Ctrl+Shift+O |
| Split down (horizontal) | Cmd+Shift+D | Ctrl+Shift+E |
| Navigate between splits | Cmd+Option+Arrow | Ctrl+Alt+Arrow |
| Toggle split zoom | Cmd+Shift+Enter | Ctrl+Shift+Enter |
| Close split | Cmd+W | Ctrl+Shift+W |
Toggle split zoom is the most underused shortcut. Press it to temporarily maximize one split to full-window size while Claude Code generates a long response, then press it again to restore your layout.
Step 4: Set Up Quick Terminal
Quick Terminal gives you a global hotkey to summon a terminal overlay from any application. This is the fastest way to fire off a quick command without switching windows.
If you added the config line from Step 2, press Cmd+` (backtick) from any app. On first use, macOS will prompt you to grant accessibility permissions in System Settings > Privacy & Security > Accessibility.
Step 5: Install Claude Code CLI
With Ghostty running, install the AI coding agent that pairs best with a terminal-first workflow:
npm install -g @anthropic-ai/claude-code
Navigate to your project directory and run:
claude
Claude Code now runs inside Ghostty. You get the full AI coding experience — file editing, codebase search, git operations, test execution — with under 500 MB of RAM instead of 8 GB.
The Power Stack: Ghostty + tmux + Starship + AI Tools
A bare terminal is fast. A configured terminal is fast and productive. Here is the full stack that pairs with Ghostty for maximum development speed.
tmux — Session Persistence
tmux keeps your terminal sessions alive if Ghostty closes or crashes. It also enables advanced layouts and remote session management.
brew install tmux
Add to your ~/.tmux.conf:
# True color support for Ghostty
set -g default-terminal "xterm-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Mouse support
set -g mouse on
# Sane split keybindings
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
When to use tmux vs Ghostty splits: Use Ghostty’s native splits for quick local workflows. Use tmux when you need session persistence, remote SSH sessions, or complex scripted layouts.
Starship — Fast Prompt
Starship is a cross-shell prompt written in Rust. It shows git branch, language versions, and command duration without slowing down your prompt rendering.
brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
zsh Plugins — Productivity
Add these high-value zsh plugins via your plugin manager (zinit, oh-my-zsh, or antigen):
- zsh-autosuggestions — Suggests commands as you type based on history
- zsh-syntax-highlighting — Colors valid commands green and invalid ones red
- zsh-z — Jump to frequently visited directories with
z project-name
The Complete Workflow
With the full stack configured, a typical AI development session looks like this:
- Press
Cmd+`— Quick Terminal drops down from any app z myproject— Jump to the project directory instantlyCmd+D— Split the terminal vertically- Left split:
claude— Start Claude Code for AI-assisted development - Right split:
npm run dev— Run the dev server Cmd+Shift+Enter— Zoom into Claude Code split when reviewing large diffsCmd+Shift+Enteragain — Restore the split layout
Total RAM usage: under 500 MB. Total time from idea to coding: 5 seconds.
Ghostty vs iTerm2 vs Warp vs Alacritty
| Feature | Ghostty | iTerm2 | Warp | Alacritty |
|---|---|---|---|---|
| Price | Free (MIT) | Free | Free (AI features paid) | Free (MIT) |
| GPU accelerated | Yes | No | Yes | Yes |
| Native UI | Yes (AppKit/GTK4) | Yes (macOS only) | Custom UI | No (own renderer) |
| Built-in splits | Yes | Yes | Yes | No |
| Built-in tabs | Yes (native) | Yes | Yes | No |
| Quick Terminal | Yes | Yes (hotkey window) | No | No |
| Config format | Plain key-value | GUI + plist | GUI | TOML |
| Platform | macOS + Linux | macOS only | macOS + Linux | macOS + Linux + Windows |
| AI features | None (pairs with CLI) | None | Built-in AI | None |
| RAM (2 projects) | ~500 MB | ~800 MB | ~1.2 GB | ~300 MB |
| GitHub stars | 45K+ | 15K+ | 22K+ | 57K+ |
The key difference: Warp bundles its own AI features inside the terminal, while Ghostty stays minimal and lets you choose your own AI tool. For developers already using Claude Code or another CLI agent, Ghostty’s approach means less overhead and no feature conflict. For the differences between AI models powering these tools, see our detailed comparison.
Alacritty uses the least RAM but lacks built-in splits and tabs — you must use tmux for everything. Ghostty hits the practical sweet spot: native splits and tabs with near-Alacritty performance.
Essential Config Tweaks for Development
Beyond the starter config, these settings solve specific developer pain points:
# Increase scrollback for large AI outputs
scrollback-limit = 100000
# Clickable URLs — open links from terminal output
link-url = true
# Shell integration — enables prompt jumping (Cmd+Up/Down)
shell-integration = detect
# Clipboard — allow programs to read/write clipboard
clipboard-read = allow
clipboard-write = allow
clipboard-paste-protection = false
# Bold is bright (matches most terminal themes)
bold-is-bright = true
Prompt jumping (Cmd+Up / Cmd+Down) is particularly useful with Claude Code. After a long AI response, press Cmd+Up to jump back to your previous prompt instead of scrolling manually through hundreds of lines of output.
For the complete list of keyboard shortcuts including scrollback, font sizing, and inspector tools, see the Ghostty keyboard shortcuts cheat sheet.
Methodology
This guide was built from direct testing of Ghostty with Claude Code CLI, validated against performance benchmarks from mejba.me, configuration documentation from ghostty.org, and integration guides from Eric Abell’s Ghostty workflow. GitHub stars and release information sourced from the official repository. All config syntax verified against Ghostty’s official documentation as of March 5, 2026.
Ghostty’s 1.3.0 stable release is targeted for March 2026 and will include built-in terminal search — the most-requested missing feature. Pricing for all tools mentioned in this guide was verified on the dates listed above.
For related guides: Ghostty keyboard shortcuts cheat sheet (every keybinding reference), How to build an AI content workflow (AI-powered productivity), and ChatGPT vs Claude vs Gemini (choosing the right AI model for coding).
Get the AI tools briefing
Weekly briefing: best tools, honest comparisons, workflow automations. No sponsor influence.
No spam, ever. Unsubscribe anytime.
Frequently Asked Questions
Is Ghostty really faster than VS Code for AI coding?
Yes. In direct benchmarks, two VS Code windows running Claude Code consumed 8 GB of RAM with noticeable input lag and active fans. The same two projects running in Ghostty tabs used under 500 MB of RAM with instant keystroke response and silent fans. Ghostty's GPU-accelerated rendering and minimal resource footprint make it measurably faster for AI-assisted development workflows where the terminal is your primary interface.
Where is the Ghostty config file and what format does it use?
The Ghostty configuration file is located at ~/.config/ghostty/config on both macOS and Linux. It uses plain-text key-value pairs — no JSON, YAML, or TOML syntax required. Each setting goes on its own line in the format key = value. If the file does not exist, create the directory and file manually and Ghostty will use it on next launch. Open it directly from Ghostty with Cmd+Comma on macOS or Ctrl+Comma on Linux.
Does Ghostty work on Windows?
No. As of March 2026, Ghostty supports macOS and Linux only. Windows support is not yet available. If you need a GPU-accelerated terminal on Windows, alternatives include Alacritty (cross-platform, Rust-based) and Windows Terminal (Microsoft's built-in option). Ghostty's 1.3.0 stable release is targeted for March 2026 and focuses on features like built-in search, but Windows support has no announced timeline.
What is Ghostty Quick Terminal and how do I enable it?
Quick Terminal is a global hotkey that summons a terminal overlay from the top of your screen — similar to iTerm2's hotkey window or Guake on Linux. To enable it, add keybind = global:cmd+grave_accent=toggle_quick_terminal to your Ghostty config file. You will need to grant Ghostty accessibility permissions in System Settings > Privacy & Security > Accessibility on macOS. Once enabled, pressing Cmd+Backtick toggles the terminal overlay from any application.
Can I use Ghostty with tmux or do the built-in splits replace it?
You can use either or both. Ghostty's built-in splits (Cmd+D for vertical, Cmd+Shift+D for horizontal) handle most use cases without tmux. However, tmux adds session persistence — your terminal sessions survive if Ghostty crashes or restarts — plus remote session management and more advanced layout scripting. Many developers use Ghostty splits for local work and tmux for remote servers or long-running processes that must persist across terminal restarts.