Claude Code runs well on a server with nobody watching until it needs you: to approve a command, to sign in again, or to notice it stopped. Any way of using it from a phone has to solve those three, and they are where the home-made set-ups (SSH and tmux in a terminal app) fall down. This is what we ran into building the phone client in Pocket, and what we did about each.
The approval nobody sees
Claude Code asks before it runs a command or writes a file unless you have told it not to. At a desk that is a keypress. Away from it, the session sits and waits, and you find out hours later that nothing happened. The usual escape is to skip permissions entirely, which is a poor trade on a machine that matters.
In Pocket each request arrives in the chat as a card with Allow, Session (allow for the rest of the session) and Deny, and as a push notification with the same buttons. The CLI waits up to fifteen minutes for an approval and then carries on as if you had said no. Pre-approving everything is still there as a per-machine switch for the boxes where you want it.
The login that expired
The CLI's login on a server expires now and then. In a terminal you would see the message; through a relay the turn just fails. Pocket shows a card: Sign in runs claude auth login on the server and opens the sign-in page on the phone, you paste the code back, and the CLI saves its new login in your home folder as it would at the desk. Pocket passes the one-time code through and keeps nothing.
The connection that dropped
- A phone changes networks constantly. The message you sent has to show at once, stay on screen, and say plainly if it did not go, with a tap to resend.
- A reply cut short by a dropped download must be reported as a failure, not shown as a short answer.
- The status line has to be honest: connected means the server's agent is holding its link right now.
- A turn that started must keep running on the server whether or not the phone is still there, and be waiting when you come back.
Start-up time
Starting the CLI takes a few seconds. Paying that on every message makes a chat feel broken, so the process stays warm for fifteen minutes after the last message; replies in that window start in about two seconds, with the text and the model's thinking streaming as they are written.
Same session, not a copy
The phone continues the session under the same id, in the same folder, as the same user. The session file on the server keeps growing, so claude --resume at the desk the next morning shows what you did from the phone. Sessions started at the desk appear on the phone the same way.
Still rough
- The list of sessions is read from Claude Code's prompt history, so a session started with
claude -pdoes not appear in it. - Codex sessions are listed but cannot be continued yet.
- There is no iPhone app.
Set-up and the details: continue your Claude Code sessions from your phone.



