Use Claude Code from a phone with a remote VM

They accessed Claude Code on an iPhone by pairing a Tailscale-only Vultr VM with Termius, mosh, and tmux.

Done with Claude Code· Advanced

What they did
They had Claude Code assemble the remote machine itself on a Vultr cloud VM, using Vultr API credentials and gh access during setup. The server was reachable only through Tailscale, and they connected from an iPhone in Termius with mosh while tmux preserved the shell state. To keep work organized, each git worktree lived in its own tmux window with its own agent, and a PreToolUse hook sent a Poke alert whenever Claude asked for input.
How it went
With that arrangement, they could juggle six agents at once on different features while working in short bursts from their phone. They said each task fit into 10-20 minute stretches between notifications. The VM ran at $0.29/hr, so they powered it on only when needed, and mosh did not carry the SSH agent, which meant git auth had to happen with plain SSH inside tmux.
Tips
A setup like this needs a way to keep sessions alive and a separate alert path for questions. It also helps to plan around hourly VM costs and the fact that mosh will not forward your SSH agent.

Try it yourself with Claude Code

I want to work on [project folder] from my [phone] by reaching a [cloud VM/laptop/home server] with [Tailscale], [SSH], [tmux], and [mosh] if useful. Outline the setup in clear steps, including how to keep the session running after disconnects and how to split the work into [number] isolated worktrees or windows. Add a simple notification method for when the agent needs my reply, and stop before any step that would open access, spend money, delete files, or submit anything until I approve it. End with a short checklist I can use from my phone.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.