Set up tmux, then connect your phone.

Five steps, about ten minutes. You need a Mac or Linux machine, an iPhone or iPad on iOS 26 or later, and a way for the phone to reach the machine.

  1. 01SSH
  2. 02tmux
  3. 03Agents
  4. 04Network
  5. 05Connect
01

Turn on SSH

codepal signs in to your machine over SSH, so it needs an SSH server running.

macOS
System Settings General Sharing Remote Login
Ubuntu / Debian
sudo apt install openssh-server
sudo systemctl enable --now ssh

Your SSH username is whatever whoami prints on the machine.

02

Install tmux

tmux keeps your sessions running after you close the terminal, and it's what codepal reads from.

macOS
brew install tmux
Ubuntu / Debian
sudo apt install tmux

No Homebrew? Install it from brew.sh first. Fit to Phone needs tmux 3.4 or later; tmux -V shows your version.

03

Run your agents in tmux

Start a session, then run Claude Code or Codex inside it. codepal finds both on its own.

On the machine
tmux new -s work
claude                  # or: codex

Press Ctrl-b then d to detach. The agent keeps running, and tmux attach -t work brings it back. Ctrl-b c opens another window for a second agent.

Want to hand sessions to the Claude app? Run /config in Claude Code and turn on Remote Control for all sessions. That's what the Open button uses.

04

Make the machine reachable

Your phone needs a route to the machine's SSH port. Any of these work:

Same network

Use the machine's local name, like studio.local, or its IP from ipconfig getifaddr en0 on a Mac or hostname -I on Linux.

Tailscale

Install it on the machine and your phone, then use the MagicDNS name, like studio.tailnet-name.ts.net, or its 100.x IP.

Twingate

Add the machine as a resource, keep the Twingate app connected on your phone, and use the resource's address.

Any other VPN

WireGuard, OpenVPN, your office VPN. If the phone reaches port 22 with it on, codepal can too.

To check, run ssh you@address from another computer on the same network or VPN. If that logs in, codepal will too.

05

Add the machine in codepal

Open codepal, tap +, and fill in the address, your username and the port, which is usually 22.

Enter the machine's password once under Set Up with Password. The app adds your phone's key to ~/.ssh/authorized_keys, then forgets the password.

Rather not type it? Copy the install command from Settings → This Phone's SSH Key and paste it into a terminal on the machine, then leave the password empty.

Open the machine and the Tmux, Claude and Codex tabs list what's running. Tap a pane to open it as a live terminal.

?

If something's off

The machine rejects the phone's key

Open the machine in codepal and tap Set Up with Password, or paste the install command from Settings into a terminal on the machine.

It says tmux isn't installed

Install it as in step 2. codepal also looks in Homebrew's folders, so brew install tmux is enough even though SSH logins skip your shell profile.

It can't connect

Away from home, check the VPN app on your phone is connected. On your local network, allow codepal.sh in Settings → Privacy & Security → Local Network.

The host key changed

codepal saves a machine's host key the first time it connects and refuses a different one after that. If you reinstalled the machine, edit it in codepal and tap Forget Host Key. Otherwise, check you're reaching the right machine.

Claude panes say Remote Control off

Run /config in Claude Code and turn on Remote Control for all sessions. Panes with it on get an Open button.

That's it.

Leave your agents running in tmux and check in from your phone whenever they need you.