Claude Code in the cloud: three ways to run it
There are three ways to run Claude Code in the cloud: Anthropic's own cloud sessions, a VPS you set up yourself, or a cloud machine that comes with it installed, such as Quivvo. If your code is on GitHub and Claude Code is the only agent harness you use, start with Anthropic's cloud sessions, because the VM is included in your plan. Choose a machine of your own when you need a shell, a server that keeps running, a public link, another harness beside it, or an API key.
How do the three compare?
| Claude Code on the web | A VPS you manage | A Quivvo machine | |
|---|---|---|---|
| What it is | A VM Anthropic runs for each session | A server you rent and set up | A Firecracker microVM with Claude Code installed |
| Price | Included in Pro, Max, Ultra and Team plans, and counts toward your usage limits | A monthly fee, running or not | By the second while it runs: $0.054 an hour for 2 vCPUs and 4 GiB |
| Size | About 4 vCPUs, 16 GB of memory and 30 GB of disk | What you rent | 2 vCPUs and 4 GiB by default, up to 8 vCPUs and 16 GiB on a paid plan |
| A shell of your own | No. Claude runs every command | Yes | Yes, with quivvo ssh or the dashboard's terminal |
| When it's idle | Pauses after a few minutes, and the VM is reclaimed later | Keeps running, and billing | Suspends after 30 idle minutes and pays for disk only |
| Running processes | Gone once the VM is reclaimed | Stay up | Kept through a suspend when they can be; a stop loses them |
| Repositories | GitHub. Other hosts upload as a bundle and can't push back | Any | Any |
| Sign-in | A claude.ai subscription | A subscription or an API key | A subscription or an API key |
| Other harnesses | Claude Code only | What you install | Codex, OpenCode, Gemini CLI and six more, installed |
| Setup and upkeep | None | Yours: Node.js, the CLI, tmux, a firewall, updates | None |
The first column comes from Anthropic's docs on cloud sessions and cloud environments, read on 29 November 2026. Anthropic calls its sizes approximate.
When are Anthropic's cloud sessions the right choice?
Choose them when your code is on GitHub, Claude Code is your only harness and the work ends in a branch or a pull request. You start a session from claude.ai/code, your terminal or the mobile app. It clones the repository into a fresh VM, and the changes come back as a pushed branch. There's no machine to set up or patch, and no bill beyond your plan. For "fix this and open a pull request", it's the simplest thing that works.
What do cloud sessions leave out?
- A shell. Anthropic's docs say you don't get one: Claude runs every command for you.
- Long-lived processes. A session's VM pauses after a few minutes without activity and is reclaimed later. Its files are saved while it's paused, but a dev server or a watcher isn't restored after a reclaim.
- A link to what it built. The docs describe no way to publish a port from a session.
- Other git hosts. A GitLab or Bitbucket repository can be uploaded as a bundle, but the session can't push back to it.
- API keys and other providers. Cloud sessions need a claude.ai sign-in. They aren't available when Claude Code is set up for Amazon Bedrock or another third-party provider.
- Other harnesses. It's Claude Code's cloud, so Codex or OpenCode on the same checkout isn't part of it.
Remote Control is a different feature. It lets you steer a session from the web or your phone, but the session runs on your own computer, which has to stay on.
How do I run Claude Code on a VPS?
Rent a Linux server, install Node.js and Claude Code, and run it inside tmux so it survives a dropped SSH connection:
npm install -g @anthropic-ai/claude-code
tmux new -s claude
claude
Sign in by opening the link it prints in a browser on your own computer. A VPS gives you everything cloud sessions leave out, and the upkeep is yours: a firewall, updates, and a bill that runs whether Claude is working or not. Claude Code also rejects --dangerously-skip-permissions when it's started as root, so plan for a second user if you want it to work unattended. For prices and when a VPS is the better choice, see Quivvo vs a VPS.
How do I run Claude Code on a Quivvo machine?
Every machine has Claude Code installed. Create one, send your code and sign in once. The sign-in stays on the machine's disk:
command -v quivvo >/dev/null || npm i -g quivvo@latest
quivvo create --name work
quivvo push ./api work --include .git
quivvo ssh work --cwd api -- claude
push leaves .git behind unless you include it, and a run needs the history to show you a diff. New accounts get $5 of credit with a $1 card check before the first machine, which stays as credit.
To leave it working, hand the task over as a run. A run carries on after you disconnect and keeps the machine awake until it ends:
RUN=$(quivvo agent prompt work --env CLAUDE_CODE_OAUTH_TOKEN --cwd api -- "fix the failing test")
quivvo agent wait work "$RUN" --timeout 100
quivvo agent result work "$RUN" --diff | git -C api apply
The last line prints what Claude changed as a patch and applies it to your own copy. CLAUDE_CODE_OAUTH_TOKEN comes from claude setup-token and uses your subscription. ANTHROPIC_API_KEY works too, and if you signed in on the machine you can leave --env out. See handing a task to Claude Code or Codex.
An interactive session you leave in tmux is different. Once you disconnect, nothing counts as activity, so the machine suspends after 30 idle minutes, or 15 on the Free plan, and Claude pauses with it. Use a run for work that should continue, or on a paid plan turn auto-suspend off with quivvo auto-suspend work 0.
A run has permission prompts off. That's what the machine is for: Claude is root on a VM that holds only what you sent it, and quivvo push leaves out .env files, SSH keys and other credentials unless you include them. See how to sandbox an agent harness.
What does it cost next to a plan that includes the VM?
On price alone, Anthropic's cloud sessions win: they add nothing to your plan. A Quivvo machine costs $0.054 an hour while it runs and only its disk while it sleeps. Used two hours on each working day, that comes to about $5 a month with its disk. Either way you pay Anthropic for Claude itself, through your subscription or an API key.
Can I use both?
Yes. Use cloud sessions for pull requests on GitHub, and a machine for the work they don't fit: a long test run, a dev server someone needs to see, a repository on another host, or a second opinion from Codex on the same checkout. Claude Code on your laptop can also create and drive Quivvo machines itself, through the MCP server. To run it next to other harnesses, see several harnesses on one machine.
Give your agent a computer
npx quivvo@latest sh