PureIP
PureIP

Free network tool

Claude Code VPS 指南:IP 检测与封号注意事项

A VPS gives Claude Code a persistent Linux workspace: the repo stays in one place, long tasks survive a closed laptop, and you can reconnect over SSH. It does not change your account eligibility, supported region, or Anthropic's platform decisions. This guide covers the specs that matter, the setup order, and the IP checks worth doing before and after you buy.

Who this is for: Developers who want Claude Code to keep running after the laptop closes, or who need a stable Linux development box reachable over SSH.

See VPS deals and current prices → 自查 Claude 封号风险 →

What a VPS does — and does not do

A VPS is a Linux machine you rent by the month. For Claude Code, the useful part is persistence: the repository stays in one place, a long refactor or test run continues after your laptop sleeps, and you can reconnect from another computer. The server can also give you a stable IPv4 address, predictable CPU and a clean place to keep build tooling.

What it does not do is change your relationship with Anthropic. A VPS is not a supported-region workaround, an account upgrade, or a guarantee that a platform will accept the connection. Use Claude Code under the account, plan and region rules that apply to you. PureIP is independent and not affiliated with Anthropic.

Server specs that matter

A setup checklist that survives disconnects

Test the network before you install anything

Two different questions get mixed together: can this server reach Anthropic's public endpoints, and is this IP suitable for the account and region you are using? The first is testable. From the VPS, check DNS and HTTPS reachability, then run an external IP check. The second is not something a third-party checker can certify.

Before you buy, use a provider's test IP if one is offered. After you buy, open PureIP's Claude check from the server or from a browser using the same egress. Look at the IP type, ASN, blocklist status and response path separately. A datacenter classification is normal for a VPS; a shared or recycled address with blocklist hits is a different problem.

What our November 2026 IP audit found

We sampled 30 IPv4 addresses from each provider's announced prefixes and checked four live DNSBLs plus reverse DNS. These numbers describe the sampled ranges, not a promise about the address you will receive:

- RackNerd: 30/30 samples with zero hits on the four live lists; named PTR 23/30.

- BandwagonHost: 29/30 zero-hit; named PTR 30/30.

- DMIT: 30/30 zero-hit; named PTR 29/30.

- Hetzner: 30/30 zero-hit; named PTR 30/30, and no cash affiliate program.

This is not a Claude environment score and it does not predict account decisions. Use it as one input, then test the actual IP after provisioning. The full method and all 360 records are linked from the VPS Lab.

The cheap-plan trap

A very cheap annual plan can be the right way to get a small personal Linux box. The hidden costs are CPU steal, slow disks, limited transfer, paid IPv4 and a strict no-refund policy. A plan that cannot finish a build before the provider throttles it is not cheap for development.

For Claude Code, stability beats a slightly faster CPU. Choose a provider with a clear refund window, a real console, snapshots and a documented reverse-DNS process. If your work depends on the server, keep a second copy of the repository and a documented rebuild path.

What to verify before you buy

Who should keep Claude Code local

Frequently asked questions

Can I run Claude Code on a VPS?

Yes. A VPS is just a Linux host, so you can install Claude Code and use it with an eligible account under Anthropic's terms. The VPS does not change your plan, supported region or account status.

What is the cheapest VPS for Claude Code?

There is no universal cheapest option. Small annual plans can be enough for a personal repository, but compare RAM, dedicated IPv4, transfer, virtualisation and refund terms. Do not choose on price alone.

How much RAM does Claude Code need on a server?

A minimal 1 GB server can run the CLI, but 2 GB is a more comfortable floor once Git, Node and a build run together. Large monorepos or parallel builds may need 4 GB or more.

Do I need a GPU on the VPS?

No. Claude Code is a client; inference happens remotely. A GPU only makes sense if your own project needs one for separate machine-learning work.

Will a VPS stop Claude from blocking me?

No. A VPS changes the network path and IP, not account eligibility or a platform's decisions. Be sceptical of any provider that promises an “unblockable” IP.

Is a datacenter IP bad for Claude Code?

Not automatically. Datacenter ranges are normal for VPS hosts. The part worth checking is whether the specific address is shared, recycled or listed on public blocklists, and whether the endpoints are reachable.

Can I close my laptop while Claude Code runs?

Yes, if the job runs inside tmux, systemd or another detached process. Provider reboots, network outages and resource limits still apply, so use snapshots and keep your work pushed.