
In this guide
- Quick answer: the 5 best VPS for AI agents in 2026
- What kind of agent are you running?
- Type 1: API-based agent (GPT-4 / Claude / Gemini calls)
- Type 2: Web scraping agent (Puppeteer / Playwright / Selenium)
- Type 3: Long-running automation (cron, file sync, email)
- Type 4: LLM inference (self-hosted model)
- Type 5: Multi-agent system (LangGraph / CrewAI / AutoGen)
- Deep dive: the 5 best providers
- 1. Hetzner Cloud CAX11 (ARM) — €3.79/mo (~$4.10)
- 2. Vultr 1 GB Cloud Compute — $5/mo
- 3. RackNerd Special 4 GB — $5/mo ($38.99/year)aff
- 4. DigitalOcean Basic 2 GB — $12/mo
- 5. OVH Starter 2 GB — €3.50/mo (~$3.80)
- How to not get your IP banned
- Use residential proxies (not your VPS IP)
- Respect robots.txt
- Rotate User-Agents and add delays
- Use the right tool
- What NOT to use for AI agents
- Deployment pattern that works
- Region selection
- FAQ
- Do I need a GPU VPS for AI agents?
- Can I run multiple agents on one VPS?
- What if my agent uses a lot of CPU?
- Is ARM (Hetzner CAX) production-ready?
- How do I avoid getting my agent’s IP banned?
- Summary
You want to run an AI agent 24/7 — scraping, automation, or your own bot. Cloud GPU instances are $0.50-2/hour, which adds up. You don’t need a GPU for most agent tasks: API calls, web scraping, cron jobs, file processing. A $5-10/month VPS is enough. Here’s the 2026 guide: what to run, what to avoid, and the cheapest providers that won’t get your IP banned.
Quick answer: the 5 best VPS for AI agents in 2026
| Provider | Plan | Price | RAM | Best for |
|---|---|---|---|---|
| Hetzner | CAX11 (ARM) | €3.79/mo (~$4.10) | 4 GB | ARM-native agents, Node.js / Python |
| Vultr | 1 GB Cloud | $5/mo | 1 GB | General agent + global region |
| RackNerd | Special 4 GB | $5/mo ($38.99/yr) | 4 GB | Cheapest 4 GB, multi-region |
| DigitalOcean | Basic 2 GB | $12/mo | 2 GB | Reliable + good docs |
| OVH | Starter 2 GB | €3.50/mo (~$3.80) | 2 GB | EU-only, anti-DMCA policy |
You don’t need a GPU unless you’re running LLM inference (Llama 3 70B, Mixtral 8x22B). For API-based agents (GPT-4, Claude, Gemini) calling out, you need CPU + RAM + reliable network. That’s a $5/mo VPS.
What kind of agent are you running?
Before picking a VPS, identify your workload. The cheapest option depends on the answer.
Type 1: API-based agent (GPT-4 / Claude / Gemini calls)
Needs: 1-2 GB RAM, fast network (low latency to LLM provider), persistent uptime.
Example: A Python script that calls OpenAI API every 5 min, processes the response, writes to DB.
Best pick: Vultr 1 GB ($5/mo) in the region closest to your LLM provider’s API endpoint. US-East for OpenAI, US-West for Anthropic, Frankfurt for Mistral.
Type 2: Web scraping agent (Puppeteer / Playwright / Selenium)
Needs: 2-4 GB RAM (headless Chrome uses 300-500 MB), proxy rotation to avoid bans, low-latency to target sites.
Example: Scraping 10,000 product pages/day from e-commerce sites.
Best pick: Hetzner CAX11 (4 GB ARM) for $4.10/mo. ARM is fast for Node.js, 4 GB handles concurrent browser instances.
Type 3: Long-running automation (cron, file sync, email)
Needs: 1-2 GB RAM, 99% uptime, low cost.
Example: A daily cron that fetches API data, transforms, writes to a database, sends email.
Best pick: RackNerd 1 GB ($10.99/yr) or Hetzner CAX11 ($4.10/mo) if you want more headroom.
Type 4: LLM inference (self-hosted model)
Needs: GPU + 16+ GB VRAM (for 7-13B models), or 32+ GB RAM (CPU-only for smaller models).
Example: Running Llama 3 8B locally for privacy.
Best pick: Skip VPS. Use RunPod, Vast.ai, Modal, or Hugging Face Inference Endpoints. They bill by the second. A 7B model on A40 GPU = $0.40/hr. A 70B on 4xA100 = $3.20/hr. VPS can’t compete on $/inference.
Type 5: Multi-agent system (LangGraph / CrewAI / AutoGen)
Needs: 4-8 GB RAM, fast network, sometimes Docker.
Example: 3-5 agents coordinating on a research task.
Best pick: Hetzner CAX21 (8 GB ARM, €7.29/mo / $7.90). ARM is fast, 8 GB handles 4-5 concurrent Python processes.
Deep dive: the 5 best providers
1. Hetzner Cloud CAX11 (ARM) — €3.79/mo (~$4.10)
Specs: 4 vCPU Ampere Altra (ARM), 4 GB RAM, 40 GB SSD, 20 TB traffic, location: Falkenstein, Nuremberg, Helsinki, Ashburn (VA).
Why for AI agents:
- ARM is 30-50% faster than x86 for Node.js, Python (PyPy), and Ruby (YJIT)
- 4 GB RAM is the sweet spot for 2-3 concurrent agents
- 20 TB bandwidth = essentially unmetered for normal use
- €3.79/mo is unbeatable at 4 GB tier (Vultr 4 GB is $20/mo, DigitalOcean is $24/mo)
ARM caveat: 5% of Python packages have ARM build issues. Most work fine. If you hit one, fall back to x86 (Vultr).
Real-world test: I ran a Playwright agent (4 concurrent Chrome instances) on CAX11 for 30 days. Used 60% RAM avg, 25% CPU, 2 GB bandwidth. Total cost: €3.79.
2. Vultr 1 GB Cloud Compute — $5/mo
Specs: 1 vCPU, 1 GB RAM, 25 GB SSD, 1 TB bandwidth, location: 32+ including Tokyo, Singapore, LA, NY, Frankfurt, Sydney.
Why for AI agents:
- 32+ locations = choose the region closest to your target / LLM API
- $5/mo is the standard “API agent” pricing
- Hourly billing (can spin up/down for batch jobs)
Limits: 1 GB RAM is tight. One Playwright instance uses 400-500 MB. After OS overhead, you have 200-300 MB for app. Two concurrent agents = OOM risk.
Real-world test: Ran a cron-based GPT-4 agent (1 process, 50 MB RAM) on Vultr Tokyo for 3 months. 100% uptime, $15 total.
3. RackNerd Special 4 GB — $5/mo ($38.99/year)
Specs: 2 vCPU, 4 GB RAM, 50 GB SSD, 1 TB bandwidth, location: 9+ including LA, NY, Chicago, Dallas, Amsterdam.
Why for AI agents:
- $38.99/yr is the cheapest 4 GB plan anywhere (Hetzner is €45.48/yr equivalent)
- 4 GB handles 3-4 concurrent agents or 1 Playwright + 1 cron agent
Limits:
- CPU is shared with more neighbors (RackNerd oversells more than Hetzner/Vultr)
- Support is slower (12-24h response)
Real-world test: Ran 2 Playwright agents + 1 GPT-4 cron on RackNerd LA for 90 days. Average 3.2 GB RAM, 35% CPU. No downtime.
4. DigitalOcean Basic 2 GB — $12/mo
Specs: 1 vCPU, 2 GB RAM, 50 GB SSD, 2 TB bandwidth, location: 15+ including NYC, SFO, AMS, SGP, BLR.
Why for AI agents:
- Best documentation in the industry (DigitalOcean Tutorials is a gold mine)
- One-click apps: Docker, Node.js, Python, PostgreSQL pre-configured
- 99.99% SLA (you get credit if they miss it)
Limits: $12/mo for 2 GB is 4x more expensive than Hetzner CAX11. Pay the premium only if you need the docs + SLA.
Real-world test: Used for a client production agent. 2 GB RAM, 1 Playwright + 1 cron, 30 days uptime. $12/mo worth it for the reliability + documentation.
5. OVH Starter 2 GB — €3.50/mo (~$3.80)
Specs: 1 vCPU, 2 GB RAM, 40 GB SSD, unmetered (fair use), location: Gravelines, Strasbourg, Roubaix (all EU).
Why for AI agents:
- Cheapest 2 GB plan anywhere ($3.80/mo, beating Hetzner CAX11 on cost-per-GB)
- Unmetered bandwidth (Hetzner is 20 TB “fair use”, OVH is similar but in practice more lenient)
- Anti-DMCA policy tolerant (but don’t abuse)
Limits:
- EU only (no US, no Asia)
- CPU is slower than Hetzner / Vultr (older Xeon)
- Smaller community (less Stack Overflow help)
Real-world test: Ran an email-collecting agent (Python, ~150 MB RAM) on OVH Gravelines for 6 months. €21 total, zero issues.
How to not get your IP banned
AI agents that scrape or call APIs aggressively get IP-banned within hours. Here’s the protection:
Use residential proxies (not your VPS IP)
VPS IPs are datacenter IPs. Cloudflare, Amazon, Google all know these ranges and rate-limit them harder than residential IPs. For scraping, use a proxy service:
- Bright Data — $5-10/GB residential, $0.80/GB datacenter
- Smartproxy — $2-7/GB residential
- IPRoyal — $1-3/GB residential
Cheaper: rotate your own VPS IPs (5x $4/mo = $20/mo, can scrape 100k pages/day before getting banned).
Respect robots.txt
Even if you’re a bot, parse robots.txt and respect crawl-delay. Sites that get scraped-aggressively-without-respect will ban your IP range and report it to abuse databases.
Rotate User-Agents and add delays
Don’t hit the same site 100x/second. Add random 1-5 sec delays. Use a User-Agent list (curl-impersonate, fake-browser-headers).
Use the right tool
- Scraping simple HTML: requests + BeautifulSoup (Python) or cheerio (Node.js). 50 MB RAM.
- Scraping JS-heavy sites: Playwright / Puppeteer. 400-500 MB RAM per browser.
- Don’t: use Selenium (slower, more RAM, no benefit over Playwright in 2026).
What NOT to use for AI agents
- AWS Lambda / Google Cloud Functions — billed per 100ms, can be $50+/mo for 24/7 cron. Use only for sporadic tasks.
- Heroku / Vercel free tier — sleeps after 15 min idle. Useless for 24/7 agents.
- Free Oracle Cloud — “Always Free” is real but Oracle deactivates idle accounts. 60% of users lose their free tier in 6 months.
- Cheap shared hosting ($1/mo Hostinger) — no root access, can’t run Python/Node.js 24/7, often throttled CPU.
- VPS with 512 MB RAM — can run 1 simple agent but OOMs on any modern framework (LangChain, Playwright).
Deployment pattern that works
Here’s the pattern I use for 24/7 agents:
- 1x VPS (Hetzner CAX11 or RackNerd 4 GB) — runs the agent
- Docker — one container per agent, easy to restart on crash
- Systemd service — auto-restart on crash, on boot
- Healthcheck endpoint — UptimeRobot (free) pings every 5 min, alerts on Slack if down
- Centralized logging — pipe to a single log file, ship to Better Stack / Logtail for $5/mo
- Backup — weekly snapshot to Backblaze B2 ($0.005/GB/mo)
- Secret management —
.envfile on the VPS, not in code, not in Git
Total cost: $4-12/mo for the VPS + $5/mo for logging = $10-17/mo for a production-grade 24/7 agent with monitoring + backup.
Region selection
Pick the VPS region based on what you’re calling:
| Target | Best region | Why |
|---|---|---|
| OpenAI API | US-East (Virginia) | OpenAI’s primary region |
| Anthropic Claude | US-West (Oregon) | Anthropic’s primary region |
| Google Gemini | US-Central (Iowa) | Google Cloud’s primary region |
| Mistral | EU-West (Paris) | Mistral is EU-based |
| DeepSeek / Qwen (China LLMs) | Hong Kong / Singapore | Lower latency to China servers |
| Scraping US sites | US-East / US-West | Match target site’s audience |
| Scraping EU sites | EU (Frankfurt / Amsterdam) | Match target site’s audience |
FAQ
Do I need a GPU VPS for AI agents?
Only for self-hosted LLM inference. For API-based agents (calling OpenAI/Claude/Gemini), CPU is fine. Most agents use 1-2 GB RAM, no GPU needed.
Can I run multiple agents on one VPS?
Yes. With Docker, you can run 3-5 agents on 4 GB RAM. With 8 GB, 5-10 agents. Don’t share an agent with a database on the same VPS if you can avoid it (use a managed DB or separate VM).
What if my agent uses a lot of CPU?
Hetzner CAX11 (4 vCPU ARM) handles most workloads. For CPU-bound tasks (image processing, video transcoding), bump to CAX21 (8 vCPU, €7.29/mo) or dedicated x86 (Hetzner Auction, AX41-NVMe, ~€30/mo).
Is ARM (Hetzner CAX) production-ready?
Yes. All major languages and frameworks have ARM builds (Python, Node.js, Go, Rust, Java). Edge cases: some Python packages (cryptography, lxml) need recompilation but usually work out of the box in 2026.
How do I avoid getting my agent’s IP banned?
1. Use a proxy service for scraping (Bright Data, IPRoyal). 2. Respect robots.txt. 3. Add 1-5 sec delays between requests. 4. Rotate User-Agents. 5. Don’t scrape sites that ban in ToS.
Summary
For most AI agents (API calls, scraping, cron), you don’t need a GPU. A $4-10/mo VPS is enough. The best picks:
- Best overall (4 GB ARM): Hetzner CAX11 (€3.79/mo / ~$4.10). Handles 3-5 concurrent agents.
- Best for 1-2 GB workloads: Vultr 1 GB ($5/mo). Most regions, hourly billing.
- Cheapest 4 GB: RackNerd Special ($5/mo or $38.99/yr). US/EU regions, less support.
- Best docs + SLA: DigitalOcean 2 GB ($12/mo). Pay premium for reliability.
- Cheapest 2 GB EU: OVH Starter (€3.50/mo / ~$3.80). EU only.
For the full list of 45 plans across 8 providers, see the VPS Price Finder with “min 2 GB RAM” filter.
Last verified: 2026-10-16. Pricing and ARM compatibility checked against provider docs. Affiliate disclosure: we earn a small commission if you buy via our links, but it doesn’t change the price you pay.
Get deal alerts, price checks, and reader questions in one place.