r/VPS • • 4d ago

Seeking Recommendations VPS for Claude Code

Dear all,

I am pretty ignorant on VPS, I have never had one but I am wondering if it would be fit for my usage. Over the past few weeks I have been running Claude Code on a Seedbox, to explore mathematic research questions. However yesterday, generating a large dataset made my RAM usage blow up (apparently >20Gb) and I've been asked by the seedbox support to stop using Code on it.

Are VPS the most adapted devices for such an usage? I dont need large storage space, and in general not that much RAM, the issue was created by an overambitious Python program to compute examples and conjecture a formula, but I am mostly doing theoretic research. I do want something with decent RAM capacities, that can run even when my local machine is off, and with a good uptime, but it need not be 100%.

If VPS is the most adapted device to such an usage, I am happy to take any recommandation regarding providers and black friday deals, I am based in Western Europe.

Thank you

37 Upvotes

21 comments sorted by

7

u/Important_Rockey 4d ago

Yes, a VPS is exactly the right thing for this, and providers are fine with Claude Code. Just run it inside tmux so it keeps going when you close your laptop, and you can reconnect later and pick up right where it was.

7

u/Important_Guidance59 3d ago edited 1d ago

One correction first: there's no burst RAM on a normal KVM VPS. The RAM in the plan is a hard ceiling: when a script goes past it, the box crawls and then the kernel kills the biggest process. So size for normal work and cap the heavy jobs. Claude Code's docs ask for 4 GB+ RAM, and 4 to 8 GB is plenty for theory work with normal scripts.

The catch is that Claude Code launches the scripts itself, so put the cap in your project's CLAUDE.md, something like: run every Python job as systemd-run --user --scope -p MemoryMax=3G -p MemorySwapMax=0 python3 script.py (3G on a 4 GB box, so Claude Code and the system keep the rest). A runaway script then dies alone with exit code 137. Claude Code sees the error and can rewrite the job to save results to disk in chunks instead of holding everything in memory.

To see the real peak before picking a plan, run the script once with /usr/bin/time -v python3 script py (install the time package if it's missing) and check "Maximum resident set size".

On the IP worry: the same docs list an Anthropic-supported country as a requirement, and a VPS in your own country meets it.

(edited) Forgot the Black Friday part of your question: is*hosting has locations across Western Europe, and until Dec 4 they do 2 years for the price of 1 on VPS.

4

u/AncientBumblebee75 4d ago

If you're attached to a university, check whether you can get access to their computing cluster. A lot of maths departments have one, it's free for researchers, and it's built for exactly this kind of big computation, so you'd keep the VPS small and cheap for everything else.

2

u/darko777 4d ago

Vps doesn’t exactly fit AI labs terms because it will be treated as faking IP like VPNs are treated and you will eventually get banned. Either find a VPS in your own country from where you signed up with Claude and operate or so not use one at all. Faking IP puts you on suspicion on almost any service.

1

u/the_trve 4d ago

Nope, I'm using my subscriptions via multiple Hetzner servers (not where I'm located), from my own computers in other 2 countries (where I live), as well as travelling. Never had a problem with Claude, Codex or Antigravity/Gemini.

2

u/arthur_thomas678 4d ago

You might want to check out VPS providers that offer burstable RAM options, like DigitalOcean or Linode, which can handle spikes in usage without you paying for max capacity all the time.

2

u/SuccessfulPlanteata 2d ago

A VPS is exactly the right fit for this, and since Claude Code itself barely uses any resources, you're really shopping for RAM, so look at European providers' budget lines where 16 to 24GB is fairly cheap, rather than paying extra for a performance tier you won't need for theory work. Whatever you pick, run your sessions inside tmux so they survive disconnects, and cap your Python scripts with something like systemd-run --user -p MemoryMax=12G python script.py, because then a runaway dataset job gets killed on its own instead of freezing the whole server and taking your agent session down with it.

1

u/forbidden-skill 4d ago

you should get a VPS with a leaky bucket algorithm tbh

what a leaky bucket algo does is allow you to access more resources than you pay for when the servers are ideal. wheras confine you to your paid capacity when the server is busy.

It is a big W , as youget wayy more capacity than you pay for.

I would specially look at providers who are based in a different time zone so if I wereyou I would look at providers in india / singapore / malaysia with european servers to maximise this effect.

I have gotten 64gigs ofram usage on a 8gb plan via this metod.

4

u/django-unchained2012 4d ago

Can you name a few?

1

u/Historical_Ad_5291 4d ago

well you definitely need another computer if you don't want to run it on yours, just find/buy another computer and put additional ram on it. DDR4 is not that super expensive, yet

1

u/iEngineered 4d ago

Any VPS with Coolify as your panel so you can atleast have some authority over the server as a human and Claude doesn't leave you completely in the dust.

1

u/garliconionbee 3d ago

A VPS would be a good fit for this. Check out InMotion, they've got some amazing deals now and have really been reliable in our experience. Should help you get started.

-2

u/[deleted] 4d ago

[removed] — view removed comment

1

u/Bulky-College7306 4d ago

how is Alwyzon ?