Cheapest VPS for Claude Code: 8G RAM plans in supported regions, by price (2026-10)

简体中文 Last price check: 2026-10-28

On an always-on VPS, Claude Code keeps working when your laptop is closed, and you can check on it from your phone. The machine has two hard requirements: enough RAM, and a data centre in a region Anthropic supports. Past that, it is a price comparison. Below are the 8G plans in stock now by monthly price, checked by hand on each provider's site; yearly prices are divided by 12.

How much RAM Claude Code needs

Anthropic's minimum for Claude Code is 4GB of RAM on Debian 10 or Ubuntu 20.04 and later. Claude Code does more than call an API: it clones repositories, installs dependencies, runs builds and tests, and sometimes a headless browser, so 4G runs out fast. This site picks 8G, enough for Claude Code, a browser and a build at the same time. For a light agent only, 4G will do.

Where the server should be

Claude Code sends its requests from the machine it runs on, so the server must sit in a country or region Anthropic supports, such as the US, Europe, Japan or Singapore; mainland China and Hong Kong are not among them. The tables list only data centres marked as supported in the Claude column. A data centre close to you makes SSH smoother; for use from mainland China, see using Claude Code from China (in Chinese).

The cheapest 8G plans right now

All regions together, cheapest first, top 12. The full list with filters is on the home page.

VendorPlanSpecsData centreMonthly priceTest IP
HostingerKVM 22 vCPU / 8G / 100GB NVMeSame price in every data centre$8.79—
RackNerd8 GB KVM VPS yearly deal7 vCPU / 8G / 150GB SSDSame price in every data centre$10.00107.174.51.158 Telecom 170 · Unicom 229 · Mobile 193 ms
JttiUSA CLOUD 4C8G 20M yearly deal (limit 1 per customer)4 vCPU / 8G / 50GBLos Angeles$13.00177.3.40.254 Telecom 158 · Unicom 175 · Mobile 167 ms
HostKvmJapan Japan-Gold (overseas IP, Tokyo)4 vCPU / 8G / 80GBTokyo$15.00103.85.24.141 Telecom 102 · Unicom 97 · Mobile 87 ms
HostKvmSouth Korea KR-Gold (overseas IP, includes mainland optimisation)4 vCPU / 8G / 80GBSouth Korea$15.0045.154.14.14 Telecom 61 · Unicom 80 · Mobile 76 ms
LcayunUS CN2 Elastic 2 vCPU 8G2 vCPU / 8G / 30GBUS West (city not stated by vendor)$15.28154.201.77.197 Telecom 149 · Unicom 174 · Mobile 160 ms
LcayunJapan BGP Elastic 2 vCPU 8G2 vCPU / 8G / 30GBJapan$16.3464.83.35.136 Telecom 57 · Unicom 54 · Mobile 74 ms
LcayunSouth Korea CN2 Elastic 2 vCPU 8G2 vCPU / 8G / 20GBSouth Korea$17.6661.111.252.20 Telecom 48 · Unicom 89 · Mobile 62 ms
JttiJP CLOUD 4C8G yearly deal4 vCPU / 8G / 50GBTokyo$22.41103.110.221.254 Telecom 80 · Unicom 77 · Mobile 60 ms
LcayunSingapore Elastic 2 vCPU 8G2 vCPU / 8G / 30GBSingapore$25.45162.4.172.38 Telecom 105 · Unicom 111 · Mobile 82 ms
TmhHostUS 9929 #64 vCPU / 8G / 60GB SSDLos Angeles$25.90154.40.38.1 Telecom 163 · Unicom 170 · Mobile 156 ms
TmhHostUS 4837 #64 vCPU / 8G / 60GB SSDLos Angeles$25.90154.12.37.90 Telecom 168 · Unicom 182 · Mobile 209 ms

By region: the three cheapest

United States

VendorPlanSpecsData centreMonthly priceTest IP
HostingerKVM 22 vCPU / 8G / 100GB NVMeSame price in every location; pick the US$8.79—
RackNerd8 GB KVM VPS yearly deal7 vCPU / 8G / 150GB SSDSame price in every data centre$10.00107.174.51.158 Telecom 170 · Unicom 229 · Mobile 193 ms
JttiUSA CLOUD 4C8G 20M yearly deal (limit 1 per customer)4 vCPU / 8G / 50GBLos Angeles$13.00177.3.40.254 Telecom 158 · Unicom 175 · Mobile 167 ms

Europe

VendorPlanSpecsData centreMonthly priceTest IP
HostingerKVM 22 vCPU / 8G / 100GB NVMeSame price in every location; pick Europe$8.79—
BandwagonHost160G KVM PROMO5 vCPU / 8G / 160GB SSDSame price in every location; pick Europe$33.33—
V.PSFRA EPYC Grand (Performance, CTGNet)4 vCPU / 8G / 120GB NVMeFrankfurt$44.7545.80.188.66 Telecom 176 · Unicom 149 · Mobile 161 ms

Japan

VendorPlanSpecsData centreMonthly priceTest IP
HostKvmJapan Japan-Gold (overseas IP, Tokyo)4 vCPU / 8G / 80GBTokyo$15.00103.85.24.141 Telecom 102 · Unicom 97 · Mobile 87 ms
LcayunJapan BGP Elastic 2 vCPU 8G2 vCPU / 8G / 30GBJapan$16.3464.83.35.136 Telecom 57 · Unicom 54 · Mobile 74 ms
JttiJP CLOUD 4C8G yearly deal4 vCPU / 8G / 50GBTokyo$22.41103.110.221.254 Telecom 80 · Unicom 77 · Mobile 60 ms

Singapore

VendorPlanSpecsData centreMonthly priceTest IP
LcayunSingapore Elastic 2 vCPU 8G2 vCPU / 8G / 30GBSingapore$25.45162.4.172.38 Telecom 105 · Unicom 111 · Mobile 82 ms
JttiSG CLOUD 4C8G yearly deal4 vCPU / 8G / 50GBSingapore$29.20177.5.76.254 Telecom 71 · Unicom 69 · Mobile 80 ms
DigitalOceanBasic Droplet 8GiB4 vCPU / 8G / 160GiB SSDSame price in every location; pick Singapore$48.00—

Monthly or yearly

Yearly billing is usually much cheaper, but it is safer to start monthly, or use the refund window, to try the network and speed before paying for a year. Where a yearly price exists the table divides it by 12; each provider page lists the monthly and renewal prices under Price and deals.

Where the test IPs and latency figures come from

A test IP is a machine the vendor publishes for this data centre and this route. Before buying you can ping it to see how fast your own network reaches it. Clicking an IP opens a multi-node ping across China on itdog, which you can break down by province and carrier.

Where the IPs come from
The vendor's website or Looking Glass page, or the vendor's reply to a support ticket; a few come from third-party reviews. When an IP published by the vendor no longer answers, we replace it with the reachable address with the lowest latency in the same subnet.
Who measures the latency
Probes in mainland China from two public measurement networks. Each hour one vendor takes its turn, so each vendor is measured in two or three time slots a day, by day and at night, and the day's runs are averaged. Each run uses up to 12 probes on each of Telecom, Unicom and Mobile (6 per network; when a network has fewer that day, we use what it has), and each probe pings 4 times.
How to read it
“Telecom 18 · Unicom 22 · Mobile 37 ms” is the latency on each of the three carriers; hover to see the probe cities and loss rate. When a carrier shows 20% loss or more, it is spelt out, e.g. “Telecom 99 (loss 55%)”. That latency figure is only the average of the packets that came back, and in real use the connection will lag; the “My network” filter and sorting do not count it as reachable. We have cross-checked such loss over TCP ports: the handshake time grows several-fold, so it is the path from that carrier to the data centre that drops packets, not the server rate-limiting ping. Sorting by the column uses the fastest of the three carriers.
No reply and unreachable
“no reply” on one carrier means that probe could not reach the IP. “Test IP unreachable” means probes both inside and outside China could not reach it, usually because the IP has been retired; it does not mean the route or the server is unavailable. IPs that block ping are tested on TCP port 80/443 instead.
How accurate is it
For reference only. Each run uses at most 12 probes per carrier, pinging 4 times each; the probes change every run, most sit in data centres rather than on home broadband, and bandwidth and the evening peak are not measured.

What the route names mean

The route is which carrier's network, and which of its networks, carries traffic between mainland China and the data centre. The closer to China and the better the route, the smoother SSH and web pages feel, and the steadier things are at the evening peak.

CN2 GIA
China Telecom's premium network (AS4809), with CN2 both ways. Low latency, stable at the evening peak, the most expensive. The first choice for Telecom users.
CN2 GT
The standard version of Telecom CN2: the international leg uses CN2, the domestic leg uses the ordinary 163 backbone. Cheaper than GIA, a little less stable at the evening peak.
CN2
The vendor only says CN2, without stating GIA or GT; it is safer to expect GT-level performance.
9929
China Unicom's premium network (AS9929, also called Unicom A network or CUII). Works best for Unicom users.
4837
China Unicom's standard backbone (AS4837). Cheap, plentiful bandwidth; may be congested at the evening peak.
CMIN2
China Mobile's premium network (AS58807). Works best for Mobile users.
CMI
China Mobile International's standard outbound route (AS58453): better than a standard route for Mobile users, worse than CMIN2.
All 3 carriers optimised
The vendor states that return traffic for all of Telecom, Unicom and Mobile goes over optimised routes, so it will not be too bad whichever broadband you use.
Standard route
A regular international route, not optimised for mainland China; it can slow down noticeably at the evening peak. As a Main server it may lag from China; if it does, add a Relay in front of it.

This site labels routes as each vendor states them and does not run route tests. Real-world results depend on your broadband carrier; test with the test IP before buying.