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
Use Claude Code to build from a spec with review agents
A commenter had Claude Code implement software from a written spec while sub-agents checked the code and tests ran throughout.
Use OpenClaw to run coding agents on PRs
A solo developer used OpenClaw to spin up Codex and Claude Code for coding, testing, commits, PRs, and review replies, while getting Telegram updates when work finished.
Use a browser agent for setup tasks that come up while coding
A developer keeps coding in Claude Code while Claude in Chrome handles related web settings changes in the browser.
Test a local app in Chrome and fix browser errors
A developer used Claude Code and Claude in Chrome to open a local app, exercise the UI, catch a routing bug, and repair it without manual browser work.
Map callers before you rename a symbol
Let an agent trace a function’s users first, then apply a compiler-aware rename across the affected files.
Make a portfolio site with an AI chat
A designer used Claude Code to publish a personal portfolio and add a question-answering chat about their work.