On December 3, Superlogical removed the waitlist from Rex, the terminal Mitchell Hashimoto has been building since he left HashiCorp. Rex is not another terminal with an AI sidebar bolted on. It is a terminal and a persistent multiplexer designed around a different question: what does a terminal look like when the thing typing in it is often not a person, but a coding agent?

The answer has three parts. Sessions live on a Rex server, not in a window, so they survive a closed laptop, a server update, and a reboot. The server is scriptable through a real CLI — rex run starts a command in a pane, rex capture reads its screen, rex wait blocks until it finishes, rex send types into it — so an agent or a shell script can drive a terminal the way a person would, without screen-scraping. And the whole thing is free, needs no account, and reports no telemetry: Superlogical's words are "free and always will be".

This tutorial installs Rex Server 1.0.1 on Ubuntu 24.04, runs the complete agent loop against a real demo project, teaches Claude Code and Codex to use Rex, and proves the sessions survive a server restart. Every command below was run in a sandbox on December 3 against the stable channel, and every output is verbatim. One boundary, stated up front: the Mac and iPhone apps were not run live here — there is no Mac in the sandbox — so the remote-access step quotes the official docs and says so.

What you'll need#

  • A Linux machine, x86-64 or ARM64, with glibc 2.26 or later (Ubuntu 18.04, Debian 10, RHEL 8, or newer). The sandbox used Ubuntu 24.04.5. FreeBSD 14 and Windows 10 1809 have server builds too; this tutorial uses Linux.
  • curl and a shell. No compiler, no package manager gymnastics, no account, and no API key. Rex has no login system of its own yet — the docs recommend SSH for remote access, and a full authentication system is planned.
  • Cost: nothing. Rex is free, self-hosted, and collects no telemetry.
  • Optional, for the last step: a Mac running macOS 15 or an iPhone on iOS 18, if you want the graphical clients. The server and the CLI work fully without them.

1. Install Rex Server on Linux#

There are two ways in. The install script adds Rex's package repository to apt, dnf, zypper, pacman, or apk and installs the rex package, so updates arrive with normal system updates. The binary-only install puts one file in /usr/local/bin and nothing else — the right choice on a container, a VM without systemd, or a machine you do not want to add a repository to. This tutorial uses the binary install. Run the script with --dry-run first to see exactly what it will do:

curl -fsSL https://pkgs.superlogical.com/rex/install.sh -o install.sh
sh install.sh --tarball --dry-run
+ fetch https://blob.superlogical.com/api/releases/rex/stable
+ fetch https://blob.superlogical.com/download/rex/stable/fd6318a2a8b1aeb29f554dc25d55aaaa8febbdb0/rex-linux-amd64.tar.gz > /tmp/tmp.iTB3skvGqT/rex-linux-amd64.tar.gz
+ verify sha256 5edbd023e837b88cc376b547ac0c8408091930ba61cb941e5b429da1e22a19ac
+ install -m 0755 /tmp/tmp.iTB3skvGqT/rex /usr/local/bin/rex
+ ln -sf rex /usr/local/bin/rex-open
Dry run: nothing was changed.

The dry run shows the whole story: it fetches the stable release tarball, verifies its SHA-256, installs the binary, and symlinks it as rex-open. Now run it for real:

sh install.sh --tarball
Installed Rex stable (fd6318a2a8b1aeb29f554dc25d55aaaa8febbdb0) into /usr/local/bin.
Each account can set up its own Rex server, started at boot, with: rex server install
The system services come with the rex package only. See https://pkgs.superlogical.com/rex/ to install it.

Check the version. Rex 1.0.1 was released on December 3, the same day the waitlist came off:

rex version
rex 1.0.1
commit: fd6318a2a8b1aeb29f554dc25d55aaaa8febbdb0
built: 2026-12-03T16:21:45Z
api: revision 31 (supports 0 to 31)

Three release channels exist — stable for tagged releases, preview for tagged previews of the next release, and snapshot for frequent, likely unstable builds. The commands above use stable; pass --channel preview to the install script to switch. On Debian and Ubuntu, note that an unrelated Perl tool also ships a package named rex — the install script pins its own repository above it so apt installs the right one, and rex -v printing (R)?ex is the tell that the pin lost.

2. Start your personal server#

A Rex server is a background process that owns your sessions. Start one for your account:

rex server start
Rex server running at unix:///home/hatch/.local/state/rex/run/server.sock (pid 8206)

The path will show your own home directory. Check that it is healthy:

rex server status
you: uid 0 over unix
endpoint: unix:///home/hatch/.local/state/rex/run/server.sock
listener: unix:///home/hatch/.local/state/rex/run/server.sock (unix, peer_credentials, primary)
pid: 8206
started: 2026-12-03T23:16:43Z
version: 1.0.1
api: revision 31 (supports 0 to 31)
exit-empty: false
sessions: 0

Two details matter. First, the server listens on a Unix socket in your home directory, not a TCP port — nothing is exposed to the network by default, and remote access goes through SSH, covered in step 7. Second, rex commands autostart a missing local server on their own (--autostart defaults to true), so after this first start you will rarely type rex server start again.

On a normal machine with systemd, rex server install sets up a user service that starts the server at boot and keeps it running while you are logged out (it enables linger for you). In a container without a systemd user session it fails cleanly, and the error tells you what to do instead:

rex server install
Error: rex server install needs systemd's user manager for your account, but it could not be reached (Failed to connect to bus: No medium found). That happens in a container without systemd, and in a shell started with su or sudo instead of a login. Run "rex server start" instead, for a server that runs until the machine restarts

That is the expected result on a container or a minimal VM. Use rex server start there; use rex server install on a desktop or a server with a real login session.

A laptop and a phone connected by glowing lines to a Linux server rack, with terminal sessions flowing between them
AI-generated illustration for AI Frontier Post

3. Create a session and run your first command#

A session is a named collection of windows and panes that lives on the server. Create one for a project:

rex new demo -c ~/demo-proj
session:01a23e32-5c0a-7575-a64b-89c7e8db5f34

rex new opens one window holding one terminal running your shell, in the directory you pass with -c. Give it a command after -- and that command runs instead of the shell — rex new build --cwd ~/src/app -- make is the documented form. List what you have:

rex ls
LABEL  ID
demo   db5f34

Now the demo project. Three small files stand in for a real codebase — a Makefile with a test target, a script that asks a question, and a slow job:

cat > Makefile <<'EOF'
test:
	@echo "== demo test suite =="
	@python3 -c "print('test_add: PASS'); print('test_subtract: PASS'); print('test_divide: PASS')"
	@echo "3 passed in 0.04s"
EOF
cat > ask.py <<'EOF'
print("Deploy to staging? This will restart the service.", flush=True)
answer = input("[y/n] ")
print(f"You answered: {answer}", flush=True)
if answer.strip().lower() == "y":
    print("Deploying... done.", flush=True)
else:
    print("Aborted.", flush=True)
EOF
cat > slow.py <<'EOF'
import time
for i in range(1, 6):
    print(f"step {i}/5: processing batch {i}...", flush=True)
    time.sleep(1)
print("ALL DONE", flush=True)
EOF

Run the tests in a new pane, exactly as the announcement's own example does:

rex run -s demo --label tests --split=below -- make test
block:01a23e32-5c7b-7830-aad2-88aa9192cd80

rex run starts the command in a new block — --split=below places it under the current pane, --label names it so later commands can find it, -s demo picks the session. Now wait for it to finish and read its screen:

rex wait tests; echo $?
3
rex capture -b tests
Error: block target "tests" not found

That failure is the first real lesson Rex teaches, and it is worth hitting on purpose. A block closes when its command exits — so by the time wait ran, the block was already gone, and wait reported it as not found with status 3. The rex wait --help text says it plainly: "A target that was already closed when wait started is reported as not found, with status 3." The fix is --keep-open, which keeps the terminal alive after its command exits:

rex run -s demo --label tests2 --split=below --keep-open -- make test
rex wait tests2; echo $?
rex capture -b tests2 --trim
block:01a23e32-a472-7388-8d89-47b063ec2146
0
== demo test suite ==
test_add: PASS
test_subtract: PASS
test_divide: PASS
3 passed in 0.04s

That is the whole loop in miniature: run starts the work, wait returns the child process's exit status (0 here), capture prints the pane's screen and scrollback. Rule of thumb: always pass --keep-open when you intend to read a pane after its command finishes. Without it, there is nothing left to capture.

4. The agent loop: capture, wait, send#

Tests are the easy case — they end on their own. The interesting case is a process that stops and waits for a person, which is exactly what coding agents do when they need a decision. Run the deploy prompt in a pane:

rex run -s demo --label deploy --split=below --keep-open -- python3 ask.py
rex capture -b deploy --trim
block:01a23e32-eead-7039-8a79-5d34278b58f4
Deploy to staging? This will restart the service.
[y/n]

The pane is sitting at the prompt. Answer it from another shell — or from a script, or from an agent — with rex send, then press Enter with rex send-key:

rex send -b deploy 'y'
rex send-key -b deploy enter
rex capture -b deploy --trim
Deploy to staging? This will restart the service.
[y/n] y
You answered: y
Deploying... done.

Two details from the rex send --help text: send types the text exactly as given, with no newline added — that is why Enter is a separate step — and if you omit the text it reads from stdin, so printf 'y\n' | rex send works too. send-key takes key names such as enter, ctrl+c, and shift+left.

The third shape is a long job you check on while it runs. Start the five-step job and capture it mid-flight:

rex run -s demo --label slow --split=below --keep-open -- python3 slow.py
sleep 2
rex capture -b slow --trim
step 1/5: processing batch 1...
step 2/5: processing batch 2...
step 3/5: processing batch 3...
rex wait slow; echo $?
rex capture -b slow --trim
0
step 1/5: processing batch 1...
step 2/5: processing batch 2...
step 3/5: processing batch 3...
step 4/5: processing batch 4...
step 5/5: processing batch 5...
ALL DONE

That is the loop a supervisor script or an agent runs all day: start work in a labelled pane, poll it with capture, answer it with send when it asks, and wait for the exit code at the end. The failure path works the same way — a command that exits 1 makes wait return 1, and the output is still there to grep:

rex run -s demo --label failing --split=below --keep-open -- sh -c "echo '--- FAIL: test_cache_invalidation'; echo '1 failed, 2 passed'; exit 1"
rex wait failing; echo $?
rex capture -b failing --trim | grep -- '--- FAIL'
block:01a23e33-3211-70b9-8700-b9c7247a9c50
1
--- FAIL: test_cache_invalidation

The -- before the pattern stops grep treating --- FAIL as flags — the announcement's own example does the same. A terminal keeps about 64 MiB of scrollback, roughly 100,000 lines of plain text at 80 columns, so a pane's whole history is available to capture long after it scrolled past. Add --format=html to keep the rendered styling, or --format=vt to keep the raw control sequences.

A circular loop: a terminal command, an eye reading its screen, a clock waiting, and a hand typing an answer
AI-generated illustration for AI Frontier Post

5. Teach your agents Rex#

The CLI is only half the design. Rex also installs itself into your coding agents, so the agent running inside a pane knows how to use the terminal around it. One command sets it up:

rex skill setup --dry-run
Dry run: nothing was changed. This is what would happen.

Claude Code
  skill  created      ~/.claude/skills/rex

Codex, OpenCode, Pi
  skill  created      ~/.agents/skills/rex

Claude Code
  hook   created      ~/.claude/settings.json

Codex
  hook   created      ~/.codex/hooks.json

OpenCode
  hook   skipped      OpenCode has no command hooks

Pi
  hook   skipped      Pi has no command hooks

--dry-run reports what would change and changes nothing, which is how you should run it first. The real run installs two things into each agent it finds: a skill that teaches the agent the Rex commands, and a hook — where the agent supports one — that tells the agent the context of its Rex environment at the start of every session. Run it without the flag:

rex skill setup
rex skill status
Claude Code
  skill  created      ~/.claude/skills/rex

Codex, OpenCode, Pi
  skill  created      ~/.agents/skills/rex

Claude Code
  hook   created      ~/.claude/settings.json

Codex
  hook   created      ~/.codex/hooks.json

OpenCode
  hook   skipped      OpenCode has no command hooks

Pi
  hook   skipped      Pi has no command hooks

Start a new agent session inside Rex to use it.
Claude Code (found)
  skill  current      ~/.claude/skills/rex
  hook   current      ~/.claude/settings.json

Codex (found)
  skill  current      ~/.agents/skills/rex
  hook   current      ~/.codex/hooks.json

OpenCode (found)
  skill  current      ~/.agents/skills/rex
  hook   unsupported

Pi (found)
  skill  current      ~/.agents/skills/rex
  hook   unsupported

If no agent is found at all, the skill alone goes into the shared ~/.agents/skills directory that most agents read. The setup is idempotent — running it again is safe and updates anything an older Rex installed — and --agent claude limits it to one agent. Pass --session-naming to have agents name the session after their task. Read the guide the skill gives agents with rex skill show: the key idea is that every terminal Rex opens sets REX_BLOCK to that pane's id, so the agent knows which pane it is in and can target splits and captures with -s and -b instead of guessing. Codex asks you to approve a new hook before it runs it — approve it with /hooks in Codex, or Codex skips it.

6. Sessions that survive a restart#

The promise that matters most is the boring one: your work is still there after the server goes away. Stop the server and start it again:

rex ls
rex server stop
rex server start
rex ls
LABEL  ID
demo   db5f34
Rex server stopped.
Rex server running at unix:///home/hatch/.local/state/rex/run/server.sock (pid 8834)
LABEL  ID
demo   db5f34

The demo session came back with the same id, and its panes are still readable — capturing the old test pane shows a live shell prompt, because a --keep-open block stays open as a shell after its command exits. The docs make the same promise for a server update, a crash, or a reboot: your editor, REPL, or agent comes back exactly where it left off. Note that rex server stop ends every program in the server; the sessions are saved and restored on the next start, but the processes themselves do not keep running while the server is down. That is the one line in the docs to read twice before you stop a server with a long job in it.

7. Reach the server from your Mac and phone#

So far everything ran on one Linux machine. The rest of Rex is about reaching that machine from everywhere else — and this step is documented from the official docs, not run live, because there is no Mac or iPhone in this sandbox. The shape of it is small. On the Linux machine, the server is already running; confirm your SSH key works and that SSH can find rex:

ssh [email protected] rex version

Then talk to the remote server from any shell, with -S naming the host:

rex -S ssh://[email protected] ls

In Rex for Mac, the same host is added with Add Remote Host… and the address ssh://[email protected]. The Mac app runs its own server too, and can connect to any other Rex server; the iPhone and iPad apps connect to any Rex server so you can check a long job or answer an agent that is waiting on you. Sessions keep going when you disconnect, and any device picks them up where they are. When you are juggling a dozen processes, the Mac app's Activity Mode groups them into working, waiting on you, and done, with notifications — so a blocked agent never goes unnoticed. Connections also work over Unix sockets and Tailscale, and the docs note you can copy text or images on one machine and paste on any other.

Two honest limits on this step. First, Rex has no login system of its own yet — it trusts SSH to say who you are, so the security of remote access is the security of your SSH keys, and a full authentication system is planned. Second, Linux is a server, not a desktop app, for now: a Linux laptop can host sessions but cannot draw them in a Rex window — the native Linux client is a new-year project, and the Windows app is in alpha with a public release expected early in 2027.

Which approach should you use?#

Rex is not the first tool in this space, and the right choice depends on what you are actually doing:

ToolWhat it isUse it when…
RexTerminal plus persistent server, with an agent-first CLI and open status protocols. Free, no account, no telemetry.You run coding agents and want them — and your scripts — to drive panes, and your sessions to follow you across machines.
tmuxThe classic terminal multiplexer: persistent sessions, scriptable with send-keys and capture-pane, free and open source.You want the smallest, most battle-tested tool and you are happy scripting against panes yourself, with no mobile client and no cross-device sync.
GhosttyA fast GPU-accelerated terminal emulator. Rex is built on its rendering core, libghostty.You want a beautiful, fast local terminal and do not need a server, persistence, or agent control.
WarpA terminal with AI built in, including an agent mode, plus cloud features and an account.You want the AI inside the terminal itself rather than a server your agents can drive, and you accept the account and the cloud.

The deciding question is who drives the terminal. If the answer is mostly you, tmux or Ghostty are lighter and, in tmux's case, decades proven. If the answer is increasingly an agent — one that starts jobs, reads their output, waits, and asks you questions — Rex is the only one of the four built for that loop from the ground up, and the only one that treats the agent as a first-class operator instead of a screen-scraping afterthought.

What Rex can't do yet#

Rex is a 1.0, and the edges show. The Linux client does not exist yet, so on Linux you drive the server from the CLI or from a Mac — there is no graphical Rex window on a Linux desktop. The Windows app is in alpha. There is no built-in authentication: remote access is SSH today, which is fine on a private network and a real consideration on a shared host. And Rex has no built-in AI chat sidebar or model provider — it deliberately does not. If you want a terminal that talks to a model for you, that is Warp's pitch; Rex's pitch is a terminal your agents can drive. Superlogical has also not said how Rex will make money — the announcement promises free forever with no telemetry, and the docs list every outbound connection the server makes, which by default is none.

The takeaway#

The terminal used to be the place you typed. With coding agents it is becoming the place work happens while you are not looking — and a terminal built for that world needs sessions that outlive your laptop, a CLI that lets scripts and agents drive panes, and a way for an agent to tell you it is stuck. Rex ships all three, free, with no account and no telemetry, and the Linux server installs in one command. The 60-second version is: install the binary, rex server start, rex new for a session, and rex run --keep-open for anything you want to read afterwards. Add rex skill setup and your agents learn the loop on their own. tmux is not going anywhere — but the next time an agent waits on you at 2 a.m., you will want to answer it from your phone, and that is the workflow Rex was built for.