VPS for Claude Code: prices, hosting providers and payment methods
The selection has 1,756 plans from 127 hosts.
Prices start at 2.16 $ per month, a quarter of plans are cheaper than 37.91 $, half are cheaper than 96.00 $.
NVMe: 45% of plans, unlimited traffic: 24%, hourly billing: 100%.
Claude Code is a coding agent that works in the terminal: it reads the repository, edits files, runs builds and tests. On a laptop it stops when you close the lid. On a server the session lives as long as you need: the agent finishes a long task overnight, and you connect over SSH to see what it has done.
Why keep the agent on a server
The session survives. Start claude inside tmux, disconnect, and come back to the same session from another computer or your phone.
Automation.claude -p "…" runs without a dialogue, so you can call the agent from cron, Git hooks or a CI runner (see VPS for CI/CD).
Isolation. The agent runs commands on its own. On a separate server it only sees the repositories and keys you put there, not your whole work laptop.
Several agents at once. Give each one its own git worktree and tmux window, and builds run in parallel on the server's cores.
What matters in the plan
According to Anthropic's documentation, Claude Code needs an x64 or ARM64 processor and at least 4 GB of RAM; supported Linux systems are Ubuntu 20.04+, Debian 10+ and Alpine 3.19+. The agent itself is light — memory and cores go to the builds, tests and Docker containers it starts. For one agent on a small project 2 cores and 4 GB are enough; for two or three agents or a heavy build, take 4 cores and 8 GB. Disk: 40 GB or more on SSD or NVMe, because repository copies, node_modules and build caches grow fast.
Virtualisation should be KVM, so Docker and containerised tests run without restrictions. An IPv4 address of its own lets you SSH in directly. Hourly billing is handy when the server is needed for one task: create it, let the agent do the work, delete it.
How to set it up safely
Work as a separate non-root user: the agent only needs rights to its own home directory.
Keep the API key in the ANTHROPIC_API_KEY environment variable or in a file with 600 permissions, and never commit it.
Close everything except SSH with a firewall and log in with a key, not a password.
For Git, give the agent a deploy key for one repository rather than your personal key to every project.
Turn on snapshots or backups: the agent can make mistakes, and rolling the server back is easier than untangling the changes by hand.
FAQ
9 questions with answers
How much memory does Claude Code need on a server?
The documentation says 4 GB or more. That covers the agent and small builds; if it runs Docker, tests with a database or works alongside other agents, take 8 GB.
Do I need Node.js to install it?
No. The main method is the installer «curl -fsSL https://claude.ai/install.sh | bash»: it installs a ready-made program and keeps it updated. Node.js 22+ is only needed if you install through npm.
How do I keep the session when SSH drops?
Run Claude Code inside tmux or screen. After reconnecting, run «tmux attach» and the agent's session continues where it was.
Can Claude Code run without confirmations?
The «--dangerously-skip-permissions» flag turns confirmations off, but Claude Code refuses it when started as root. Use it only in an isolated environment — a container or a separate server without spare keys and data.
Will an OpenVZ or ARM server do?
ARM64 is officially supported. OpenVZ and LXC can cause problems with Docker, so for an agent that starts containers KVM is the better choice.
How much does VPS for Claude Code cost?
From 2.16 $ per month. A quarter of plans are cheaper than 37.91 $, half are cheaper than 96.00 $. In total 1,756 plans from 127 hosts.
Can I pay for VPS for Claude Code by bank card or cryptocurrency?
By bank card at 92 hosts of 127 (72%), by cryptocurrency at 36 (28%). Payment methods for each plan are in the Payment column.
How much does VPS for Claude Code with 2 GB of RAM cost?
From 2.16 $ per month; with 4 GB from 2.16 $, with 8 GB from 6.03 $.
Which countries have the most plans?
Most plans are in in the USA, in the Netherlands and in Germany. You can pick a country in the filter, and prices and payment methods will update.
Prices and specs are taken from hosting providers' websites; check them on the website before paying, as hosts change plans without notice. About the catalog and methodology