Get started
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.
Turn on SSH
codepal signs in to your machine over SSH, so it needs an SSH server running.
sudo apt install openssh-server sudo systemctl enable --now ssh
Your SSH username is whatever whoami prints on the machine.
Install tmux
tmux keeps your sessions running after you close the terminal, and it's what codepal reads from.
brew install tmux
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.
Run your agents in tmux
Start a session, then run Claude Code or Codex inside it. codepal finds both on its own.
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.
Make the machine reachable
Your phone needs a route to the machine's SSH port. Any of these work:
To check, run ssh you@address from another computer on the same network or VPN. If that logs in, codepal will too.
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.