How-to
Attach to a tmux agent session from iPhone
Agents stay on the host. The iPhone is a thin client: SSH in, attach to the tmux session, and watch Running / Checking / Needs you / Finished on one board. Claude Code does not run on the phone.
What this page is
This is the step-by-step for tmux SSH on iPhone: start the agent on a machine you control, then attach from iOS. It is not the “how do I monitor remote agents?” answer page. Use that for the fleet-monitor question; use this to get a session attached.
SSHaven is $4.99 one-time on the App Store and Google Play. Passwords and key passphrases stay in the iOS Keychain. There is no SSHaven cloud vault.
Prerequisites
- A Mac, Linux host, or VPS you can SSH into. The agent CLI lives there — not on the iPhone.
- tmux on that host so the process survives when the phone sleeps or you switch networks.
- SSHaven on iPhone (App Store id6792385214). Same product on iPad and Android if you want the board on those devices too.
- Hostname, port, and username for the host. Password or an OpenSSH key (ed25519 / RSA). Secrets go in Keychain on the phone.
If the job is specifically Claude Code, the host-side CLI notes are on Run Claude Code from iPhone. Claude Code does not install on iPhone.
Start the agent in tmux on the host
- SSH to the host from a laptop once, or use an existing session.
- Confirm tmux is installed. Optional SSHaven install recipes can bootstrap tmux and common agent CLIs via brew/apt/dnf and similar, only after you consent.
- In the project directory, start a detached session and run the agent inside it — Claude Code, Codex, Grok, Aider, OpenCode, or any custom command. One session per project keeps the fleet board readable.
- Leave that process running on the host. Do not expect it to continue on the iPhone. The phone will attach over SSH.
Repeat for as many agents as the box will hold. Many sessions, one later board on the phone.
Connect from iPhone and attach
- Open SSHaven. Add the host: hostname, port, username. Mark it a favorite if you reconnect often.
- Authenticate with a password or import an SSH key. Passphrases stay in the iOS Keychain. Optional biometrics unlock a saved passphrase. Traffic goes from the phone to that host — not through an Adam Codes relay.
- Open the agent board (Agents) for that server. SSHaven lists tmux sessions it can see. Pick the session you started and attach.
- You are in the live PTY: same tmux session the host is running. Special-keys toolbar covers Esc, Ctrl, arrows, and similar when the software keyboard is awkward.
Closing the app or switching tabs does not have to kill remote work. The agent stays in tmux on the host. That is the whole point of attach-from-phone instead of running a model on iOS.
Use the board after you attach
Once sessions exist, the product is the fleet board, not a single shell. Each row is a tmux agent session:
- Running — the remote process is working.
- Checking — still reading the session (no clear signal yet).
- Needs you — wait-for-input or approval. Attach and answer from the phone.
- Finished — the agent process is gone; a plain shell may be left behind.
Optional wait notifications ping you on Needs you so you do not stare at the screen. Full fleet story: pilot remote AI agents in tmux. Why this is a monitor, not another SSH app: monitor remote AI agents from your phone.
iPad and Android
FAQ
How do I attach to a tmux agent session from iPhone? Start the agent in tmux on a host you control. Add that host in SSHaven, store credentials in Keychain, and attach from the agent board.
Does Claude Code run on iPhone? No. Claude Code does not install on the phone. Keep it in tmux on the host, then SSH attach. See Claude Code from iPhone.
Why tmux, not a raw SSH command? tmux keeps the agent alive when the phone sleeps or the TCP session drops. Attach is how you rejoin that process.
Can I attach to more than one session? Yes. That is the fleet board: one phone list for every tmux agent session on the box.
How much is SSHaven? $4.99 one-time on App Store and Google Play. No subscription required to open a shell or attach to tmux.
More about SSHaven
- iPhoneSSH client for iPhoneConnect to servers from your pocket with a native shell, Keychain keys, and wait alerts.
- AndroidSSH client for AndroidNative SSH terminal on Android with Keystore keys, a $4.99 one-time price, and a tmux agent board.
- Claude CodeRun Claude Code from iPhoneClaude stays on your Mac or VPS. SSHaven is the SSH + tmux board that pings you when it waits.
- iPadSSH client for iPadA larger terminal canvas with hardware-keyboard workflows and the same on-device secrets.
- AgentsPilot remote AI agents in tmuxOne board for every remote tmux agent: Running, Checking, Needs you, Finished — with wait pings.
- MonitorMonitor remote AI agents from your phoneOne phone board for many remote agent tmux sessions. Agents stay on the host — SSHaven is the fleet monitor, not another SSH app.
- CompareSSHaven vs Termius, Blink, and PromptFair criteria: price model, credential storage, and the tmux agent pilot board.
- PricingOne-time SSH vs Termius subscriptionWhat you pay once for SSHaven on iPhone, iPad, and Android — and when Termius still wins.
- Agents vsSSHaven vs Moshi, SSHHIP, and TermRoverHow SSHaven’s $4.99 pilot board compares with newer agent-terminal apps.
- SecurityKeys stay on your deviceWhat SSHaven stores in Keychain, and what never leaves the phone for our cloud.
- SessionsMulti-session SSH and projectsKeep a pool of sessions, tag work across machines, and leave remote jobs running.