VPS Requirements for AI Chatbots
Complete guide to VPS specifications for AI chatbot hosting. CPU, RAM, storage, and bandwidth requirements for OpenClaw and OpenClaw.
Quick Reference
| Component | Minimum | Recommended | Heavy Use | |-----------|---------|-------------|-----------| | RAM | 1GB | 2-4GB | 8GB+ | | CPU | 1 core | 2 cores | 4+ cores | | Storage | 20GB | 40GB | 80GB+ | | Bandwidth | 500GB | 1TB | Unlimited | | OS | Ubuntu 20.04 | Ubuntu 22.04 | Ubuntu 22.04 |
Detailed Requirements
RAM (Most Important)
RAM is the primary factor for AI chatbot stability.
What uses RAM:
- Node.js runtime: 100-300MB
- Bot application: 200-500MB
- Conversation contexts: Variable
- Operating system: 200-500MB
Sizing guide:
| Usage Level | Active Users | RAM Needed | |-------------|--------------|------------| | Personal | 1-10 | 1GB | | Small community | 10-50 | 2GB | | Active community | 50-200 | 4GB | | Large deployment | 200+ | 8GB+ |
Recommendation: Start with 2GB, monitor usage, upgrade if needed.
CPU
CPU affects response generation speed and concurrent handling.
Requirements:
- 1 core: Basic operation, may lag under load
- 2 cores: Smooth operation for most uses
- 4+ cores: High concurrency, multiple bots
What uses CPU:
- Message processing
- JSON parsing
- Encryption (TLS)
- Concurrent conversations
Recommendation: 2 cores for most deployments.
Storage
Storage needs are modest for chatbots.
What uses storage:
- Operating system: 5-10GB
- Node.js and dependencies: 500MB-1GB
- Bot code and data: 100MB-500MB
- Logs: Variable (can grow large)
- Database (if used): Variable
Sizing guide:
| Component | Minimum | Comfortable | |-----------|---------|-------------| | OS | 10GB | 15GB | | Bot | 5GB | 10GB | | Logs | 2GB | 5GB | | Buffer | 3GB | 10GB | | Total | 20GB | 40GB |
Recommendation: 40GB provides comfortable headroom.
Bandwidth
AI chatbots use minimal bandwidth.
Typical usage:
- API calls: Small JSON payloads
- Discord/Telegram: Minimal data
- Monthly estimate: 10-50GB for active bot
When you need more:
- Sending many images/files
- Very high message volume
- Multiple bots on same server
Recommendation: 500GB-1TB is plenty for most bots.
Network Quality
Often overlooked but important:
| Factor | Impact | |--------|--------| | Latency | Response time feel | | Uptime | Bot availability | | Peering | Connection to Discord/Telegram |
Recommendation: Choose providers with good network reputation.
Operating System
Recommended: Ubuntu 22.04 LTS
- Long-term support until 2027
- Excellent Node.js compatibility
- Wide documentation and support
- Easy package management
Alternative: Debian 12
- Lighter than Ubuntu
- Very stable
- Good for minimal setups
Not Recommended
- Windows (more resources, less common for bots)
- CentOS (EOL concerns)
- Very old Ubuntu versions
Additional Software
Required
| Software | Version | Purpose | |----------|---------|---------| | Node.js | 18+ (20 preferred) | Runtime | | npm | Latest | Package management | | PM2 | Latest | Process management | | Git | Latest | Code deployment |
Optional
| Software | Purpose | |----------|---------| | PostgreSQL | Database storage | | Redis | Caching, sessions | | Nginx | Reverse proxy | | Docker | Containerization |
Provider Comparison
Budget (£3-7/month)
| Provider | RAM | CPU | Storage | Best For | |----------|-----|-----|---------|----------| | Hetzner CX11 | 2GB | 1 | 20GB | Best value | | Contabo S | 8GB | 4 | 200GB | Most RAM | | OVH Starter | 2GB | 1 | 20GB | UK location |
Standard (£7-15/month)
| Provider | RAM | CPU | Storage | Best For | |----------|-----|-----|---------|----------| | Hetzner CX21 | 4GB | 2 | 40GB | Recommended | | DigitalOcean | 4GB | 2 | 80GB | Beginners | | Vultr | 4GB | 2 | 80GB | Global locations |
Premium (£20+/month)
For high-traffic or multiple bot deployments.
Scaling Considerations
When to Upgrade
Upgrade your VPS when:
- RAM usage consistently >80%
- CPU usage consistently >70%
- Response times increasing
- Frequent memory-related crashes
Monitoring Commands
# Memory usage
free -h
# CPU usage
top -bn1 | head -20
# Disk usage
df -h
# Bot-specific
pm2 monit
Checklist Before Deployment
Server Setup
- [ ] Ubuntu 22.04 installed
- [ ] Non-root user created
- [ ] SSH key authentication
- [ ] Firewall configured (UFW)
Software
- [ ] Node.js 20 installed
- [ ] PM2 installed globally
- [ ] Git installed
Security
- [ ] SSH port changed (optional)
- [ ] Fail2ban installed
- [ ] Automatic updates enabled
Bot Deployment
- [ ] Bot code cloned
- [ ] Dependencies installed
- [ ] Environment configured
- [ ] PM2 process started
- [ ] PM2 startup configured
Common Mistakes
| Mistake | Problem | Solution | |---------|---------|----------| | Too little RAM | Crashes | Start with 2GB minimum | | No process manager | Bot stops when SSH disconnects | Use PM2 | | Running as root | Security risk | Create dedicated user | | No firewall | Open to attacks | Configure UFW | | No monitoring | Don't know when issues occur | Set up alerts |
Related Guides
Need Help Choosing?
Not sure what specs you need? Contact us for personalized recommendations, or check our setup service where we handle everything.
Need a VPS for Your Bot?
We recommend Hostinger KVM 2 VPS - reliable, fast, and perfect for AI chatbots. Get started with our recommended setup.
Get Hostinger VPSNeed Help With Setup?
Got your VPS? Let us handle the technical work. Professional setup and maintenance for OpenClaw (formerly Clawd.bot).