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.
- 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.
Related agent uses
Draft PR reviews, then send them yourself
They used Claude Code to prepare GitHub review drafts for queued pull requests, while keeping final edits and submission under their control.
Use Claude Code to spot macOS layout bugs
A developer let Claude Code compile a Mac app, open it, and click through screens to find visual problems.
Automate a self-hosted stack on your own hardware
Jordan Fulghum let Claude Code configure and run several home services on a Beelink mini PC.
Use Claude Code to hunt flaky CI tests overnight
Claude Code tracked CI flakiness, isolated the worst tests, and suggested fixes while a human reviewed the changes each day.
Use Claude Code to revive an old assembly build
A developer used Claude Code to get a 1991 assembly game’s old tools compiling again on modern setup files.
Use Claude Code to maintain NixOS server configs
A developer uses Claude Code to edit one NixOS config repo for several self-hosted machines, then reviews the diff and applies changes by hand.