No mock. Actual Kodee, running on an iPhone simulator, with two demo hosts wired up.
SSH.
Keys in the Secure Enclave. Biometric unlock. Mosh for the flaky café Wi-Fi.
Real terminal.
Full xterm, truecolor, ligatures. vim, htop, k9s render the way they were drawn.
Built for thumbs.
Tabs and tools live where your thumb reaches. The system keyboard, left alone.
Join the beta.
iOS, soon. We'll send the TestFlight invite when it's ready.
147 already on the list
Prep your Mac while you wait.
Kodee attaches to a persistent tmux session on your Mac, and the setup also makes every new local Terminal window land in that same session. Work you start on your Mac is visible from your phone; work you start on your phone keeps running when the app backgrounds. `zsh`, `bash`, and `fish` all work. Install Kodee and Tailscale on your phone, then paste the instructions below into Claude Code, Cursor, Codex, or any coding agent on your Mac — the bot handles the Mac-side setup and tells you the exact host values to enter.
Nothing runs on your machine until your agent shows you each command and you say yes. When you use Kodee on iPhone, make sure Tailscale or your VPN is connected before you try to SSH.
You are running on my Mac. I want to use Kodee (an iOS SSH client) to connect from my phone and land in a persistent tmux session every time. Please set that up.
Do the steps below in order. Print exactly what you're about to run before each step, and stop and ask me if anything looks destructive or requires my password.
1. Sanity-check the environment
- Print `uname -a`, `sw_vers`, `echo $SHELL`, and `whoami`.
- Report whether this is Apple Silicon or Intel (`uname -m`).
2. Install tmux if missing
- If `command -v tmux` is empty:
- If Homebrew is missing (`command -v brew` empty), install it via the official one-liner from brew.sh.
- Run `brew install tmux`.
- Confirm `tmux -V` prints `tmux 3.4` or newer. If older, `brew upgrade tmux`.
3. Make tmux findable over SSH (this is the important one)
Kodee SSHes in using this account's login shell in non-interactive mode. The right fix depends on the shell, so detect it first from `echo $SHELL` and only edit the startup file that shell actually uses.
- Compute the Homebrew prefix from `command -v brew`. On Apple Silicon it is usually `/opt/homebrew`; on Intel it is usually `/usr/local`.
- First verify whether tmux is already findable over SSH by running:
ssh -o StrictHostKeyChecking=no localhost 'command -v tmux && tmux -V'
If that already prints a path and a version, the PATH fix is done and you should not edit any shell startup file.
- If the SSH verification fails because `tmux` is not on `PATH`, apply the smallest shell-specific fix:
- If zsh: ensure `~/.zshenv` contains
eval "$(/opt/homebrew/bin/brew shellenv)"
Use `/usr/local/bin/brew` instead on Intel. If `~/.zshenv` does not exist, create it with that single line.
- If bash: ensure `~/.bash_profile` contains
eval "$(/opt/homebrew/bin/brew shellenv)"
Use `/usr/local/bin/brew` instead on Intel. If `~/.bash_profile` does not exist, create it with that single line.
- If fish: ensure `~/.config/fish/conf.d/homebrew-path.fish` exists and contains
set -gx PATH /opt/homebrew/bin /opt/homebrew/sbin $PATH
Use `/usr/local/bin` and `/usr/local/sbin` instead on Intel.
- Re-run the same SSH verification command after any change.
- If the shell is something else, stop and show me the detected shell instead of guessing.
4. Turn on Remote Login
- Run `sudo systemsetup -getremotelogin`. If it says `Off`:
- Ask me before changing system settings.
- If I approve, run `sudo systemsetup -setremotelogin on`.
- Also remind me to open System Settings → General → Sharing, confirm Remote Login is on, and under its (i) info button, make sure my user account is in the "Allow access for" list.
5. Verify Tailscale on this Mac
The goal is that after I install Kodee and Tailscale on my iPhone, I already know the exact host to type into Kodee. Do the Mac side of Tailscale setup and validation now.
- Check whether the Tailscale CLI exists with `command -v tailscale`.
- If it does not exist, stop and tell me plainly that Tailscale is not installed on this Mac yet.
- If it exists, check whether Tailscale is running and signed in.
- If Tailscale is installed but not signed in, stop and tell me to open Tailscale on the Mac and sign into the same tailnet I will use on my iPhone.
- If Tailscale is healthy, print:
- the preferred MagicDNS hostname
- the Tailscale IPv4 address
- whether this node appears online
- Prefer the MagicDNS hostname for Kodee's `Hostname` field.
- If you can do so without changing SSH config, verify that port `22` is reachable on the Tailscale address or hostname and report the result.
6. Write a friendly `~/.tmux.conf` (only if I don't have one)
- If `~/.tmux.conf` already exists, do not touch it — just print its first 20 lines so I can review.
- If it doesn't exist, write this file:
# ~/.tmux.conf — written by Kodee setup bot
set -g mouse on
set -g history-limit 50000
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:RGB"
set -g status-style "bg=default,fg=colour245"
set -g status-left-length 30
set -g status-left "#[bold]#S "
set -g status-right "%H:%M %d %b"
setw -g mode-keys vi
set -sg escape-time 10
- If tmux is already running (`tmux ls` returns sessions), tell me to run `tmux source-file ~/.tmux.conf` inside an existing session, or just start fresh.
7. Create the default Kodee session and self-test
Kodee runs `tmux new -A -s <name>` on connect. `new -A` means "attach if it exists, otherwise create." The default session name Kodee uses is `kodee`.
- Run this self-test, which is what Kodee itself runs:
ssh -o StrictHostKeyChecking=no localhost 'tmux new -A -d -s kodee && tmux ls'
It should print a line like `kodee: 1 windows (created ...)`. If it does, Kodee will attach cleanly.
- Leave the `kodee` session running. Anything I later start inside it persists across disconnects.
8. Make my local Terminal auto-attach to the `kodee` session
This is the step that makes Kodee actually useful: so that anything I start in Terminal.app, iTerm, Ghostty, etc. runs inside the same tmux session Kodee attaches to. Without this, my local shells are invisible from my phone.
- Detect my login shell from `echo $SHELL`.
- If zsh: append the block below to `~/.zshrc` (not `.zshenv` — interactive shells only). If the block is already present, skip.
- If bash: append the same block to `~/.bashrc`.
- If fish: append the fish-native block below to `~/.config/fish/config.fish`.
- Never touch a block I've already customized — if a section marked `# >>> kodee auto-attach >>>` already exists, show me its contents and ask before replacing.
Block to append for zsh/bash (exact contents):
# >>> kodee auto-attach >>>
# Auto-attach local interactive shells to the `kodee` tmux session so
# work started on the Mac is visible from the Kodee iOS app.
# Guards: interactive shells only; skip if already inside tmux; skip
# when Kodee itself SSHes in (Kodee runs its own tmux attach); skip
# inside VS Code / Cursor integrated terminals.
if [[ $- == *i* ]] && [[ -z "$TMUX" ]] && [[ -z "$SSH_CONNECTION" ]] \
&& [[ "$TERM_PROGRAM" != "vscode" ]] && [[ "$TERM_PROGRAM" != "cursor" ]] \
&& command -v tmux >/dev/null 2>&1; then
tmux new-session -A -s kodee
fi
# <<< kodee auto-attach <<<
Block to append for fish (exact contents):
# >>> kodee auto-attach >>>
# Auto-attach local interactive shells to the `kodee` tmux session so
# work started on the Mac is visible from the Kodee iOS app.
# Guards: interactive shells only; skip if already inside tmux; skip
# when Kodee itself SSHes in (Kodee runs its own tmux attach); skip
# inside VS Code / Cursor integrated terminals.
if status is-interactive; and test -z "$TMUX"; and test -z "$SSH_CONNECTION"; and test "$TERM_PROGRAM" != "vscode"; and test "$TERM_PROGRAM" != "cursor"; and command -q tmux
tmux new-session -A -s kodee
end
# <<< kodee auto-attach <<<
- Tell me: "Every new Terminal window will now attach to the `kodee` session. Two local windows will mirror the same session — that's tmux's default and what makes your phone see what your Mac is doing. For independent shells, open tmux windows/panes inside the session (Ctrl-b c for a new window) instead of new Terminal windows. To opt out later, delete the `kodee auto-attach` block from the rc file."
- Do NOT source the rc file in my current session — let me open a fresh Terminal window to pick it up.
9. Report back
Print a short summary:
- tmux version
- shell + PATH setup location (for example `~/.zshenv`, `~/.bash_profile`, or `~/.config/fish/conf.d/homebrew-path.fish`)
- Remote Login status
- Tailscale status on this Mac
- preferred Tailscale hostname
- Tailscale IPv4
- `~/.tmux.conf` status (kept mine / wrote new one)
- Auto-attach block: added / already present / skipped because I asked you to
- Result of the self-test
- The exact values I should type into Kodee:
- `Hostname`
- `Port`
- `Username`
- `Auth` recommendation
- `Session → Attach to tmux session`
- `Tmux session name`
- A one-line reminder that on the iPhone I must connect Tailscale or my VPN before tapping the host in Kodee
Do NOT modify `~/.ssh/` config, do NOT create new SSH keys, do NOT disable any security settings. If anything fails, stop and tell me what failed.