Run Claude Code from your phone with your laptop closed
Four ways to keep Claude Code working while you're away and check on it from your phone: cloud sessions, Remote Control, a VPS, or a VM per project.
You start Claude Code on a task, then you have to leave. The question is what keeps running, and how you check on it from your phone.
There are four ways to do it today. They differ in one thing: where the code runs. We make one of them (homemade), so we've kept the other three to what their own docs say.
1. Anthropic's cloud sessions
The Claude app for iOS and Android has a Code tab. From Anthropic's mobile docs: cloud sessions "run tasks on cloud infrastructure, Anthropic-managed by default, so a session continues after you put your phone away". You pick a repository and branch, describe the task and submit it.
Good for: handing off a task from a GitHub repo and reviewing the result later. You need a claude.ai account; a Console API key doesn't reach these sessions.
2. Remote Control
Start claude remote-control on your own computer and drive that session from the app. The code and files stay on your machine. The catch is in the docs too: Remote Control drives your own machine, "so it needs to stay on with Claude Code or the Desktop app running". Start it with claude remote-control (source).
Good for: work that needs your local files, tools or MCP servers, when your desktop is always on anyway.
3. A server you run, plus an SSH app
Put Claude Code on a VPS, run it inside tmux, and connect from an SSH app on your phone. It works anywhere and you control everything. You also maintain the server, set up keys and a firewall, find a way to open your dev server from the phone, and pay for the box all month. We wrote more about that trade in Best VPS for Claude Code?.
4. A cloud VM per project (homemade)
Each project or task gets its own Linux VM with Claude Code installed and signed in, your repo cloned at the branch you pick and your services running. From your phone you open the VM in the browser:
- The terminal works on a phone. Type to the agent, read its output, run a command next to it.
- The app is on a link. Every port gets an HTTPS URL, so you can tap through what the agent built.
- Nothing depends on your laptop. Close it; the VM keeps going.
- It sleeps when it's done. An idle VM goes to sleep, keeps its files and terminals, and wakes where you left it. You pay for hours it runs.
Hobby is free with 25 VM-hours a month. Pro is $20 a month with $20 of usage included.
Which one?
- Hand off a task and review a pull request later: cloud sessions.
- Your desktop is always on and has everything set up: Remote Control.
- You want one server you run yourself: a VPS and an SSH app.
- You want to watch the agent and click through the running app from your phone, with nothing left on at home: a VM per project.
Start here: Claude Code in the cloud.
Try homemade
Every project gets its own cloud computers, with Claude Code and Codex signed in. The Hobby plan is free.
Related posts
- Best VPS for Claude Code? When a VM per project fits betterWhat Claude Code needs from a server, what running it on a VPS involves, and when a cloud VM per project with the agent signed in fits better.
- Running Claude Code and Codex in a cloud computerHow to run Claude Code and Codex in a cloud computer: sign in once, start agents in parallel on their own branches, and review from any device.
- Sleep and wake, explainedWhat happens when a cloud computer goes to sleep: memory snapshots, deep sleep, waking from a preview link, and what you pay while it sleeps.
- All postsEvery post