Skip to content

Remote tabs on your servers

A remote tab is a terminal tab on one of your servers. Start Claude Code or Codex there, close the lid, and with tmux or herdr on the server the agent keeps working there; open the Mac again and the tab is back where it was. Next Term connects with the ssh you already use, and installs nothing on the server, except the Tab completion hook you allow.

File › New Remote Tab… (⌥⌘T) asks where to connect:

  • Host: a server you saved before, or New Host….
  • Name: what the tab and Next Term call it, such as web-1.
  • SSH destination: user@203.0.113.5, or a Host alias from your ~/.ssh/config. The port has a field of its own.
  • Folder on host: where the tab starts, absolute or starting with ~. A folder that is not there opens the tab in your home folder, and the tab says so.
  • Keep agents running: Off, tmux or herdr (see below).
  • tmux prefix: shown while Keep agents running is tmux: the prefix key and the history of Next Term’s tmux on that server (Next Term’s tmux).
  • Session: New session, or one still running on the server from a tab you closed, to reattach to it. With herdr, Default session or one of herdr’s named sessions.

Connect saves the host and opens the tab. Remove Host forgets a saved host; sessions kept on the server keep running there.

The Welcome window lists the servers you saved under SERVERS, after the projects: up to three of them, the one you picked last always among them, and every one that matches what you type in its search. Select one to see where it connects, its folder and how it keeps agents; ↩︎, Connect or a double-click opens a window with a tab on it, in its folder. While a window of its own is open on that server (one with no project, its tab in front there), the button reads Go to Window and brings that window forward, and ⌘↩︎ connects again in a new window. Such a window has a row of its own among the projects too, with the server’s ssh destination under its title and its agents’ marks. For a server kept with herdr, a line says what herdr’s agents there need while Next Term follows them, such as “herdr: 1 needs you, 3 working”. Connect to Server… (or ⌥⌘T) opens the sheet above over the Welcome window, with every server you saved under Host. Connect opens a window for the tab, and Cancel leaves everything as it was.

The tab is named after the host and folder, such as “web-1: app”. While it connects, the title says so: (connecting), (log in) when ssh is asking you for something in that tab, (waiting) when another tab is logging in to the same server, and (disconnected).

A remote tab has a small server before its title. Tabs on your Mac have none, so the remote ones stand out. The dot on the server’s corner is the connection:

MarkConnection
Filled green dotConnected
Amber ringConnecting, logging in, or waiting for another tab’s login to the same server
Red dot with a bar, the server fadedDisconnected: ↩︎ connects again
No dot, the server fadedThe shell on the server ended, and the tab says why; ⌘W closes it

The marks differ in shape as well as colour, so they read without colour too. The agent’s own mark (the spinner, the check, the “!”) keeps its place at the start of the tab, before the server.

  • Hover over a tab for where it runs, such as “Remote: web-1 (deploy@203.0.113.5), connected”. VoiceOver says the same.
  • A tab too narrow for its whole title drops “web-1: ” first, then the note, and shows “app”: the mark says the rest. Selecting the tab or pointing at it keeps the same words: its shortcut, such as ⌘2, gives way to them.
  • A split tab shows the weakest connection among its panes, and its tooltip names that pane’s server.
  • The » menu of tabs that do not fit shows the same marks.
  • The project sidebar stays on your Mac’s files while a remote tab is active (the tab’s folder is on the server). A line under its header says “Files on this Mac”, with the server and its name on the other side.
  • The window title names the host, for the Window menu, Mission Control and VoiceOver: “shop — claude — on web-1” in a project’s window (or “shop — web-1: app”, where the tab’s name already says it), and in a window with no project, named after the server, “web-1 — app”.

Next Term runs the system’s /usr/bin/ssh, so everything in your ~/.ssh/config applies: Host aliases, keys, ProxyJump, UseKeychain and agents such as 1Password, Secretive or gpg-agent. ssh gets the PATH and SSH_AUTH_SOCK your login shell sets, so a remote tab connects the way ssh web-1 does in a local tab.

If ssh needs a password, a passphrase or a one-time code, it asks in the tab, as it would in any terminal. A tab that is asking for one in the background is marked for attention, and sends a notification while you are in another app.

All the tabs on one server share one connection, so you log in once. Up to 7 tabs share a connection; an 8th tab on the same server opens a second one, and asks you to log in once more.

Each host says how its tabs are kept when your Mac disconnects, sleeps or is off:

ChoiceOn the serverWhen the connection drops
OffA plain shellWhat runs in the tab stops. The tab stays; ↩︎ opens a new shell there.
tmuxNext Term’s own tmux server (tmux -L nextterm), separate from yoursThe session keeps running. The tab reattaches by itself when the connection is back.
herdrThe herdr you installed on the serverherdr keeps its agents running, and the tab shows their state: working, waiting for a decision (and which agent), or idle. Each agent is also followed on its own (herdr’s agents).

Next Term never installs tmux or herdr. If the one you chose is not on the server, the tab says so and opens a plain shell instead: its tooltip says “Sessions kept: Off”, and list_tabs gives it keep: "off" with fell_back: true.

To find herdr, a tab looks first at the copy your running herdr server uses, then at your login shell’s PATH (read once, with no terminal, for at most 3 seconds), then in herdr’s own install folders and in Linuxbrew, mise, asdf and Nix. A copy counts only if it runs. When herdr isn’t found, the tab says where it looked and links herdr’s install page; a tab that fell back to a plain shell says so once herdr is on the server.

If herdr stops answering, the tab’s tooltip and list_tabs say why: its server isn’t running, it needs a restart after an update, or it hasn’t answered for three checks. That clears as soon as herdr answers again.

Right and middle clicks go to herdr, so its right-click menu opens as it does in other terminals. ⇧-right-click or ⌃-click opens Next Term’s menu instead. A tab kept by Next Term’s own tmux keeps Next Term’s menu, since that tmux turns the mouse on only for the wheel.

  • True colour and synchronized output. Next Term’s tmux settings tell tmux that the tab takes both (tmux’s terminal-features, in tmux 3.2 and later), so tmux passes them on to the tab.
  • Prefix and history. In New Remote Tab…, while Keep agents running is tmux, a tmux prefix: row sets the prefix key, ⌃B (tmux’s own), ⌃A, ⌃Space or ⌃], and the History: each pane keeps, from 1,000 to 200,000 lines (50,000 when left empty). With a prefix other than ⌃B, pressing it twice sends it on to the program, and ⌃B goes to the program like any other key. The saved server keeps both, and an agent can change them with edit_host.
  • When they apply. Each time a tab from this Mac opens on the server, these go in Next Term’s tmux settings there, which a tmux server reads as it starts. A tmux server already running takes them when a tab attaches while no other client is attached to it, so a session another Mac shows never changes under it; until then they wait. A new history applies to the panes made after.
  • A session that was gone. When a tmux tab comes back to its session (reconnecting, reopening after a launch or an update, Reopen Closed Tab, or a session picked under Session) and the session is no longer on the server, ended there or gone with a restart, tmux starts a new one in its place. The tab says so: while it is named after its server and folder, its title reads “web-1: app (new session: the old one was gone)”, list_tabs gives it session_created: true, and while Next Term isn’t in front, a notification says that what ran there has stopped. This clears at the tab’s next connection. A brand-new tab is never marked, since its session is new anyway.

ssh notices a dead connection within a minute. A kept tab (tmux or herdr) then says “Connection to web-1 lost. Reconnecting in 2 s” and tries again by itself, waiting a little longer each time, up to a minute, for about half an hour. When one tab on a server gets its connection back, the others that lost theirs come back at once. Press ↩︎ to try again right away. A kept tab that could not connect at all, say at launch before the Wi-Fi is up, tries a few times, then waits for ↩︎.

A tab never retries by itself when ssh refused the login (a wrong password, a key the server does not accept, a host key that did not verify). It says why and waits for ↩︎, so a login that cannot work is never repeated on its own.

When Next Term quits, or the server restarts

Section titled “When Next Term quits, or the server restarts”

At quit, the connections close and kept sessions go on running on the server. When Next Term brings your tabs back after an update or a quit (What comes back), kept tabs reattach in their own window and place, split panes included, and a tab kept Off opens a fresh connection to the same server and folder, with a note of its last command. Nothing is typed into either.

After a launch that brings no tabs back, such as one under Show the Welcome window, Next Term opens the tmux and herdr tabs again once the first window opens, in their order, and reattaches them, each in its project’s window if that is open, else in the first window. Split panes come back as separate tabs. A host you pointed somewhere else since (another address or port) is not followed: those tabs stay closed, and Next Term tells you.

If the server itself restarts, tmux sessions are gone; a tmux tab that comes back to one says it has a new session. herdr brings its layout back when Next Term reconnects to it, and resumes the agents it supports from their saved conversations.

Agents in a remote tab get the same marks as local ones: the spinner while they work, the check when they are done, the amber “!” with the question when Claude Code, Codex, Command Code or OpenCode needs a decision. OpenCode’s screen is read there too: Next Term knows it by the program the server reports, or by the title OpenCode gives the tab, which Next Term’s own tmux passes on. Every two seconds Next Term asks each server what runs in front of each tab, over the connection the tabs already have. That check never logs in by itself and never asks for anything.

Links in a remote tab’s output open web pages only: a path there names a file on the server, not on your Mac.

⇥ at the prompt lists the server’s folders and files, read over the same connection without writing anything there. See Tab completion on your servers.

A tab that shows herdr follows each of herdr’s agents on its own, with herdr’s own state, name and title for each: a tab kept with herdr on a server, and herdr run in a tab on this Mac. Each agent gets a row in the tab list, a place in Go to Agent, notices of its own and its own count in the Dock badge, and agents over MCP reach it by an id of its own (herdr’s agents over MCP). Next Term reads all of it from herdr’s own commands at each 2-second check: on a server over the connection the tab already has, on this Mac from that herdr itself.

With the tabs in a list (View › Terminal Tabs › Left or Right, see The tab list), each of herdr’s agents is a row under its tab, or under its pane in a split tab, in herdr’s order:

  • The row shows herdr’s name for the agent (the one you or a naming plugin gave it in herdr, else what runs, such as claude), herdr’s title for it, and how long it has waited or worked, such as “waiting 4 min”. Names and titles are shown as herdr gives them, with stored keys masked. Two rows that would read the same add the last folder each one works in, else its pane id.
  • The mark is herdr’s state: the amber “!” while it waits on a decision, the spinner while it works, the check when it is done. Idle and unknown show none.
  • Show Folders gives the row a second line: the question it asks, else where it works, such as “web-1: /srv/api”.
  • More than six agents in one tab fold their idle ones into one row, “▸ 5 idle”, when there are two or more of them. Click it to open it. An agent that waits, works or is done never folds, and no row moves.
  • Click a row: its tab comes forward and herdr moves its view to that agent’s pane. ⌥-click peeks at it instead.
  • Right-click a row for Show in herdr (as a click does), Peek, Why This State?, Keep as Unread, Mute Notices, Copy Pane ID and Copy Folder.
  • Hover over a row for its name, pane id, state and title, then its question or its folder. Times count from when Next Term saw the state begin, and the tooltip says so.

On the tab bar at the top the agents have no rows of their own; a herdr tab’s tooltip lists them, up to eight. The tab itself is amber while one of its agents waits on a decision, naming it and its question, and shows the spinner while any of them works.

herdr may count a turn that ends in its focused pane as seen. Next Term keeps a finish as not seen when the agent was off screen as it ended, or ended in herdr’s unknown, until you choose the agent or herdr reports it at work again. That flag is Next Term’s own: herdr’s state is left as it is, and the row’s tooltip says “Kept unread in Next Term.” Keep as Unread sets the same flag by hand, for an agent that is neither working nor waiting on a decision. Mute Notices stops one agent’s notices until you unmute it, its pane goes, or Next Term quits; its row and its count in the badge stay.

Next Term also tells a program that asked to hear about focus, such as herdr’s screen, vim or tmux, when you stop seeing its tab: another tab or window in front, the window minimized, the terminal folded, or Next Term in the background.

Window › Go to Agent… (⌃⌘A) opens a menu of every agent in every window: herdr’s agents and your agent tabs alike, so you never need to know which kind is waiting.

  • Needs You comes first: what waits on a decision, then what finished and you haven’t seen, oldest first. The agent on screen is left out of it.
  • Every other agent follows under a heading for where it runs: This Mac first, then each server, such as “web-1”, or “web-1 — review” for one of herdr’s named sessions. “web-2 (no herdr tab)” and Not Connected are servers without a herdr tab, and “Build box (herdr)” is one of herdr’s own machines.
  • Each item reads like “codex — Needs your decision · waiting 4 min”. Type a name to select it; the first nine items carry the keys 1 to 9.
  • Choose one to go to it: its tab comes forward and herdr moves its view to the agent’s pane. You chose it, so nothing asks. A herdr older than 0.7.5 can’t move its view to an agent, and the tab says so. An agent tab simply comes forward.
  • Hold ⌥ and the items read “Peek at …”: choosing one peeks at it, and nothing moves.
  • Answer sits under an agent of a herdr tab whose question and choices were read, with an item per choice, such as “1 Yes”. It answers the way answer_agent does, and herdr’s view does not move.
  • Nothing runs to make it: the menu is built from what the last checks found, and it doesn’t change while it is open.

Agents › Go to Next Agent Needing You (⇧⌘U) counts each of herdr’s agents as it counts a tab, so it goes straight to that agent’s pane, and the Dock menu lists its window (see Go to the next agent needing you). The Dock badge counts each of herdr’s agents that needs you once, however many tabs show its session, and none that is on screen.

Peek shows one agent in a small panel beside its row, without bringing its tab forward and without moving herdr’s view, which every window attached to that herdr session shares. Open it with ⌥-click on the agent’s row, Peek in the row’s menu, or ⌥ in Go to Agent, where it opens over the terminal. It works for an agent tab too: ⌥-click the tab’s row.

  • Its recent text: the last 40 lines, read from herdr (herdr agent read) at each 2-second check while Peek is open and never after, with stored keys masked as read_tab masks them. For an agent tab they come from the tab itself, so nothing runs.
  • Its question, while it waits on a decision, with a button for each choice; 1–9 pick one. It is answered the way answer_agent answers: the pane is read again first, and a question that changed meanwhile is not answered.
  • A line to send: type it and press ↩︎, and it goes to the agent as a prompt, also while the agent works. Not while it waits on a decision: answer that first. A line you haven’t sent stays as that agent’s draft until you send it, the agent goes, or Next Term quits.
  • ⌘2 Conversation: the agent’s last turns from its own transcript, for Claude Code and Codex. The transcript is found only through the session herdr names for the agent (for an agent tab, the one Next Term ties to it, on this Mac only), and only its last 256 KB are read. When it can’t be read, Peek shows the screen and says why. ⌘1 shows the screen again, and Peek keeps your choice until Next Term quits.
  • ⌘E Why This State?: herdr’s own reasons for the agent’s state (herdr agent explain, herdr 0.6.9 and later). ⎋ goes back.
  • ⌘↩︎ goes to the agent, as a click on its row does. ⎋ closes Peek.

What you do in Peek is your own act: it never asks, and an agent you answer or prompt there is yours again, not an MCP agent’s to drive.

Each of herdr’s agents gets notices of its own, as Settings › Notifications says for agents:

  • “codex needs your decision”, with the question read from the agent’s own pane, once herdr has reported it blocked on two checks in a row; a blocked that lasts one check posts nothing. When no question can be read there, herdr’s words stand in, such as “codex (w1:p2) needs a decision”.
  • “codex is waiting for you” when it finished, with its name and title.
  • The subtitle says where: the server and the tab, or on this Mac the tab and its project.
  • One notice per agent, however many tabs show its herdr session. Each replaces that agent’s earlier one, never another agent’s, and goes away by itself once the agent no longer needs you that way: it is past the decision, it is no longer done, herdr no longer lists it, or it is on screen.
  • None comes for an agent on screen (its tab is in front, and herdr shows the agent’s own herdr tab there), or for one whose notices you muted. While you are in Next Term, an agent that an agent over MCP drives doesn’t notify you when it finishes; its decisions still do.
  • Click it: its tab comes forward and herdr moves its view to the agent’s pane.
  • A decision whose choices were read from the pane carries them as buttons, four at most, such as “1 Yes” and “2 No”. With more choices it carries none, and a click goes to the agent.
  • A finish has Reply: type a line and Send, and it goes to the agent as a prompt.
  • Next Term stays where it is. A button answers the way answer_agent does: the pane is read again first, and when the question changed meanwhile nothing is typed, and the notice says so. A reply that can’t go (herdr refuses a prompt while the agent waits on a decision, and text that holds one of your stored keys is refused) is not sent, and the notice says why.
  • No buttons while the tab is not connected, since nothing could answer then.

Notices for your own agent tabs carry the same buttons and Reply.

herdr can run several named sessions on one server. In New Remote Tab…, with Keep agents running on herdr, Session offers Default session and each named session herdr lists there, with “(not running)” after one that isn’t. The line under it names a few of the running sessions’ agents, such as “claude — working — ~/api”. A tab opens only a session herdr lists, and never makes one by its name. Go to Agent puts a named session’s agents under “web-1 — review”.

  • Connected: while a server kept with herdr is connected through tabs that don’t show herdr, such as tmux or plain tabs, the connection’s own check also asks herdr’s default session there. Its agents go in Go to Agent under “web-2 (no herdr tab)”, count in the Dock badge, and post notices with “web-2 — no herdr tab” as their subtitle. Their panes are read only through a herdr tab, so a decision’s notice has herdr’s words, no question and no buttons, and Peek can’t open for them. Choosing one, or clicking its notice, opens a herdr tab there, in the window that holds that server’s tabs, and herdr moves its view to the agent once it lists it. A herdr tab there then takes them over.
  • Saved, not connected: each saved host kept with herdr that has no connection is one item under Not Connected, such as “web-3 — not connected”. Nothing runs for it. Choosing it opens a herdr tab there, which logs in as any new tab does.

Run herdr’s screen in a tab on this Mac (herdr, herdr --session review or herdr session attach review), and the tab follows herdr’s agents as a herdr tab on a server does: rows, Go to Agent, Peek, notices, the Dock badge and ids over MCP. While herdr’s screen is in front of the tab, Next Term runs one herdr agent list every 2 seconds through that same herdr, with its session and socket, as a process with no shell between. Other herdr commands you run in a tab, such as herdr agent list, are plain commands.

Next Term never starts this herdr, and this tab is not kept the way a server’s herdr tab is: after a quit, Next Term doesn’t reattach it or start herdr there by itself. Leaving herdr’s screen is no finish.

herdr 0.9.0 and later can save machines and reach their agents over its own SSH connection. While herdr runs in a tab on this Mac, Next Term reads that herdr’s list of machines (herdr machine list --json, every 30 seconds) and, at each 2-second check, one machine’s agents (herdr --machine <id> agent list), in turn over the first four enabled machines. It opens no connection of its own to them.

  • Their agents go in Go to Agent under the machine’s label, such as “Build box (herdr)”, count in the Dock badge, and post notices with buttons and Reply, answered through that herdr. They have no rows in the tab list, which shows the agents of that herdr’s own server.
  • Choosing one, or clicking its notice, peeks at it: herdr can’t be told which machine its screen shows. ⌘↩︎ in Peek asks herdr to focus the agent there and brings the herdr tab forward; herdr’s screen shows that machine once you pick it in herdr’s own sidebar.
  • A machine herdr can’t reach on three reads in a row becomes one item, “herdr can’t reach it”, with herdr’s last words in its tooltip, until a read works again.
  • No conversation in Peek for them: herdr gives their screen only.
  • The list is only read. Next Term never adds, renames, enables, disables or removes a machine; that stays herdr machine … in a terminal.

Next Term runs only herdr’s own commands: its agent list, reading a pane, a prompt or text, keys, focus and agent explain, its tab and session lists, its list of machines, and --version to say which herdr it is. It never installs, starts, stops or updates herdr, never makes a workspace, pane or session, and never stops or deletes one of herdr’s sessions.

An agent over MCP can start one of herdr’s agents in a new herdr tab (start_agent: herdr’s tab create, then agent start, after reading herdr’s kinds from agent start --help) or end one (close_tab on its id: herdr’s pane close), each only after you approve it on the Mac, in a window that shows herdr’s commands. Neither goes to one of herdr’s own machines, and herdr’s sessions and servers stay running. See Start and end an agent. Until then, Next Term never makes a herdr tab or ends one of herdr’s agents.

Where a herdr lacks a newer command, Next Term uses the older one herdr has, such as pane list before herdr 0.5.10 or tab focus before 0.7.5, or says which herdr is needed. On a server, these commands run over the tab’s own connection, two at a time beside the status check, and never log in by themselves.

Closing a tmux tab only detaches from its session. If something runs in it, Next Term says what keeps running and where (“claude keeps running on web-1, in tmux session nt-app-1a2b3c”) and offers:

  • Close Tab (Close Pane for a pane of a split tab): the session keeps running. Reattach to it later from New Remote Tab…, under Session, or with File › Reopen Closed Tab (⇧⌘T) right away.
  • End Session: stops the session and everything in it. The tab closes only once the session has ended.

Closing a window or a split tab names the sessions that keep running too. Closing an Off tab warns about what would stop, including jobs suspended or running in the background on the server.

An agent ends a tmux session (end_session, or close_tab with force) only after you approve it on the Mac; see Changes that ask on the Mac.

Agents that use Next Term’s MCP server get nine tools for servers:

ToolWhat it does
list_hostsThe saved hosts and how each keeps agents running, with a host’s tmux_prefix and tmux_history when they are set
add_host, remove_hostSave a host, or forget one. add_host never points a saved host at another address; edit_host does that, and both ask on the Mac first.
edit_hostChange a saved host: only the fields given, among name, destination, port (or clear_port, for ssh’s own), directory, keep, tmux_prefix (C-b, C-a, C-Space or C-]) and tmux_history (1,000 to 200,000 lines). It asks on the Mac first.
check_hostWhat a server has: OS, shell, tmux and herdr, git, the agents on its PATH (claude, codex, gemini and opencode, which is also looked for where its installer, Bun and npm put it), kept sessions
new_remote_tabOpen a tab on a server and run a command in it, such as claude, or reattach to a session: one of Next Term’s tmux sessions, or with keep herdr, one of herdr’s sessions. A tmux session the server doesn’t list is refused while a tab there is connected; with none connected, the tab opens expecting it, and says so if it was gone.
host_sessionsThe sessions kept on a server: Next Term’s tmux sessions, herdr’s sessions, and the agents of herdr’s running sessions with their state
end_sessionEnd one of Next Term’s tmux sessions on a server, and what runs in it, over a tab’s open connection. Never one of herdr’s sessions. It asks on the Mac first, showing who is attached.
host_changesWhat changed in a git work tree on a server: files, a diffstat and the diff

list_tabs names each remote tab’s host and session, and whether it is still connecting. A tab that shows herdr also lists herdr’s agents, each with an id of its own that read_tab, wait_for_tab, send_to_tab, press_keys, answer_agent, show_tab and focus_tab take as they take a tab’s, and close_tab, which ends that agent once you approve. See herdr’s agents. Every tool that saves a host or runs something on a server is marked so that your agent’s client asks you first. The checks run over a connection a tab already has; with no tab connected to a server, they say so instead of logging in. An agent never types into a tab while ssh is asking you for a password.

Saving, changing or forgetting a server, and ending a tmux session, wait for your answer on the Mac:

  • Which calls: add_host, remove_host, edit_host, end_session, and close_tab with force on a tab kept by tmux, which ends its session. Closing that tab without force only detaches, as before.
  • The window is the one other changes use (Approving changes). It names the tab that asked and gives the agent’s reason in its own words, then what would change: a new server’s name, destination, port, folder and how it keeps agents; each changed field, old and new; how many tabs are open on it. Approve makes the change; Decline, Decline and Stop Asking or no answer within about 50 seconds changes nothing. A call that would change nothing answers at once, without a window.
  • Refusals come first, so a call that would fail opens no window: the host’s own rules (a tmux history outside 1,000 to 200,000 lines, say), an unknown host or session, port together with clear_port, add_host with another address for a saved name (it points to edit_host), and your own tab’s session.
  • Looked at again after Approve. If the saved servers changed while you were asked, nothing changes, and the agent is told so.
  • Ending a session: the window shows the terminals attached to it, and the tabs here that show it, which close once it has ended. After Approve, Next Term looks again: if another client attached meanwhile, such as another Mac, nothing ends. It needs a tab connected to that server, since Next Term never logs in for it, and it ends only Next Term’s tmux sessions, never herdr’s.
  • A new address is a new host. edit_host with a new destination or port gives the host a new id, as New Remote Tab does: tabs saved for the old one are not reopened there, and tabs open on it keep the old settings until they close.

edit_host and end_session are available to agents on this Mac only for now.

  • Host keys are never accepted silently. A new host key is asked about in the tab, and a changed one is refused, whatever your ssh config says, for jump hosts too. Background checks never log in, so they never meet a host key at all.
  • Nothing is installed on a server, except the Tab hook you allow. tmux and herdr are used only if you installed them. Next Term keeps a few small files in ~/.cache/next-term on the server: each tab’s shell process, Next Term’s tmux settings, and where herdr was found. The Tab completion hook goes in ~/.cache/next-term/completion only after you allow it for that server, and Remove deletes it.
  • No passwords are stored. Saved hosts hold a name, a destination, a port and a folder, and a tmux prefix and history when you set them. ssh does every login.
  • Your ssh config is never written. Next Term reads it the way ssh does, through its own small config file that adds the host-key rule and includes yours unchanged.
  • No port or socket is forwarded. Next Term clears every port forward, even ones in your ssh config, and never forwards its own MCP socket or editor links, so nothing on the server can reach back to Next Term. Agent forwarding is as your ssh config sets it.
  • Commands are never pieced together from text. What Next Term runs on a server is a fixed script, sent encoded, with every name and folder quoted, so a folder or session name cannot become a command. herdr’s pane, tab, session and machine ids are checked against herdr’s own rules and never rewritten to fit.
  • A line for one of herdr’s agents is herdr’s argument while herdr runs, on the server (or on this Mac, for a herdr here), where others there can see it with ps. So text that holds one of your stored keys is refused, from Peek, a notice’s Reply or MCP alike. To give a command a key, use run_with_secrets in a tab.
  • Split panes come back as separate tabs after a relaunch.
  • When a launch shows the Welcome window, a kept tab whose project you don’t open reattaches in the first window you open, which can be another project’s.
  • The Session list, and host_sessions, need a connection to the server: a tab connected to it, or up to 10 minutes after the last one closed. After that, open a tab on the server to see them.
  • An 8th tab on one server asks you to log in once more (see above).
  • A jump host written as ProxyCommand ssh … instead of ProxyJump follows your own ssh config for its host key. The server itself is still asked about.
  • In a tmux tab, scroll with the mouse wheel; the history is tmux’s.
  • Next Term is tested with tmux 3.2 and later.
  • Some of herdr’s commands need a newer herdr: moving its view to an agent 0.7.5, Why This State? 0.6.9, its own saved machines 0.9.0. An older herdr gets the rest, and Next Term says what it lacks.
  • herdr’s agents on its own machines have no tab-list rows, and going to one peeks at it, since herdr can’t be told which machine its screen shows. Next Term follows four of a herdr’s machines at a time.
  • Without a herdr tab on a server, its agents’ decisions come in herdr’s words, without the question or buttons, and Peek can’t open for them.
  • Peek’s Conversation reads Claude Code’s and Codex’s transcripts only.
  • host_sessions, and the sheet’s Session list, give the agents of herdr’s default session and of up to eight other running sessions.