TrackVPS › VPS for Claude Code
Best VPS for Claude Code and AI agents
AI agents don't need a big server: the model runs at Anthropic or OpenAI, your VPS only runs the tools. 8 GB is enough for most people, 16 GB if several agents and a browser run all day. Cheapest we track today: €3.81/mo for 4 GB (OVHcloud), €4.40/mo for 8 GB (Contabo), €11.20/mo for 16 GB (Contabo). Here's what our own agent box actually uses.
What our 24/7 agent server uses
- Server: Netcup VPS 2000 G12.5: 8 vCPU, 16 GB RAM, 256 GB disk, €22.62/month (12-month term).
- Runs all day: two Claude Code sessions (one controlled from Telegram), MCP tool servers, a shared Chromium browser for web tasks, and cron jobs (this site's price scraper and network monitor).
- RAM: about 8 GB used of 16 GB. Biggest users: the shared browser and the MCP tool servers; Claude itself uses about 0.6 GB.
- CPU: load average 0.1–0.4 on 8 cores. Agents mostly wait for API answers.
- Disk: 55 GB used of 251 GB.
Measured on our server on 16 November 2026 (on 3 October it used about 4 GB; it grew as we added agents and jobs). Your numbers depend on what your agents start (browsers, builds, databases).
4 GB: 1–2 agents, no browser. Bots, Claude Code over SSH, cron jobs.
| Plan | vCPU | RAM | Monthly | Contract | |
|---|---|---|---|---|---|
| OVHcloudVPS-1'From' price on OVH's page; the final price depends on location and commitment chosen when you configure. Unlimited traffic. | 2 | 4 GB | €3.81 | Monthly ('from' price) | See plan |
| IONOSVPS M+$5/month for the first 3 months, then $14/month, with a one-year term. No setup fee; IPv4 and IPv6 dual stack and unlimited traffic at up to 1 Gbps included (the page no longer states the number of IPv4 addresses). State/local sales taxes may apply. Billed in USD ($5.00/month); converted at 1.0992 USD per EUR (ECB). | 2 | 4 GB | €4.55 | 12-month term; intro for 3 months | See plan |
| RackNerdKVM VPS Special 4 GB$59.99/year paid annually; renews at the same $59.99/year for life according to the Specials FAQ. 7 TB monthly transfer at 1 Gbps and one IPv4 included; SSD RAID-10. Base configuration; upgrades cost extra. Taxes are not itemized; confirm checkout. Monthly equivalent converted at 1.1225 USD per EUR (ECB, 2 October 2026). Source: https://www.racknerd.com/specials/ (checked 5 October 2026). Order: https://my.racknerd.com/cart.php?a=add&pid=954 | 3 | 4 GB | €4.56 | Yearly promo (paid annually) | See plan |
8 GB: 2–4 agents plus a headless browser (Playwright) or a small dev server.
| Plan | vCPU | RAM | Monthly | Contract | |
|---|---|---|---|---|---|
| ContaboCloud VPS 4Promo price for the first 24 months; the page doesn't show the price after that, so check before buying. CPU is often reported as oversold. | 4 | 8 GB | €4.40 | Promo for first 24 months | See plan |
| ContaboCloud VPS 6Price rises to €9.00 after 24 months. CPU is often reported as oversold. | 6 | 12 GB | €6.00 | Promo for first 24 months | See plan |
| OVHcloudVPS-2'From' price on OVH's page; the final price depends on location and commitment chosen when you configure. Unlimited traffic. | 4 | 8 GB | €7.21 | Monthly ('from' price) | See plan |
16 GB: Several always-on agents, a shared browser, dev servers and scheduled jobs. What we run.
| Plan | vCPU | RAM | Monthly | Contract | |
|---|---|---|---|---|---|
| ContaboCloud VPS 8Price rises to €16.80 after 24 months. CPU is often reported as oversold. | 8 | 24 GB | €11.20 | Promo for first 24 months | See plan |
| HostingerKVM 4Intro price needs 24 months paid upfront; renews at $28.99/mo (more than double). Billed in USD; euro price converted at the ECB rate of 1.1225 USD per EUR on 2 October 2026. | 4 | 16 GB | €11.82 | 24 months paid upfront | See plan |
| IONOSVPS XL+$14/month for the first 3 months, then $47/month, with a one-year term. No setup fee; IPv4 and IPv6 dual stack and unlimited traffic at up to 1 Gbps included (the page no longer states the number of IPv4 addresses). State/local sales taxes may apply. Billed in USD ($14.00/month); converted at 1.0992 USD per EUR (ECB). | 8 | 16 GB | €12.74 | 12-month term; intro for 3 months | See plan |
Setup tips from running agents 24/7
- Run each long-lived agent in its own tmux session (or a systemd service) so it survives disconnects and restarts.
- Give agents scoped API tokens and keep secrets in files the agent is told never to print.
- Add swap on 4–8 GB servers; browsers spike memory.
- Pick a location near you for snappy SSH, and back up the server's work folders off-site every night.
- Same advice works for OpenClaw, Codex and other agents that call a cloud model: the server runs tools, not the model.
Questions people ask
How much RAM do I need to run Claude Code on a VPS?
Claude Code itself is light: on our server all Claude processes together use about 0.6 GB. The RAM goes to what agents start: the shared headless browser and the MCP tool servers take most of the 8 GB our box uses (16 November 2026). Rule of thumb: 4 GB without a browser, 8 GB with one, 16 GB for several agents running all day.
Does an AI agent VPS need a GPU?
No. Claude Code, OpenClaw and similar agents send the thinking to the model provider's API; your server only runs the tools, files and browser. A normal shared-CPU VPS is enough. You only need a GPU if you run the model itself (local LLMs).
How much CPU do AI agents use?
Very little most of the time: agents mostly wait for API answers. Our 8-core server sits at a load of about 0.1–0.4 while running two always-on Claude sessions, a shared browser and scheduled jobs. Cheap shared vCPUs are fine.
What is the cheapest VPS for Claude Code?
On 22 November 2026 the cheapest in-stock plans we track are OVHcloud VPS-1 with 4 GB at €3.81/month, Contabo Cloud VPS 4 with 8 GB at €4.40/month, and Contabo Cloud VPS 8 with 24 GB at €11.20/month. Contract terms and catches differ, so check the tables below before you buy.
Which is the best VPS for Claude Code?
For an always-on box, a 16 GB plan with a monthly price you can live with. We run on Netcup VPS 2000 G12.5 (€22.62/month, 12-month term). If you only want to try it, pick an hourly-billed plan and delete it after a week.
Is a VPS better than running agents on my laptop?
For agents that should work while you sleep, yes: the server is always on, has a fixed IP, doesn't drain your battery and you can reach it from your phone (we control ours through Telegram). For one-off coding sessions, your laptop is fine.
Running OpenClaw instead? See OpenClaw VPS. Want a free box? See the Oracle Cloud free tier.
Want a server for games instead? See our Minecraft VPS guide. All plan data is also available through the API.