WispTerm

June 24, 2026 · View on GitHub

English | 简体中文

WispTerm

Windows supported macOS supported Linux experimental License
Stars Release Downloads Last commit

WispTerm is a cross-platform terminal workspace for remote development and AI agent workflows. It is written in Zig and powered by libghostty-vt for terminal emulation.

Note

WispTerm ships for Windows and macOS (Apple Silicon and Intel). A Linux AppImage is published for community testing and remains experimental.

Features

  • Ghostty's terminal emulation - uses libghostty-vt for VT parsing and terminal state
  • Native font discovery - find system fonts by name via DirectWrite, CoreText, or fontconfig, with per-glyph fallback for missing characters
  • FreeType rendering - high-quality glyph rasterization with Ghostty-style font metrics
  • Sprite rendering - box drawing, block elements, braille patterns, powerline symbols
  • Theme support - Ghostty-compatible theme files, 450+ themes built in (default: Poimandres)
  • Background image and shaders - wallpaper blending plus Ghostty-compatible GLSL post-processing
  • Splits and tabs - vertical/horizontal splits, tab strip, focus-follows-mouse, equalize sizes
  • File Explorer and previews - browse local, WSL, and SSH files; preview Markdown/text/tables/images/PDFs without leaving the terminal
  • Embedded browser panel - open web URLs in a side WebView2 (Windows) or WKWebView (macOS) panel when available, with persistent SSH loopback port forwarding for profile sessions
  • SSH port forwarding manager - silently manage local and reverse SSH forwarding rules from a dedicated tab
  • AI Agent sessions - launch OpenAI-compatible Agent tabs, configure profiles, restore history, export Markdown transcripts, and distill reusable local skills
  • Command-center Copilot History - search saved AI Chat and Copilot sidebar conversations, grouped by date, with source filters for sidebar vs tab sessions
  • In-session model switching - use /model or click the model label to move an active AI chat/Copilot session to another saved profile with a context summary handoff
  • AI history browser - browse local, WSL, and SSH Codex / Claude Code / Reasonix history and resume sessions from their original project directories
  • Kitty Graphics protocol - display inline images and PDFs from remote shells via imgcat.py / pdfcat.py
  • Opt-in remote access - share a session key over a Cloudflare-hosted relay (disabled by default)

Documentation

Versions

The desktop app version is the repository root version in build.zig.zon (currently 1.29.0) and is what wispterm --version, release notes, desktop packages, and the command center Version entry use.

The WispTerm Remote web console/relay under remote/ has an independent npm/web version (currently 0.32.0). Desktop releases do not require a Remote version bump unless the release explicitly includes changes under remote/.

Building

Windows (PowerShell):

zig build                         # Debug build for development
zig build -Doptimize=ReleaseFast  # ReleaseFast build for distribution
Remove-Item -Recurse -Force .\zig-out, .\.zig-cache -ErrorAction SilentlyContinue

macOS (requires macOS 13+ and Zig 0.15.2):

zig build macos-app -Dtarget=aarch64-macos   # Apple Silicon .app bundle (use x86_64-macos on Intel)
open zig-out/bin/WispTerm.app                  # launch the built app

The Makefile may still exist as a convenience wrapper, but normal Windows development should use PowerShell and direct zig commands.

For architecture, packaging, and release details, see Development, architecture, packaging, and releases.

Usage

On Windows run wispterm.exe; on macOS run WispTerm.app/Contents/MacOS/wispterm (or launch WispTerm.app directly — passing CLI flags requires the binary path).

wispterm [options]

Options:
  --font, -f <name>            Set font (default: embedded fallback)
  --font-style <style>         Font weight (default: regular)
                                Options: thin, extra-light, light, regular,
                                         medium, semi-bold, bold, extra-bold, black
  --cursor-style <style>       Cursor shape (default: block)
                                Options: block, bar, underline, block_hollow
  --cursor-style-blink <bool>  Enable cursor blinking (default: true)
  --theme <path>               Load a Ghostty theme file
  --background-image <path>    Image file to render behind the terminal
  --background-opacity <0..1>  Opacity of theme/cell backgrounds (default: 1.0)
  --background-image-mode <m>  fill | fit | center | tile (default: fill)
  --window-height <rows>       Initial window height in cells (default: 0=auto, min: 4)
  --window-width <cols>        Initial window width in cells (default: 0=auto, min: 10)
  --quake-mode <bool>          Enable Quake-style drop-down mode (default: true)
  --keybind <binding>          Configure a shortcut, e.g. global:ctrl+backquote=toggle_quake
  --config <path>              Use this file as the main config
  --config-path <path>         Alias for --config
  --config-file <path>         Include another config file (prefix ? for optional)
  --version, -v                Print the WispTerm version and exit
  --show-config-path           Print the resolved main config path
  --list-fonts                 List available system fonts
  --list-themes                List available themes
  --test-font-discovery        Test platform font discovery
  --help, -h                   Show help

Configuration file details are in Configuration.

Keyboard shortcuts

Default app-level chords are defined in src/keybind.zig and can be remapped with repeated keybind = ... lines in the config file. Some modal/editor-local keys are still handled by the focused overlay first (command center navigation, session launcher editing, AI Chat input, and similar).

Example remaps:

keybind = alt+f10=toggle_command_palette
keybind = global:ctrl+backquote=toggle_quake

Use keybind = clear before custom bindings if you want to remove all defaults and rebuild the table from scratch. To confirm the running desktop version, open the command center (Ctrl+Shift+P on Windows, Cmd+Shift+P on macOS), type version, and press Enter.

macOS modifier mapping: most shortcuts use Cmd in place of Ctrl and Opt in place of Alt. Two exceptions keep Ctrl to avoid colliding with system shortcuts: **Ctrl+** (Quake — Cmd+`` is the system window cycler) and Ctrl+Tab / Ctrl+Shift+Tab (tab switching — Cmd+Tab is the system app switcher).

ActionWindows / LinuxmacOS
Show/hide Quake drop-downCtrl+`Ctrl+`
Open command centerCtrl+Shift+PCmd+Shift+P
New session (session launcher)Ctrl+Shift+TCmd+Shift+T
New windowCtrl+Shift+NCmd+Shift+N
Toggle tab sidebarCtrl+Shift+BCmd+Shift+B
Split to the rightCtrl+Shift++Cmd+Shift++
Split downwardCtrl+Shift+-Cmd+Shift+-
Toggle file explorer sidebarCtrl+Shift+Alt+ECmd+Shift+Opt+E
Toggle AI Copilot sidebar (current terminal)Ctrl+Shift+ACmd+Shift+A
Preview files (Ctrl/Cmd-click in terminal, or double-click in File Explorer)Ctrl-clickCmd-click
Previous / next image/PDF in gallery (preview focused)Left / RightLeft / Right
Previous / next PDF page (PDF preview focused)PageUp / PageDownPageUp / PageDown
Download SSH remote fileCtrl+Shift-click path in SSH outputCmd+Shift-click path in SSH output
Close focused panel, tab, or windowCtrl+Shift+WCmd+Shift+W
Maximize or restore windowAlt+EnterOpt+Enter
Increase / decrease font sizeCtrl++ / Ctrl+-Cmd++ / Cmd+-
Copy terminal selection or AI Chat selection/transcriptCtrl+Shift+CCmd+Shift+C
Select from the last terminal click anchorShift-click terminal textShift-click terminal text
Select part of an AI answerDrag AI answer textDrag AI answer text
Select and copy part of an AI answerShift-drag AI answer textShift-drag AI answer text
Select AI Chat input; select transcript when input is emptyCtrl+A in AI ChatCmd+A in AI Chat
Copy AI Chat selection or full transcriptCtrl+C in AI ChatCmd+C in AI Chat
Delete the selected saved Agent sessionD / Delete in Agent HistoryD / Delete in Agent History
Search saved Copilot HistoryType / Backspace in command-center Copilot HistoryType / Backspace in command-center Copilot History
Cycle Copilot History source filterTab in command-center Copilot HistoryTab in command-center Copilot History
Move selected Copilot History rowUp / Down in command-center Copilot HistoryUp / Down in command-center Copilot History
Reopen selected Copilot History rowEnter in command-center Copilot HistoryEnter in command-center Copilot History
Delete selected Copilot History rowDelete in command-center Copilot HistoryDelete in command-center Copilot History
Edit AI History filterType / Backspace in AI HistoryType / Backspace in AI History
Move selected AI History sessionUp / Down in AI HistoryUp / Down in AI History
Resume selected AI History sessionEnter in AI HistoryEnter in AI History
Preview selected AI History transcriptSpace in AI HistorySpace in AI History
Refresh local AI History scanR in local AI HistoryR in local AI History
Edit AI Chat input cursorLeft/Right/Home/End/Delete/BackspaceLeft/Right/Home/End/Delete/Backspace
Stop in-flight AI Chat or Agent requestEsc in AI Chat while workingEsc in AI Chat while working
Copy selection (right-click)Right-click a selectionRight-click a selection
Paste textCtrl+VCmd+V
Paste clipboard imageCtrl+Shift+VCmd+Shift+V
Move focus to adjacent panelAlt + arrow keysOpt + arrow keys
Focus panel 1–9 by numberCtrl+19Cmd+19
Focus previous panel (cycle)Ctrl+Shift+[Cmd+Shift+[
Focus next panel (cycle)Ctrl+Shift+]Cmd+Shift+]
Equalize split sizesCtrl+Shift+ZCmd+Shift+Z
Next tabCtrl+TabCtrl+Tab
Previous tabCtrl+Shift+TabCtrl+Shift+Tab
Switch to tab 1–9Alt+19Opt+19
Open config fileCtrl+,Cmd+,

AI Chat Markdown export

In an active AI Chat or Agent tab, open the command center with Ctrl+Shift+P and run:

  • Export AI Chat Markdown to save the full transcript, including thinking, tool details, and usage metadata.
  • Export AI Chat Markdown Clean to save a publishing-friendly Markdown file with only the user inputs and the final AI answer.

WispTerm opens a save dialog with a .md filename. After saving, the saved path is copied to the clipboard.

SSH current directory for downloads and uploads

WispTerm can download a relative file path from an SSH terminal output, and upload dragged files into the interactive SSH shell's current directory, only when the remote shell reports its current directory with OSC 7. This is the same terminal convention used by Ghostty shell integration.

If OSC 7 is missing, helper ssh.exe / scp.exe commands start a fresh SSH session and usually see the login directory, not the directory you cd'd to in the interactive shell. In that case WispTerm shows SSH cwd unknown; click for setup instead of guessing ~/file.

Add one of these snippets to the remote shell startup file, then start a new WispTerm SSH session.

For Bash, add this to ~/.bashrc:

__wispterm_report_cwd() {
  printf '\033]7;file://%s%s\a' "${HOSTNAME:-localhost}" "$PWD"
}
PROMPT_COMMAND="__wispterm_report_cwd${PROMPT_COMMAND:+;$PROMPT_COMMAND}"

For Zsh, add this to ~/.zshrc:

__wispterm_report_cwd() {
  printf '\033]7;file://%s%s\a' "${HOST:-localhost}" "$PWD"
}
autoload -Uz add-zsh-hook
add-zsh-hook chpwd __wispterm_report_cwd
add-zsh-hook precmd __wispterm_report_cwd

For Fish, add this to ~/.config/fish/config.fish:

function __wispterm_report_cwd --on-variable PWD
    printf '\e]7;file://%s%s\a' (hostname) (string escape --style=url $PWD)
end
__wispterm_report_cwd

Credits

  • Original project: arya-s/phantty - the Zig + libghostty-vt foundation and the Windows terminal core. WispTerm builds on that base and layers additional features on top: an embedded browser panel, a file explorer with Markdown/text/table/image/PDF preview, AI Agent sessions with Markdown export, an opt-in remote-access client, Kitty Graphics image protocol support, and a configurable background image.
  • Terminal emulation: ghostty-org/ghostty via libghostty-vt.
  • Image decoding: stb_image (vendored through the ghostty dependency).

License

MIT

Star History

Star History Chart

Citation

Xu, Z.-G. (2026). WispTerm (Version 1.29.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.20660542

Copyable acknowledgment template:

We used WispTerm as part of our computational environment for life sciences data
analysis, remote computing workflows, reproducible command-line processing, and
the organization of related literature and analysis code.

Xu, Z.-G. (2026). WispTerm (Version 1.29.0) [Computer software]. Zenodo.
https://doi.org/10.5281/zenodo.20660542