CLI reference
Commands for starting, observing, joining, and controlling shared terminals.
Every SESSION argument accepts a unique name, short ID, or full ID. Prefer names because they are
easier for humans and use fewer agent tokens.
Start and discover
saaht shell NAME
saaht cshell NAME
saaht start --name NAME -- COMMAND [ARGS...]
saaht start --follow --name NAME -- COMMAND [ARGS...]
saaht list
saaht ls
saaht show SESSIONshell starts a reusable zsh session. cshell starts the same session and connects to it
immediately. start creates a session for a specific command. --follow also streams its output
in the current terminal until the command exits. ls is an alias for list.
Read output
saaht tail SESSION
saaht tail SESSION -n 25
saaht tail SESSION --before CURSOR
saaht follow SESSION
saaht read SESSIONUse tail first. It returns recent lines and, when older output exists, prints the exact command
for the previous page. Use follow to stream future output. read prints the complete retained
transcript and can be large.
Filter locally when you know what you need:
saaht read SESSION | rg -i -C 3 "error|warning|failed"Send commands
saaht -i SESSION "bun run dev"
saaht input SESSION "bun run dev"
saaht input SESSION --raw "text without Enter"-i and normal input append Enter. --raw sends the exact text unchanged.
Join interactively
saaht connect SESSION
saaht attach SESSIONattach is an alias for connect. Your terminal behaves normally, including Ctrl-C, shell
history, prompts, colors, and full-screen terminal applications.
To disconnect without stopping the session, press Enter, then type ~..
Control lifecycle
saaht interrupt SESSION
saaht stop SESSION
saaht restart SESSION
saaht delete SESSION
saaht resize SESSION COLUMNS ROWSinterruptsends Ctrl-C.stopstops the running terminal.restartreruns an exited session's original command.deletepermanently removes a session and its retained output.resizechanges the managed terminal dimensions.
MCP agent access
saaht access SESSION none
saaht access SESSION observe
saaht access SESSION controlThese permissions apply only to agents connected through SAAHT's optional MCP server. none hides
the session, observe allows reading, and control also permits terminal input and lifecycle
commands.
They do not restrict direct CLI commands such as saaht read or saaht input.
Desktop app
saaht openOpens the installed SAAHT desktop application.
Daemon health
saaht doctor
saaht daemon status
saaht daemon start
saaht daemon installdoctor checks tmux and the daemon connection. daemon install explains how to install the
per-user launchd service.