A fast terminal for Windows, Linux and macOS that remembers every session, brings your tabs back after a restart and keeps your SSH hosts, tmux sessions and AI coding agents a keystroke away.
RU, коротко. RedShell — быстрый кроссплатформенный терминал на Rust + GPUI. Он побайтово записывает каждую сессию в SQLite с полнотекстовым поиском и после перезапуска возвращает вкладки со скроллбэком, в том числе подключённые к tmux. Внутри — SSH (через системный OpenSSH и
~/.ssh/config), запуск AI-агентов (Claude Code, Codex, Gemini CLI, Aider и др.) и нативное управление tmux/screen: локально, по SSH и через WSL на Windows. В Claude Code и Codex работает выделение мышью, а скриншот из буфера обмена можно вставить агенту на SSH-сервере. Вкладки живут в заголовке окна, боковая панель настраивается,config.tomlправится на месте с сохранением комментариев. Терминал спрашивает перед закрытием, только когда можно потерять работу (Enter и Esc в диалоге отменяют), сам подхватывает интеграцию с bash, zsh, fish и PowerShell и раз в день проверяет, не вышла ли новая версия. Есть плагины (Rust,plugin.tomlили хук-процесс на любом языке) и темы shadcn/tweakcn (CSS вставляется как есть).
Most terminals forget everything the moment you close a tab. RedShell records every session to a
local database, so you can find what a command printed last week, replay it, or reopen it as a
live tab with its scrollback, and the tabs you had open come back after a restart or a crash. It
also gathers what you would otherwise juggle in separate windows: the SSH hosts from your
~/.ssh/config, tmux and screen sessions on any machine, and AI coding agents such as Claude Code
and Codex, which open as ordinary tabs in the folder you are working in. It is written in Rust on
GPUI, the GPU-accelerated UI framework behind Zed, on top of alacritty's
VT parser, so it starts quickly and stays light.
Every byte a program prints is stored with a timestamp in SQLite, and the output, commands and tab titles are indexed for full-text search. Search All Sessions finds a line across everything you have run, and from a result you can view the recording read-only, restore it as a live tab with its scrollback, open it in a new window or export it as an asciicast file. Recordings are kept for 30 days by default, and pinned sessions stay until you delete them.
Tabs sit in the title bar and share its width like browser tabs, shrinking as you open more and
showing short paths with ~ for your home folder. Split a tab into panes, drag the line between
them to resize, and double-click it to make them equal again. Right-click a tab to rename,
duplicate or split it, or to close it, the other tabs or the tabs to its right.
Open tabs survive restarts, crashes and kill -9: they come back with their split panes and
names, in the same folder with their scrollback replayed, and tabs attached to a tmux or screen
session re-attach to it live. The
window itself reopens with the size and position you left it at.
Every command, with its key, is in the command palette, and the sidebar lists your open sessions and SSH hosts. In Settings you can add shells, agents, tmux and screen sessions and recent history to the sidebar, and you can drag its edge to make it wider or hide it with the button in the title bar.
Hosts come from ~/.ssh/config and [[ssh.hosts]]. RedShell drives the system OpenSSH, so agent
forwarding, FIDO keys, ProxyJump and ControlMaster all work, and a host can drop you straight into
a remote tmux or screen session. The session manager lists, attaches, creates and kills sessions
on this computer, on any SSH host and, on Windows, through a native tmux build or WSL. It lists a
host in one connection and shows what it found last time while it asks again, and the sidebar's
tmux section also lists the sessions on the SSH hosts you have tabs open on, checking each about
once a minute.
Open tmux Session as Tabs…, or Open as tabs in the manager, drives tmux through control
mode (tmux -C) the way iTerm2 does: every tmux window becomes a RedShell tab and every pane a
native pane with its own scrollback, search and history. Splits follow tmux's layout, splitting a
native pane splits it in tmux, and closing a tab asks whether to detach (the default) or kill the
tmux window. After a restart RedShell attaches to the same sessions again, and if one has ended
in the meantime it tells you instead of creating a new one. Native attach needs tmux 3.2 or newer,
and over SSH it needs key or agent authentication.
Claude Code, Codex CLI, Gemini CLI, GitHub Copilot CLI, opencode, Aider, Cursor Agent, Qwen Code,
Goose and Crush are found on PATH and start in the current tab's folder, and [[agents.custom]]
adds your own. Selecting text works in them as you would expect: the selection stays put while the
agent repaints its screen, and mouse drags reach agents that track the mouse themselves. When an
agent runs on an SSH host, Paste Image uploads a screenshot from your clipboard and types its
path into the prompt, as described below.
Closing a tab asks while a program is running in it, and closing a window or quitting asks when
more than one tab is open or a program is running. In these dialogs Enter and Esc cancel: you
confirm by clicking or with Ctrl+Enter (⌘+Enter on macOS), and you can also require typing a word.
A pane closes by itself when its program exits successfully and stays open to show the error when
it fails, and closing the last tab closes the window, as in other terminals. All of this can be
changed in [safety] and terminal.close_on_exit.
Find highlights every match in the pane's scrollback and steps through them, with switches for case and regular expressions.
The interface uses shadcn/ui tokens, so any tweakcn CSS export works as it
is: drop the file into themes/ or use Import tweakcn Theme from Clipboard, and the theme picker
previews it live. RedShell ships with RedShell (light and dark), Neutral (light and dark), Nebula,
Catppuccin Mocha, Tokyo Night, Nord, Gruvbox, Rosé Pine and Solarized Light, and it can follow
your system's light or dark mode with a theme for each.
The Settings panel covers fonts, weight and letter spacing, line height, padding, the cursor, a
transparent or blurred window, a background image, the tab bar and sidebar, the shell, safety,
history and keybindings. It writes only the options you change into config.toml, keeping your
comments and the order of your keys, and edits you make to the file by hand apply as soon as you
save it. Zoom applies to the current window and leaves your configured font size alone.
Every release has an installer and a
portable archive for each platform, each with a .sha256 checksum next to it. To update, install
the newer release the same way; your settings and history are kept.
Windows. Run redshell-<version>-windows-x86_64-setup.exe. It installs for your user only,
without an administrator prompt, adds RedShell to the Start menu and the desktop (untick the
desktop shortcut on the last page if you don't want it), and registers an uninstaller under
Apps & Features. Uninstalling leaves your settings and history in %APPDATA%\redshell.
Builds are not code-signed yet, so SmartScreen warns on the first run: choose More info, then
Run anyway. The portable windows-x86_64.zip holds redshell.exe, which runs from any folder.
Linux. On Debian, Ubuntu and their derivatives, install the .deb, which pulls in the
libraries RedShell needs (Vulkan loader and driver, xkbcommon, Wayland, X11):
sudo apt install ./redshell-<version>-linux-x86_64.debOn other distributions, use the AppImage: make it executable with
chmod +x redshell-<version>-linux-x86_64.AppImage and run it. The .tar.gz holds the bare
binary plus a desktop entry and icons; to get the launcher entry, copy the binary onto your
PATH and the bundled share folder into ~/.local:
install -Dm755 redshell ~/.local/bin/redshell
cp -r share ~/.local/macOS. Open redshell-<version>-macos-universal.dmg and drag RedShell into Applications.
The app runs natively on Apple silicon and Intel Macs with macOS 10.15.7 or newer. It is not
notarized yet, so the first time, right-click RedShell in Applications, choose Open, then
Open again in the dialog; after that it starts normally. On recent macOS versions where that
dialog only offers Done, allow it under System Settings → Privacy & Security → Open Anyway.
RedShell checks GitHub for a newer release once a day and tells you when there is one; you
download and install it yourself. Turn this off with updates.check = false (see
docs/CONFIG.md).
# Linux: GPUI needs these system libraries
sudo apt install libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev libvulkan-dev \
libx11-xcb-dev libxcb-xkb-dev libfontconfig-dev libfreetype-dev libzstd-dev
cargo run --release # binary: target/release/redshell
cargo test --workspace # unit and integration tests (PTY, SQLite, tmux, plugins)macOS needs Xcode command-line tools. Windows needs the MSVC toolchain. The Rust version is pinned
in rust-toolchain.toml.
REDSHELL_HOME=/some/dir keeps config and data in one folder, which is useful for portable
installs and testing.
On Windows and Linux RedShell's own keys use Ctrl+Shift or Ctrl+Alt, so that plain Ctrl and Alt keys such as Ctrl+K, Ctrl+R and Alt+1 stay with the shell. Windows follows Windows Terminal for the clipboard: Ctrl+C copies when text is selected and interrupts the program otherwise, and Ctrl+V pastes.
| Action | Windows | Linux | macOS |
|---|---|---|---|
| Command palette | Ctrl+Shift+P |
Ctrl+Shift+P |
⌘⇧P |
| Open a profile (shell, agent, SSH host, plugin) | Ctrl+Shift+O |
Ctrl+Shift+O |
⌘O |
| Launch an AI agent | Ctrl+Shift+I |
Ctrl+Shift+I |
⌘⇧I |
| Connect to an SSH host | Ctrl+Shift+S |
Ctrl+Shift+S |
⌘⇧S |
| tmux / screen sessions | Ctrl+Shift+M |
Ctrl+Shift+M |
⌘⇧M |
| New tab / close tab | Ctrl+Shift+T / Ctrl+Shift+W |
Ctrl+Shift+T / Ctrl+Shift+W |
⌘T / ⌘W |
| Rename tab | Ctrl+Shift+R |
Ctrl+Shift+R |
⌘⇧R |
| Next / previous tab | Ctrl+Tab / Ctrl+Shift+Tab |
Ctrl+Tab / Ctrl+Shift+Tab |
⌘⇧] / ⌘⇧[ |
| Go to tab 1…8 / last tab | Ctrl+Alt+1…8 / Ctrl+Alt+9 |
Ctrl+Alt+1…8 / Ctrl+Alt+9 |
⌘1…8 / ⌘9 |
| Move tab left / right | Ctrl+Shift+PgUp / PgDn |
Ctrl+Shift+PgUp / PgDn |
none |
| Split right / down | Ctrl+Shift+D / Ctrl+Shift+Alt+D |
Ctrl+Shift+D / Ctrl+Shift+Alt+D |
⌘D / ⌘⇧D |
| Next / previous pane | Ctrl+Shift+] / Ctrl+Shift+[ |
Ctrl+Shift+] / Ctrl+Shift+[ |
⌘] / ⌘[ |
| Close pane | Ctrl+Shift+Alt+W |
Ctrl+Shift+Alt+W |
⌘⌥W |
| Copy | Ctrl+C with a selection, Ctrl+Shift+C, Ctrl+Insert |
Ctrl+Shift+C, Ctrl+Insert |
⌘C |
| Paste | Ctrl+V, Ctrl+Shift+V, Shift+Insert |
Ctrl+Shift+V, Shift+Insert |
⌘V |
| Paste an image into an agent on an SSH host | Alt+V |
Ctrl+V |
Ctrl+V |
| Select all | Ctrl+Shift+A |
Ctrl+Shift+A |
⌘A |
| Find in the terminal | Ctrl+Shift+F |
Ctrl+Shift+F |
⌘F |
| Older / newer match | F3 / Shift+F3 |
F3 / Shift+F3 |
⌘G / ⌘⇧G |
| Search all sessions | Ctrl+Shift+Alt+F |
Ctrl+Shift+Alt+F |
⌘⇧F |
| Session history | Ctrl+Shift+H |
Ctrl+Shift+H |
⌘⇧H |
| Insert a snippet | Ctrl+Shift+E |
Ctrl+Shift+E |
⌘⇧E |
| Previous / next prompt | Ctrl+Shift+Z / Ctrl+Shift+X |
Ctrl+Shift+Z / Ctrl+Shift+X |
⌘↑ / ⌘↓ |
| Clear scrollback | Ctrl+Shift+K |
Ctrl+Shift+K |
⌘K |
| Scroll a page up / down | Shift+PgUp / Shift+PgDn |
Shift+PgUp / Shift+PgDn |
⇧PgUp / ⇧PgDn |
| Scroll to the top / bottom | Ctrl+Shift+Home / End |
Ctrl+Shift+Home / End |
⌘Home / ⌘End |
| Zoom in / out / reset | Ctrl+= or Ctrl++ / Ctrl+- / Ctrl+0 |
Ctrl+= or Ctrl++ / Ctrl+- / Ctrl+0 |
⌘= / ⌘- / ⌘0 |
| Toggle the sidebar | Ctrl+Shift+B |
Ctrl+Shift+B |
⌘B |
| Full screen | F11 |
F11 |
⌃⌘F |
| Settings | Ctrl+, |
Ctrl+, |
⌘, |
| New window | Ctrl+Shift+N |
Ctrl+Shift+N |
⌘N |
| Quit | Ctrl+Shift+Q |
Ctrl+Shift+Q |
⌘Q |
Zooming also works with Ctrl (⌘ on macOS) and the numpad + and - keys. In the find bar, Enter
and Shift+Enter step to the older and newer match, Alt+C toggles case, Alt+R regular
expressions and Esc closes it. In session history and search, Alt+P pins a session,
Alt+Enter opens it in a new window, Shift+Delete deletes it and Ctrl+Enter (⌘Enter)
restores it as a live tab. Commands without a default key, such as Select Theme… and Open
tmux Session as Tabs…, are in the palette, and you can rebind any command in [keybindings];
the palette shows every command id.
With the mouse, drag tabs to reorder them, hover a tab for its full title and folder, double-click
it to rename it and middle-click it to close it (with the usual confirmation). In the terminal,
drag to select text (double-click selects a word, triple-click a line), right-click to copy the
selection or paste when there is none, and middle-click to paste. Programs that use the mouse
themselves, such as Claude Code, vim or htop, receive clicks, drags and the wheel instead; hold
Shift (on macOS also Option) to select text in them as usual, and Shift with the wheel to
scroll RedShell's own scrollback. Ctrl with the wheel changes the font size.
AI agents such as Claude Code, Codex and Gemini CLI read a pasted screenshot straight from the
clipboard, which an agent running on an SSH host cannot see. In those panes RedShell's
Paste Image key (Ctrl+V, or Alt+V on Windows, the keys Claude Code uses) acts while the
clipboard holds an image and no text: it uploads the image to ~/.cache/redshell/paste on the
host and types the file's path into the prompt, which the agents attach like a pasted image.
This works for SSH tabs and for tmux or screen sessions on an SSH host, attached normally or
natively. On Windows it also picks up bitmap-only screenshots, such as the one PrintScreen
copies. Everywhere else, WSL included (Claude Code reads the Windows clipboard from there), and
whenever the clipboard holds text, the key goes to the program as usual.
The upload is a separate ssh connection with the tab's host and options in batch mode, so it
needs key or agent authentication (a password prompt cannot be answered) and reuses a
ControlMaster connection when your ~/.ssh/config sets one up. Uploaded files are readable
only by you and are deleted after a week, at the next upload. Turn this off with
terminal.paste_image_upload = false.
New tabs running bash, zsh, fish or PowerShell load RedShell's integration script from
shell-integration/ automatically, after your own startup files, so there is
no profile to edit. It reports the working directory (OSC 7, or OSC 9;9 from PowerShell) and exact
command boundaries (OSC 133). Prompt marks also enable Jump to Previous/Next Prompt. Prompts
that already report the directory with OSC 9;9, such as oh-my-posh and Starship on Windows, are
understood as well. Without integration, RedShell falls back to reading the prompt line when you
press Enter.
Turn it off with terminal.shell_integration = false; the
configuration reference explains how each shell is started.
When a shell starts with arguments of your own (say bash --norc), source the script yourself:
# ~/.bashrc
[ -n "$REDSHELL_SESSION" ] && source ~/RedShell/shell-integration/redshell.bashRedShell reads config.toml from ~/.config/redshell on Linux,
~/Library/Application Support/redshell on macOS and %APPDATA%\redshell on Windows, and writes
a commented template there on first start. Every key is optional. The configuration reference
describes each section, from fonts and the sidebar to safety, history, SSH hosts, agents, update
checks and keybindings, along with how to write your own themes.
Plugins add commands, launch profiles, themes and snippets. They can be written against the Rust
Plugin trait, declared in a plugin.toml file, or run as a hook process in any language that
speaks JSON lines. Writing plugins walks through all three, with a full example
in examples/plugins/hello.
crates/
redshell-core settings, Launchable/LaunchProfile, commands, events, fuzzy matcher
redshell-theme shadcn token model, tweakcn CSS importer (oklch/hsl/hex), registry
redshell-terminal PTY + VT engine, input/mouse encoding, render snapshots, OSC 7/9;9/133
redshell-history SQLite + FTS5 recorder, search, restore, asciicast export
redshell-remote SSH profiles, ~/.ssh/config, tmux/screen over local/SSH/WSL
redshell-agents AI agent detection and launch profiles
redshell-plugin Plugin trait, plugin.toml manifests, JSON-lines hook processes
redshell-ui shadcn-style GPUI components (Button, Input, Modal, Toast, …) and Lucide icons
redshell-app the application (workspace, terminal view, palette, settings)
Architecture explains how the crates fit together. Screenshots are taken
headlessly with scripts/screenshot.sh.
MIT








