Right sidebar
When the current tab is a remote terminal, a column of tool buttons runs down the right edge of the window: Snippets, History, Files, AI assistant (beside SSH terminals only; see “AI assistant” below), tmux, Docker, Kubernetes, Services, Processes, Network, Monitor and GPU/NPU, of which Kubernetes and GPU/NPU aren’t shown by default; choose which tools it shows in Settings › Terminal › Sidebar tools. Click one to open that tool on the right, and click it again to collapse it; ⌘⌥B (Ctrl+Alt+B on Windows and Linux) shows or hides the right sidebar. Drag the right sidebar’s left edge to resize it: it’s 320 pixels wide by default and can go down to 220, and the next launch keeps the width. It’s wider while it shows the AI assistant, 420 pixels by default, to make room for the conversation, and keeps that width apart from the other tools’. When the current tab is a local terminal, the column has three buttons: Snippets, Projects (see Projects below) and Files (this computer’s folders; see Files below); Snippets and Files are first and third, as beside remote terminals. The right sidebar appears only with terminals: switching to SFTP or Settings hides it together with its buttons. Whether it’s open, and which tool it shows, is remembered for each host: switching to a host’s terminal brings it back as that host last had it, and a host you haven’t opened it for has it collapsed. Saved hosts remember it the next time you start ShellRS; quick connections only until you quit. For example, open Files on web-01 and it opens by itself whenever you connect to web-01, but not for other hosts. Local terminals share one such setting, also remembered next time. With tabs dragged into a split, the right sidebar stays: it goes with the terminal, remote or local, you switched to or clicked into last, stays put when you click into SFTP in the other half, and hides only when no terminal is on screen. Its title names the host it works on (such as “Monitor · web-01”), and the status bar follows the half you clicked into too. Hosts known not to run Linux (macOS, Windows, BSD) don’t show the Services, Processes, Network, Monitor and GPU/NPU icons; History, tmux, Docker and Kubernetes are there for every host except Windows ones (on a Mac, they work too with tmux or Docker Desktop installed). Telnet and serial terminals have only Snippets: the other tools run commands beside the terminal, which Telnet and a serial line can’t.
Snippets keeps the commands you use often, shared by every host and local terminal, beside remote and local terminals alike. Click the plus at the top to create a snippet: a name, a category and a command, which can span several lines. The list works like the host list: categories can nest to any depth, each level lists its categories and then its snippets, and snippets without a category sit at the top level after the categories. Each row shows only the name; hover over a snippet to see its command beside it. Click a category to collapse or expand it (this isn’t remembered: categories are expanded at the next launch). Right-click a category to create a snippet or a subcategory in it, rename it or delete it (its subcategories and snippets are deleted with it, and the confirmation says how many). The folder button at the top creates a top-level category; when you rename a category, you can also choose a “Parent category” to move it. Two categories at the same level can’t share a name; at different levels they can.
Drag rows to rearrange them: drop a snippet on the upper or lower half of another to put it before or after it (in that snippet’s category), or on a category to put it last in that category. Drop a category on the top or bottom edge of another to reorder them, or on its middle to make it a subcategory. Drop anything on empty space to move it to the end of the top level. A category can’t go inside itself or one of its own subcategories, and rows can’t be dragged while you search. New snippets and categories go last at their level; ones from earlier versions that were never dragged stay in name order. Order and nesting sync with cloud sync; ShellRS 0.1.17 and earlier show every category at the top level, but don’t change the order or nesting elsewhere. You can search by name or command; with several words, snippets that contain all of them are listed, with the categories they’re in.
Clicking a snippet runs its command in the terminal (snippets are set to “Run on click” by default). When the pointer is on a snippet, an icon at its right shows what a click will do: a lightning bolt means a click runs it, ▶ means a click only types it in. Uncheck “Run on click” in the snippet dialog, and clicking the snippet only puts the command on the terminal’s input line (replacing anything already typed), for you to edit and press Enter. Clicking the lightning bolt or ▶ at the right always runs it right away; the context menu also has “Insert into terminal”, “Copy command”, “Edit…” and “Delete…”. Nothing is typed in while a full-screen program such as vim or less is running in the terminal. On Windows hosts, and in local terminals on a Windows computer, what’s already typed isn’t replaced; the command is typed after it.
History lists the remote host’s shell history, most recent first, each command once, with how many times it ran below it; when times were recorded, it also says when it last ran, and multi-line commands are recognized. bash, zsh (oh-my-zsh included) and fish are supported, and their history files are found without any setup: bash’s ~/.bash_history (with times when HISTTIMEFORMAT is set); zsh’s ~/.zsh_history, ~/.zhistory and ~/.histfile (with times when EXTENDED_HISTORY is set, as oh-my-zsh does); fish’s ~/.local/share/fish/fish_history. By default the one of the login user’s shell is read (the first of zsh’s, when there are several), or, when the login shell has none, the one changed last. The file read is named above the list; when the host has more than one history file (say you log in with zsh and used bash before, or .bashrc runs exec zsh), click the file name to read another. The host remembers the file you pick, for its other terminals and next time, and on your other devices too when sync is on; if that file goes away, the default one is read again. A file moved elsewhere with HISTFILE in the shell’s startup files isn’t found. You can search; with several words, commands that contain all of them are listed, ignoring case. Click a command to put it on the terminal’s input line (replacing anything already typed, without running it), for you to edit and press Enter; the “Run” button at the right runs it right away, and the context menu can also copy it. Nothing is typed in while a full-screen program such as vim or less is running in the terminal.
bash writes a session’s commands to the history file only when the shell exits, so commands you’ve just run in the current terminal show up only after it exits; so does zsh, unless SHARE_HISTORY or INC_APPEND_HISTORY is set (oh-my-zsh sets it), in which case they show up when you click refresh; fish writes each command as it runs. The list is read when you open History or switch terminals, and after that only when you click the refresh button; when the history file is long, only its last 512 KB is read.
Files is a single remote file list beside the terminal, on an SFTP channel of that terminal’s own SSH connection: no second login, no password or verification code asked again, and jump hosts and proxies work as they do for the terminal. It connects the first time you open it and stays as it is when you switch to another tool or collapse the sidebar; each terminal has its own, showing its own folder, and it follows when you switch terminals. The list has two columns, name and size. Double-click a folder to open it and a file to edit or preview it; the context menu and shortcuts are those of an SFTP tab’s remote side, and clicking the current folder in the path lets you type a path or open a bookmark. To upload to the current folder, drag files or folders in from Finder or File Explorer, or click “Upload…” to choose files (the dialog also takes folders on macOS; on Windows and Linux it takes only files, so drag folders in); to download, select items and press F5 or click “Download…”, which saves to your Downloads folder unless you pick another one in the confirmation. Progress shows in the transfer queue below the list. It follows the terminal: it disconnects when the terminal does and reconnects when the terminal reconnects, and it closes with the terminal, which asks first while a transfer runs or an editor has unsaved changes. Transfers share the terminal’s connection, so a large one slows the terminal down; an SFTP tab, with a connection of its own, suits those better.
Files follows the terminal’s current folder: cd somewhere in the terminal and it goes to the same folder (into its Back history). This relies on the host’s shell reporting its folder at each prompt (OSC 7). When Files opens, ShellRS checks: if bash or zsh isn’t set up to, it asks “Turn on folder following?”. “Set up” appends a block to the end of the startup file the shell reads when you log in (for bash usually ~/.bashrc, or ~/.bash_profile when the login file doesn’t read it; for zsh ~/.zshrc), between the lines # >>> ShellRS directory follow >>> and # <<< ShellRS directory follow <<<, then types source ~/.bashrc into the terminal so the shell running there reports at once. While a full-screen program such as vim or top runs in the terminal, nothing is typed and it takes effect after you reconnect. To undo it, delete the lines between those two. “Cancel” isn’t asked again on that connection; after you reconnect, opening Files asks again. fish reports its folder by itself and needs no setup; other shells aren’t asked and aren’t followed. Files only moves when the folder changes, so browsing elsewhere in Files isn’t undone; folders reported by another machine you ssh to from inside the terminal are ignored. The “Follow” switch at the right of the status bar turns following off, and is remembered for the host, like whether the right sidebar is open: Files opened for that host afterwards, also after ShellRS restarts, starts the way you last left it, while the Files of other terminals already open keep theirs. A host you’ve never switched starts from Settings › SFTP › Detect folder reporting.
Local terminals have Files too, showing this computer’s folders: it’s the local side of an SFTP tab, on its own. Double-click a folder to open it and a file to edit or preview it; the path label, the context menu (Rename, Delete, New, Properties and so on) and the shortcuts are those of an SFTP tab’s local side. It connects to no server, so there’s no uploading, downloading or bookmarks. It starts in the terminal’s folder and follows the terminal by default: wherever you cd in the terminal, it goes too, with no shell setup (on macOS and Linux it reads the shell’s current folder; on Windows, PowerShell and Command Prompt are read too). Turn off the “Follow” switch at the right of the status bar and it stays where you browse; turn it on again and it goes back to the terminal’s folder. Each terminal has its own switch, which isn’t remembered for next time. Each local terminal has its own Files, which closes with the terminal; files opened from it stay open in the editor.
tmux lists the remote host’s tmux sessions: the name, how many terminals are attached (“N attached” or “Detached”) and the folder the session started in, with the session the current terminal is in marked “Current”. The tmux version is at the top; a host without tmux says “tmux isn’t installed on the host”, and the buttons don’t work. “New” asks for a name (leave it empty for tmux to number it; letters, digits, - and _ only), then puts the current terminal in the new session; “Detach” takes the terminal out of its session, which keeps running. Each session has “Attach” (puts the current terminal in that session), “Rename” and “End session” (asks first; every program running in the session ends) at the right.
When the current terminal isn’t in tmux, attaching and starting a session type tmux attach -t name or tmux new -s name into the terminal and run it (as History does, in place of what’s typed there; nothing is typed while a full-screen program such as vim runs). When the terminal is in tmux already, what’s typed goes to the program in the tmux pane, so tmux is told over the terminal’s connection to switch the terminal instead, and nothing is typed. ShellRS finds the terminal’s tty from the SSH connection’s sshd and matches it against tmux’s clients to tell whether the terminal is in tmux and in which session; when it can’t (a server without ps, say), the terminal counts as not in tmux. Only the login user’s own sessions are listed: tmux sessions started after sudo -i in the terminal aren’t here. The list is read when you open tmux or switch terminals, again after attaching, starting, renaming, ending and detaching, and otherwise when you click the refresh button.
Docker shows the Docker and Compose versions at the top, and below them four tabs with counts: “Containers”, “Volumes”, “Images” and “Networks”. On “Containers”, the containers of the same compose project are grouped under a project card (project name, running / total, project folder); click the project’s row to collapse or expand it. A project with a single container that’s running starts expanded, and a project with several containers starts collapsed; containers that belong to no project are under “Standalone containers”. Each project and container has “Stop” (or “Start”) and “Restart” at the right, and a project’s buttons act on all its containers. Click a container or its “…” to open its details: the “Details” tab has the name, ID, image, creation time, entrypoint, command, ports, mounts, environment and labels, and the “Logs” tab the container’s last 200 lines of output: select some of it to copy, or copy all of it with “Copy logs”. The environment can be selected and copied too. At the bottom you can start, stop and restart it, and delete it once it’s stopped. The “Volumes”, “Images” and “Networks” tabs list each item’s name and basic information and mark whether a container uses it; those no container uses can be deleted with the delete button at the right (Docker’s own bridge, host and none networks can’t be deleted). Click a card to open its details: for a volume, the driver, mountpoint, creation time, the containers using it, options and labels; for an image, the full ID, tags, digests, creation time, size, platform, number of layers, the containers using it, configuration (entrypoint, command, working directory, user, exposed ports), environment and labels; for a network, the driver, scope, IPv6, subnets and gateways, the containers attached with their addresses, options and labels. Items can be deleted from the bottom of the details too.
Stopping, restarting and deleting ask first; starting happens right away. The result appears as a notification, and the list is read again. When you’re not logged in as root and not in the docker group, passwordless sudo is used. The list is read when you open Docker or switch terminals, and after that only when you click the refresh button. If Docker isn’t installed or isn’t running on the host, it says so.
Services lists the systemd services on the remote host (not templates) in two groups: “Custom services” (unit files in /etc/systemd/system, the ones an administrator added) and “System services”. The top shows the systemd version and the overall state of the machine (“Degraded” when a service has failed); there are four tabs with counts, “All”, “Active”, “Inactive” and “Failed”, and you can search by service name or description. Each service has a card: a status dot, the name, description, active state and whether it starts at boot. A running service has “Stop” and “Restart” at the right, one that isn’t running has “Start”, and “…” or clicking the card opens its details. The details’ “Status” tab has the load state, active state, at boot, main PID, memory, tasks, restarts, exit status, start and stop times, and unit file; the “Journal” tab has the service’s last 200 lines in the journal: select some of it to copy (⌘C, Ctrl+C on Windows and Linux), or copy all of it with “Copy journal”. At the bottom of the details and in the context menu you can likewise start, stop and restart it, and enable or disable it at boot.
Stopping and restarting ask first (with a special warning when you stop the SSH service); starting and the at-boot setting happen right away. The result appears as a notification, and the list is read again. These actions need root: when you’re not logged in as root, they run through passwordless sudo, and if sudo needs a password, you’re told that root is needed. The list is read when you open Services or switch terminals, and after that only when you click the refresh button. For hosts that don’t use systemd, it says they’re not supported yet.
Processes lists the processes on a remote Linux host (without kernel threads), each on a card: a status dot (green running, gray sleeping, yellow waiting for I/O or stopped, red zombie; hover over it to see the state), the process name, PID, user, start time (in this computer’s time zone), memory use with its share of physical memory, and CPU usage. CPU usage is computed the way top does it, per core: two full cores is 200%. It takes two readings to compute, so right after the tool opens it shows “—”, and the figure appears 2 seconds later. Processes are sorted by memory, most first, by default; click “CPU” to sort by CPU instead, and click the same button again to reverse the order. You can search by process name, PID or user, and the number at the right is how many are listed. The list refreshes every 15 seconds, reading only while Processes is showing; click the refresh button at the top right to read it at once.
Click a process to open its details: PID, parent, user, state (with the ps state letters in parentheses, such as Ssl), start time, elapsed time, TTY, priority, nice, CPU usage, CPU time, resident memory, virtual memory, number of threads, of direct children and of all descendants, and below them the full command line (read when the details open; “Copy command” copies it). At the bottom are “Copy PID”, “End process” and “Kill”.
Right-click a process for “View details”, “End process…” (sends SIGTERM, so the process can clean up before it exits) or “Kill process…” (sends SIGKILL, ending it immediately); ending it from the details works the same way, and both ask first. The result appears as a notification, and the list is read again 1 second later. When you’re not logged in as root, you can end only your own processes. With more than 2500 processes, only the first 2500 are listed, and the top of the list says so.
Network lists every TCP and UDP connection and listening port on a remote Linux host, each on a card: protocol, state, local and remote addresses, the process using it with its PID, and its user. The top right of each card says whether it’s a “Listening port”, “Inbound” (connected to a port this host listens on) or “Outbound”. The top of the panel shows the total, the number of listening ports and the number established; you can search by address, port, state, PID, process name or user, and filter by protocol and state. Listening sockets come first, then established ones, with TIME_WAIT and other closing ones last; when several processes listen on the same port together (such as nginx’s workers), they’re merged into one card.
The list is read once when you open Network or switch terminals and doesn’t change by itself after that; click the refresh button at the top right to read it again. The data is read over this terminal’s existing SSH connection, with no second login, using the host’s ss command; on hosts without ss (such as BusyBox) it’s read from /proc/net instead, and then processes don’t show; when you’re not logged in as root, you see only your own processes. In both cases the top of the list says so. With more than 3000 connections, only the first 3000 are listed (listening ports are always among them), and the total stays accurate.
Monitor shows, for a remote Linux host:
- System: host name, architecture, distribution and uptime (such as “32 days 23:40:26”).
- CPU: model, number of cores and average usage; with several cores, a small bar for each core below, and hovering over a bar shows that core’s number and usage. Only one row shows by default; when there are too many cores for one row, click “N cores” at the top right to show them all.
- Memory: physical memory usage and the amount used; a second row when there’s swap.
- Network: upload and download rates of the main interface (the one with the default route); with several interfaces, click “N interfaces” at the top right to show them all (loopback interfaces and interfaces that have never sent or received data aren’t listed).
- Disks: the usage of each local mount point (without in-memory file systems such as tmpfs, or mounts under system folders).
The data is read over this terminal’s existing SSH connection, with no second login and nothing to install; it refreshes every 2 seconds (disks every 30 seconds), reading only while Monitor is showing. Each refresh reads only a few system files, and starts no processes on the server besides the shell that runs it. Usage of 70% or more shows in yellow, 90% or more in red. When the terminal isn’t connected, it says so; when a host whose system wasn’t known yet turns out not to be Linux, it says it isn’t supported yet.
GPU/NPU is for looking after AI hosts: it shows a remote Linux host’s NVIDIA GPUs (read with nvidia-smi) and Huawei Ascend NPUs (read with npu-smi info). It isn’t shown by default; turn it on first in Settings › Terminal › Sidebar tools. It’s laid out for hosts with eight:
- Summary: the model and driver version, the number of devices and how long the host has been up, and over all devices the average utilization, memory (how full, with used / total under it), the highest temperature and the total power.
- Devices: three lines a device. The first has its number (GPU 0, NPU 3; a card with more than one chip lists each, as NPU 0.1), model, temperature and power; the next two have its usage and memory bars, the same length so they compare. Click a device to unfold its details: model, UUID, bus ID, performance state, power and its limit, fan (when it has a reading) and health; “Expand all” and “Collapse all” at the top right do every device at once. A host with one device shows it unfolded.
- Compute processes: the processes computing on the devices, by device, the most memory first on each; each with its command line, memory, device, PID and user. A process
pscan’t see (in another PID namespace) has only its program name. Right-click one to “End process…” or “Kill process…”, as in Processes; both ask first.
A figure that can’t be read shows as “—”, not 0. Utilization and memory aren’t colored by how full they are: a GPU at 100% while training, or memory taken up front by an inference server, is how they should run. Temperatures of 80 °C or more show in yellow, 90 °C or more in red; a device in poor health (uncorrectable ECC errors on NVIDIA, an Ascend Health other than OK) has a yellow or red dot beside its number, and pointing at it says why. When nvidia-smi or npu-smi fails (a GPU fell off the bus, the driver isn’t loaded, no permission), what it said shows as it said it.
The data is read over this terminal’s existing SSH connection, with no second login and nothing to install; it refreshes every 2 seconds (counted from the end of the last reading, so a slow npu-smi slows it down), the uptime with it, reading only while GPU/NPU is showing. Each tool gets 3 seconds; one that doesn’t answer is stopped, and so is reading until you click the refresh button: a failing GPU can leave nvidia-smi stuck in the driver, and retrying would pile up stuck processes on the server. A host with neither tool says so. Not supported yet: AMD, Hygon DCU, Cambricon and other vendors.
Kubernetes
Section titled “Kubernetes”The Kubernetes sidebar uses kubectl and kubeconfig on the SSH host, over the terminal’s existing connection, with no second login. The host needs POSIX sh, kubectl, a current context and cluster read permissions. The tool is hidden for Windows hosts and external connections restricted to a single channel. It isn’t shown by default: turn it on in Settings › Terminal › Sidebar tools. Turning it off hides it and stops reading lists, logs and performance.
Select a context, then choose from all discovered namespaces or use “All namespaces”, the default. Browse nodes, workloads, services, configuration and storage, including HPA, PDB and EndpointSlice resources. Search filters names, namespaces, status and labels in the loaded list. Open a resource to inspect its properties and syntax-highlighted YAML; “Show all properties” unfolds the secondary ones. Detail values support native text selection and copying; right-click a field to copy all of it, or use “Copy summary”. Secret lists and details read metadata only. Workloads link to pods in the same namespace after verifying ownership and UID; the relationship view lets you navigate controllers, containers and configuration references. Services with a pod selector link to their pods too, and clicking a related pod goes on to its containers and logs. The overview’s related-pod list is independent of the diagram’s 160-node display limit.
“Edit YAML”, “Restart” and “Delete” are in the list’s “Resource actions” menu and at the top of the details. Deployments, StatefulSets and DaemonSets restart according to their update strategy, and a running pod managed by a supported controller restarts by being recreated. Every kind but Secrets can be edited, and every kind can be deleted. YAML is read-only until you choose “Edit YAML”; then “Save changes…” or ⌘S (Ctrl+S on Windows and Linux) submits it. YAML editing, workload or managed-pod restarts, and deletion require confirmation that identifies the context, the exact resource and the effect; cancelling writes nothing. Writes include UID and resourceVersion checks; failures and version conflicts retain the draft. Node and pod performance tabs query optional Metrics API data only while visible; node disk readings use the kubelet Summary API. They show CPU and memory with the same gauges and animation as Monitor, refreshed every 10 seconds, and node disk usage every 30 seconds; after a failed query they wait longer before trying again. Missing permissions or metrics are shown without hiding resource details. Memory uses GiB-scale G units; displayed resource and log timestamps use UTC+08:00 while YAML and copied raw logs retain their original values.
In a pod’s Logs tab, choose a regular, init or ephemeral container, the last 100–10000 lines and a time range from 5 minutes to 24 hours. “Previous container” reads the selected container’s previous instance. Search is case-sensitive, supports regular expressions, shows matched line counts and covers only the logs already read, at most 512 KB per read. Logs highlight timestamps, levels and JSON fields; copy individual lines or search results. “Live preview (2 s)” refreshes the latest retrieved window with serial requests. The buffer is capped at 512 KB / 10000 lines; long lines display up to 16 KB while search and copy use the full buffered text. Turn off auto-scroll to read earlier lines. Refreshing stops when leaving Logs, closing details or encountering a query error. Commands offers continuous --follow in the terminal.
Commands also generates describe, YAML, logs and /bin/sh exec commands, explicitly scoped to the selected context, namespace, resource and container. Copy them into a terminal on the same SSH host. Browsing does not modify kubeconfig or cluster resources. Editing, restarting and deleting need the matching RBAC write permissions, and change the cluster only after you confirm. Lists are read when opened, on a change of terminal or scope, after a change made here and on Refresh; they don’t refresh themselves. Structured reads use API pagination and optional gzip/base64 compression, with a 1 MB SSH response limit, 16 MB decompression limit and 64 MB / 100000-item list limit. Permission failures, an unavailable kubectl, API failures, data over the transfer limits and incomplete responses are displayed; namespace access denial never appears as an empty successful discovery. More details are in Kubernetes (in Chinese).
Projects
Section titled “Projects”Beside local terminals, the right sidebar has Snippets (the same Snippets as beside remote terminals; see above), Projects and Files (this computer’s folders; see above). Projects keeps local terminals as hosts are kept, in groups if you like. For example, make a group “shellrs” and open one terminal in it for Claude Code and another for cargo run. Each terminal remembers the folder its shell was last in, and those open when you quit ShellRS come back in their folders at the next launch.
- New local terminals: the plus button on the sidebar’s title bar, right of “Projects” and left of “…”, or the menu of the blank space, opens a terminal of no group; the plus button at the right of a group’s row, or New local terminal in a group’s menu, opens one in that group. Nothing to fill in: it opens at once, numbered (shellrs 1, shellrs 2… in a group, Terminal 1, Terminal 2… outside one). Its name in the list and on its tab follows the title the shell or a program sets, such as “✳ Claude Code” while Claude Code runs. After you close its tab or quit ShellRS, the last title still shows, and it shows again when the terminal reopens, until the shell or a program sets a new one. The numbered name shows only if nothing has ever set a title. Choose Rename… in its menu to give it a name you’ll recognize: that name then always shows, whatever the title. Leave the name empty to follow the title again. A new terminal in a group starts in the folder the group’s last terminal was in; others start in your home folder.
- Groups: the folder button beside the plus button, New group in the empty list, or the menu of the blank space; a group has only a name, such as work. Groups don’t nest, and two can’t share a name. Right-click a group to rename or delete it; deleting a group deletes the terminals in it too, closing the tabs of those open, after asking.
- The list: as in the host list, groups come first and terminals of no group after them all. A group’s row is its name; a terminal’s is two lines, its name and below it the folder it was last in (your home folder written as
~); hovering shows the full path. Open terminals have a green icon, closed ones a gray one. Click an open terminal to bring its tab to the front; click a closed one to open it again in the folder it was last in (or your home folder if that folder is gone). Click a group’s row to fold or unfold it; as in the host list, it stays that way at the next launch. - Dragging into order: drag rows as in the host list. Drop a group on the top or bottom half of another to put it before or after it. Drop a terminal on the top or bottom half of another terminal, in its group or another, to put it before or after it, on a group to put it last in that group, or on the blank space below the list to take it out of its group, last.
- Closing and deleting: closing a terminal’s tab (or choosing Close in its menu) leaves it in its group, gray, to open again with a click. To get rid of it, click the delete button that appears at the right of its row while the pointer is on it, or choose Delete in its menu. A terminal that isn’t open goes at once, without asking; one that’s open asks first, then its tab closes with it, ending what runs in it. Restart starts a terminal again in the folder it was last in, with the shell set now.
- Remembering the folder: wherever you
cdin the terminal, ShellRS remembers it, by reading the shell’s own current folder, with no shell setup. This works on macOS, Linux, and standard interactive PowerShell and Command Prompt sessions on Windows. Programs running in the terminal, such as Claude Code, don’t change the folder remembered. - Reopening at the next launch: which Projects terminals are open, in what order and which is in front is saved as it changes, so after quitting, a crash or a restart for an update, the next launch reopens them in their folders in the same order, with the same one in front; closed ones stay closed. Only Projects terminals come back, not local terminals opened with ⌘T; split layouts and the programs running in the terminals don’t come back either, so start those again yourself. This works when a bastion host launches ShellRS too, and the external connection’s tab is in front.
- Keeping terminal output: when a Projects terminal’s tab closes or ShellRS quits, its last 1,000 lines of output are kept, colors and all. The next time that terminal opens they’re shown first, followed by a dim line, “Above is what this terminal showed when it last closed”, and then the new prompt. If you ran
lsbefore quitting, that file list is still there next time. The output is stored as plain text interminal-output/in the data folder and is deleted with its terminal or group; turning off Keep terminal output in Settings › Terminal › Local terminal deletes all of it and keeps nothing more. Limits: if a full-screen program such as vim or htop is open when the terminal closes, nothing is kept (its screen isn’t output); if ShellRS crashes there’s no time to save, so the output kept before stays; Restart doesn’t show the old output.
AI assistant
Section titled “AI assistant”Beside SSH terminals the right sidebar has the AI assistant (after Files, shown by default; turn it off in Settings › Terminal › Sidebar tools). It starts off: opened, it points to Settings › AI assistant, where Open settings takes you. Add a model service there and turn on Enable AI assistant, its first item, to use it. Turned off again, model services and conversations stay. Ask it about this host in English, Chinese or Japanese, such as “Why is the disk full?” or “What does this error mean?”: the model reads the terminal, runs commands on this host and reads files, then answers. It isn’t beside Telnet, serial or local terminals.
- Model services: first add one in Settings › AI assistant with New…. Under the name, Preset lists common services: Anthropic, OpenAI, DeepSeek, Qwen, Kimi, Zhipu GLM, Doubao, SiliconFlow, OpenRouter, and Ollama and LM Studio on your own machine; picking one fills in the API type, the address and the name (a name you typed stays). For any other service (vLLM and so on), pick Custom and enter its address. There are three API types: Anthropic, OpenAI (Chat Completions) and OpenAI Responses. The Anthropic preset fills in Anthropic, the OpenAI preset OpenAI Responses and the others OpenAI; you can still change it after a preset fills it in. A new model service starts with the OpenAI preset. Under the address it says where requests go: the address followed by
/v1/messagesfor Anthropic,/v1/chat/completionsfor OpenAI and/v1/responsesfor OpenAI Responses, without the/v1when the address already has a version (such as…/v1or…/api/paas/v4). The API key is kept only in the system keychain; a local service needs none. A model service can have several models: Add model, to the right of Models, adds a row to type a name in, and the trash icon after a row deletes it; Refresh models adds the models the service lists that aren’t there yet (when it lists none, type them); OpenAI, Qwen, Doubao, SiliconFlow and OpenRouter list a great many, so only the chat models of the newest generation of common families (GPT, Claude, DeepSeek, Qwen, GLM, Kimi and others) are added, moving on by themselves when a new generation comes out, without dated snapshots or speech, image and embedding models. Type any others you use. Advanced, below the models, is folded away (a service with any of it set opens with it unfolded) and for now holds Context size: how many tokens a conversation may hold, such as128K,1Mor200000, from 1K to 100M. At 75% of it older tool output is left out, and at 90% the conversation stops and suggests a new one. Left empty, it goes by the address: 200K for Anthropic’s own service, 32K for services on this computer or the local network, 128K for the rest; the size the address gives shows under the field. Change it here when your model’s context is larger or smaller than that. Test connection, at the bottom left of the dialog, asks the first model a short question with what the form holds, to see that it works. New conversations use the Default model; at the bottom right of the input, left of the send button, a conversation can switch to any model of any service. With sync on, model services and their API keys sync to your other devices, as passwords do. - Conversations: Enter sends (or the round button at the bottom right of the input, which turns into Stop while it answers), Shift+Enter starts a new line; the answer shows as it’s written, and code blocks have a copy button. Answers, your own messages, and opened commands with their output can be selected by dragging, then copied with ⌘C (Ctrl+C on Windows and Linux) or Copy on the right-click menu; right-click a message for Copy message (an answer copies as its Markdown source), or a command for Copy command. At the top, open an earlier conversation about this host, delete the one on screen (the trash icon; it asks first, and it can’t be undone; not while it answers), or start a new one; to delete an earlier conversation, open it from the history first. Conversations are kept in
assistant.dbin the data folder, on this computer only, and don’t sync; Delete all conversations… in Settings › AI assistant deletes them. Below the input on the right, the conversation’s total tokens; point at it for input, output, cache and context. Some services don’t report usage, which it then says. It shows no costs. - Reading the terminal: nothing of the terminal is sent unasked; the model reads its last lines when it needs them, and a line in the conversation says what it read. Click it to see.
- Running commands: each command shows as a line; click it for the whole command (after
$, with thecdwhen it names a folder), followed by its output and exit code once it has run; a command waiting for your approval opens too, so you can read it first. They run in one of two ways, chosen in Settings › AI assistant or below the input:- In the background (the default): on a channel of its own on the terminal’s SSH connection, leaving the terminal alone, from the home folder. No TTY, and the shell’s startup files aren’t read (nvm, conda and the like may be missing). It waits up to 60 seconds, or up to 10 minutes when the model asks.
- In the terminal: typed into your terminal, where you see it, as you are now (after
su, or on a machine you ssh’d to from the terminal). It presses Ctrl+C first, which stops what runs there. It works with bash, dash and busybox on Linux, and not while a full-screen program has the screen. - External connections (bastion hosts that allow one channel) always run commands in the terminal, and can’t read files.
- Approval: set in Settings › AI assistant, and per conversation with the button at the bottom left of the input, whose menu says what each way asks about. Ask for approval asks before every command and file read. Approve for me (the default) runs them, asking only about dangerous commands, such as deleting, overwriting, stopping, rebooting or
sudo, and about files such as private keys or.env. Full access never asks, and asks you once before you switch to it. When asked, choose Run, Run and don’t ask again here about similar commands (in this conversation, later commands of the same program run without asking, and pointing at the button names the programs: approvesystemctl restart nginxandsystemctl status …and the like run directly; a pipeline or&&chain runs unasked only when every program in it was approved;sudocounts together with its program, apart from the program alone; what hands code to another program, such assh -c,python3oreval, can’t be told apart, so only that exact command is remembered; a file read remembers only that file), Insert into terminal (put it on the terminal’s line for you to run), or Decline. Dangerous commands are told by keywords: a command is asked about when it has a word such asrm,mv,cp,stop,restart,kill,reboot,delete,remove,drop,upgrade,--forceorsudoanywhere in it, writes into a file with>or>>, usessed -i, or hands code to a shell, Python and the like so what it does can’t be seen (sh -c,curl … | sh,$(…), here-documents); a command that only mentions such a word, likegrep stop app.log, is asked about too; what’s on the server can also lead the model to dangerous commands. Everything run shows in the conversation. - Reading files: the model can read the start of a text file (up to 256 KB) over the terminal’s SFTP.
- Secrets: before sending, ShellRS takes out what looks like private keys, tokens and passwords from the terminal’s text and commands’ output, as far as it can; what it misses goes as it is. It never gives the model a password from the keychain; when
sudoneeds a password, run it in the terminal yourself. - What is sent: when you use the AI assistant, your questions, what the model reads of the terminal, the commands it runs and their output, and the files it reads go to the model service you chose, not through ShellRS’s servers. How the service keeps and uses them is up to its terms.