NewInfinite storage: a box whose storage grows as you write.Infinite storage is here.Read the post

BlogHudson Griffith

The best VPS for Claude Code, and when a Prized box beats one

If Claude Code works while you do, the best server for it is a Prized box: $12.23 a month at 8 hours a day, less than any hourly VPS here, with Claude Code installed, your folder synced and its memory kept while it sleeps. For a VPS you run yourself, take 2 vCPUs and 4 GB: OVHcloud’s VPS-1 is $5.35 a month, and billed hourly, Hetzner’s CPX22 (€16.99 in Helsinki) and Vultr ($20) cost least.

A VPS bills around the clock and leaves its setup and security to you; a box sleeps when idle and opens no public SSH port. New accounts get $30 of credit with no card (sign up). Prices are pre-tax list prices read on November 30, 2026; sources are at the end.

What Claude Code needs from a server

Anthropic asks for at least 4 GB of memory, an x64 or ARM64 processor and Ubuntu 20.04 or Debian 10 or later, with no GPU. Two vCPUs fit one session; use 8 GB for several sessions, builds, heavy test suites, Docker or headless browsers.

A Prized box against a VPS

Auto-pause sleeps a Micro after your idle window: $0.008 an hour asleep (disk only), $0.034 awake. A working agent keeps it awake. A Micro keeps its memory while it sleeps, so reconnecting resumes tmux, Claude Code and half-finished builds where they were.

A month of a 4 GB machine for an agent that works part of the day, USD a month, lower is better
Prized, 4 hours a day, Micro, asleep the rest of the day$9.03
Prized, 8 hours a day, Micro, asleep the rest of the day$12.23
Prized, 12 hours a day, Micro, asleep the rest of the day$15.42
Hetzner, CPX22, billed every hour$18.51
Vultr, Billed every hour$20.00
DigitalOcean, Billed every hour$24.00

A Prized Micro box, 2 vCPUs and 4 GB, awake for 4, 8 or 12 hours a day and asleep the rest of a 730-hour month, at its awake and asleep hourly rates. Against it, a Hetzner CPX22 (2 vCPU, 4 GB, €16.99 in Helsinki), a Vultr 2 vCPU, 4 GB server at $20 a month and a DigitalOcean 2 vCPU, 4 GB Droplet at $24 a month, all of which bill while stopped.

A Micro is $9.03 a month at 4 hours a day, $12.23 at 8, $15.42 at 12 (under Hetzner, Vultr and DigitalOcean) or $25 around the clock.

Running Claude Code on a VPS and on a Prized box
A VPSA Prized box
The machineCreate it, add your SSH key and a user, set a firewallThe sign-up tour starts one
Claude CodeInstall it; it updates itselfPreinstalled with Codex, Docker and gh, kept on the latest release
Sign-inRun /login over SSH and paste the code backSetup copies your laptop’s
Your codegit clone, then push and pullThe folder syncs both ways
PortsAn SSH tunnel per port3000 to 9999 on your localhost
Open to the internetSSH, unless you lock it downNo SSH port: you connect through an encrypted tunnel
While it sleepsA stopped server bills the same, and its processes endBills only its disk; a Micro keeps its memory, so tmux and Claude Code resume where they were
A session on your laptopStart it again on the serverprized teleport moves the conversation mid-task
From your phoneAn SSH appThe terminal on the dashboard, in any browser

One command in your project folder sets up a box, copies your Claude Code sign-in and settings, and starts Claude Code in tmux:

cd ~/code/myproject
prized setup --sync --agent claude --attach

It runs with your lid closed; reconnect via prized ssh -s claude, the dashboard’s browser terminal or /remote-control in the Claude app. $30 of credit covers about five weeks around the clock on a Micro (Quickstart).

VPS prices at 4 GB and 8 GB

The cheapest VPS plan with at least 4 GB, a month, USD a month, lower is better
OVHcloud, VPS-1; $4.54 paid a year ahead$5.35
Hetzner, CPX22; €16.99 in Helsinki$18.51
Vultr$20.00
AWS Lightsail$24.00
DigitalOcean$24.00
Akamai (Linode)$24.00

The list price of one month of the cheapest plan with at least 4 GB of memory at each vendor, before tax, read from each vendor on November 30, 2026. OVHcloud also prints a rate for a 12-month term; the detail line says so. Hetzner prices in euros, converted at the ECB reference rate of November 30, 2026.

Monthly price of a 4 GB and an 8 GB machine at each provider
About 4 GBAbout 8 GB
Prized box$12.23 at 8 hours a day, $25 around the clock (Micro)$23.97 at 8 hours a day, $50 around the clock (Extra Small)
OVHcloud$5.35, 2 vCPU (VPS-1)$10, 4 vCPU (VPS-2)
Hetzner€16.99, 2 vCPU (CPX22)€30.49, 4 vCPU (CPX32)
Vultr$20, 2 vCPU$40, 4 vCPU
AWS Lightsail$24, 2 vCPU$44, 2 vCPU
DigitalOcean$24, 2 vCPU$48, 4 vCPU
Akamai (Linode)$24, 2 vCPU$48, 4 vCPU

Hetzner uses the European Central Bank’s November 30, 2026 rate ($1.0894). Hostinger and Contabo are excluded: headline prices require 24 months paid or committed up front.

What each price is for
  • Prized: a Micro has 2 burstable vCPUs, 4 GB and a 80 GB disk; an Extra Small has 2 vCPUs, 8 GB and 150 GB (Pricing, Machines).
  • OVHcloud: $5.35 month to month, or $5.08 a month for 6 months and $4.54 for 12 paid up front, in US, Canadian, European and Asia-Pacific data centers; Local Zones are $6.54. The VPS-2 is $10, or $8.50 on 12 months (order catalog).
  • Hetzner: prices exclude VAT. The CPX22 is €16.99 in Helsinki, €19.99 in Nuremberg and €26.99 in Singapore; the CPX32 is €30.49, €35.99 and €49.49. US locations lack a 2 vCPU, 4 GB plan: the CPX21 (3 vCPU, 4 GB) is €32.49 (Hetzner).
  • Vultr, DigitalOcean, Akamai: regular shared-CPU plans with 80 GB of disk at 4 GB and 160 GB at 8 GB (Vultr, DigitalOcean, Akamai). Akamai charges more in Jakarta ($28.80) and São Paulo ($33.60).
  • AWS Lightsail: Linux bundles with a public IPv4 address; the 8 GB bundle has 2 vCPUs (Lightsail).

Billing, disk and regions

How each provider bills, what it bills stopped or asleep, the disk of its 4 GB plan, and where it runs
BillingStopped or asleepDisk at 4 GBWhere
Prized boxPer second awakeIts disk only, $0.008 an hour80 GBOregon, California, Virginia, Ohio, Frankfurt
OVHcloudMonthly, or 12 months up frontThe month either way40 GB13 data centers, plus Local Zones
HetznerHourly, capped at the monthThe full rate80 GBNuremberg, Helsinki, Singapore
VultrHourly, capped at 672 hoursThe full rate80 GB31 regions
AWS LightsailHourly, capped at the monthThe full rate80 GB19 regions
DigitalOceanPer second, capped at 672 hoursThe full rate80 GB13 cities
Akamai (Linode)Hourly, capped at the monthThe full rate80 GB33 regions

Stopping a VPS kills every process; DigitalOcean, Vultr, Akamai, Lightsail and Hetzner bill until you delete it.

Which one to pick

Best for most people: a Prized box. A full VM with Claude Code, Codex, sudo and Docker preinstalled, your folder synced, ports on your localhost and no firewall or SSH keys to manage (above).

The cheapest server to run yourself: OVHcloud. VPS-1 has 2 vCores, 40 GB NVMe, daily backup and unlimited traffic (1 TB a month in Mumbai, Singapore and Sydney). It bills monthly only; non-US servers can’t upgrade after delivery.

Hourly in Europe: Hetzner. The CPX22 has 2 AMD vCPUs, 80 GB and 20 TB of EU traffic, billed hourly up to €16.99 a month in Helsinki. Ashburn and Hillsboro start at CPX21; cheaper Cost-Optimized plans were unavailable on November 30, 2026.

Hourly, in many regions: Vultr, DigitalOcean, Akamai or Lightsail. All four include 80 GB and an API: Vultr is $20 in 31 regions and the others are $24. Pick Lightsail for AWS teams.

What running Claude Code on a VPS takes

On Ubuntu 24.04 as root, add an agent user with your SSH key and limit the firewall to SSH only:

adduser dev
usermod -aG sudo dev
rsync --archive --chown=dev:dev ~/.ssh /home/dev
ufw allow OpenSSH
ufw enable

As that user, run Anthropic’s installer and start Claude Code in tmux so disconnects don’t stop it:

curl -fsSL https://claude.ai/install.sh | bash
tmux new -s claude
claude

Sign in with /login (open the printed link locally and paste the code), an API key or claude setup-token for unattended runs. Clone with git, patch the server and reconnect via ssh and tmux attach -t claude. On a Prized box, prized setup does all of this.

Common questions

What is the best VPS for Claude Code?

A Prized Micro for workdays ($12.23 a month at 8 hours a day). For a self-managed 2 vCPU, 4 GB VPS, pick OVHcloud’s VPS-1 ($5.35 a month), or Hetzner’s CPX22 (€16.99 in Helsinki) and Vultr ($20) hourly.

How much RAM does Claude Code need?

At least 4 GB (Anthropic), or 8 GB for several sessions, builds, Docker or headless browsers.

Does Claude Code need a GPU?

No. The model runs at Anthropic, so you only need RAM and an x64 or ARM64 CPU.

Can I use my Claude Pro or Max plan on a server?

Yes. Use /login or a long-lived claude setup-token on a VPS (Anthropic); prized setup copies your login. Token-billed API keys work too.

Can Claude Code keep its session while the server sleeps?

Not on a VPS, where stopping kills processes. A Prized Micro resumes memory, tmux and Claude Code; after 3 days asleep, claude --continue resumes on a fresh boot.

Does a stopped VPS still cost money?

Yes. DigitalOcean, Vultr, Akamai, Lightsail and Hetzner bill until you delete them. Sleeping Prized Micros bill disk only at $0.008 an hour.

When is a VPS the better choice?

When you need around-the-clock runs, regions outside the US and Frankfurt, an OS besides Ubuntu 24.04 or a fixed IP (a box’s IP changes on pause; Machines).

Sources

We read every page on November 30, 2026.