Best VPS for Claude Code
Anthropic coding agent for the terminal; run it on a VPS to keep long tasks going while your laptop is off.
Claude Code server requirements
| Minimum | Recommended | |
|---|---|---|
| vCPU | 1 | 2 |
| RAM | 4 GB | 8 GB |
| Disk | 10 GB | 40 GB |
- OS:
- Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+ (x64 or ARM64)
- Runtime:
- Native installer, no Node.js needed
- The official minimum is 4 GB RAM; builds and test suites of your project need memory on top of that.
- Requires a Pro, Max, Team, Enterprise, or Console account.
Requirements from the official documentation.Official docs
Cheapest VPS for Claude Code
Plans with at least 2 vCPU, 8 GB RAM, and 40 GB disk, sorted by monthly price.
| Provider | Plan | vCPU | RAM | Disk | Price | |
|---|---|---|---|---|---|---|
| Netcup | VPS 1000 ARM G11 | 6 | 8 GB | 256 GB | $7.36/mo | Details |
| Contabo | Storage Vps 20 SSD | 3 | 8 GB | 400 GB | $8.45/mo | Details |
| Contabo | Cloud Vps Core 6 NVME | 6 | 12 GB | 200 GB | $8.45/mo | Details |
| Hostup | VPS SM | 4 | 8 GB | 100 GB | $8.86/mo | Details |
| Netcup | VPS 1000 G12 | 4 | 8 GB | 256 GB | $9.82/mo | Details |
| Hetzner | CX 33 | 4 | 8 GB | 80 GB | $10.13/mo | Details |
| Netcup | RS 1000 G12 | 4 | 8 GB | 256 GB | $12.10/mo | Details |
| Hetzner | CAX21 | 4 | 8 GB | 80 GB | $12.39/mo | Details |
| Netcup | VPS 2000 ARM G11 | 10 | 16 GB | 512 GB | $12.70/mo | Details |
| Contabo | Cloud Vps Plus 4 NVME | 4 | 8 GB | 150 GB | $15.21/mo | Details |
Details links may be referral links; we may earn a commission at no extra cost to you.
How to install Claude Code on a VPS
Connect to your VPS over SSH
ssh user@your-serverRun the official installer
curl -fsSL https://claude.ai/install.sh | bashStart Claude Code in your project and log in
claude
Commands are taken from the official documentation; check it for the latest version.
Why run Claude Code on a VPS?
A VPS lets Claude Code keep working on long tasks while your laptop is closed, gives it a clean Linux environment that matches production, and keeps experiments away from your personal machine. Connect over SSH and pick up the session from anywhere.
FAQ
What are the Claude Code system requirements?
The official requirements are 4 GB+ RAM and an x64 or ARM64 processor on Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+. An internet connection is required because the model runs on Anthropic servers, so no GPU is needed.
Why choose 8 GB RAM?
Claude Code itself is light, but it runs your project builds, tests, and language servers. 8 GB keeps those comfortable for most web projects.
Do I need an Anthropic account?
Yes. Claude Code requires a Pro, Max, Team, Enterprise, or Console account, or a supported cloud provider such as Amazon Bedrock.