VPS Gratis (2026)¶
Mana yang masih bisa dipake buat host AI agent gratis di 2026.
Spoiler: Oracle Cloud paling generous (24GB RAM forever). AWS Free Tier 12 bulan. Sisanya trade-off.
Ringkasan cepat¶
| Provider | RAM | Disk | Bandwidth | Durasi | Catatan |
|---|---|---|---|---|---|
| Oracle Cloud | 24GB ARM | 200GB | 10TB/bln | Forever | Approval tricky, ARM only |
| AWS Free Tier | 1GB | 30GB | 100GB | 12 bulan | x86, gampang setup |
| Google Cloud | 1GB | 30GB | 1GB/bln | Forever (e2-micro) | US region only |
| Fly.io | 256MB x 3 | 3GB | 160GB | Forever | Free tier sekarang shared |
| Railway | shared | shared | shared | $5 credit/bln | Bagus untuk tier kecil |
| Render | 512MB | shared | 100GB | Forever (web), spin down | Sleep after 15min idle |
| Koyeb | 512MB | shared | shared | Forever | Lumayan reliable |
| Hetzner | 4GB | 40GB | 20TB | $4.49/bln | Bukan gratis tapi cheap |
Detail per provider¶
Oracle Cloud Always Free ⭐ Most Generous¶
Yang lo dapet (forever): - 4 ARM Ampere A1 cores - 24 GB RAM (bisa split ke 4 instance) - 200 GB block storage - 10 TB outbound/month
Pros: - Resource paling besar di antara semua free tier - Punya public IP - Full root access - Ubuntu / Oracle Linux / AlmaLinux
Cons: - Approval susah. Oracle aggressive flag akun baru sebagai potential fraud. Bisa decline / suspend tanpa peringatan. - ARM architecture (Ampere). Beberapa Python wheels & Docker images ga support ARM, butuh build dari source. - Idle reclaim — kalo instance idle ga ada CPU usage, bisa di-reclaim Oracle. - Support buat free tier minimal.
Cocok buat: - Telegram bot (CPU usage spike pas chat, idle moderate) - Discord bot - Selfhosted LLM proxy (kalo punya quantized model) - Web scraping (kalo bukan terus-terusan)
Sign up tips: - Pakai credit card valid (debit/virtual sering decline) - Jangan pake VPN / Tor saat sign up - Region: Singapore atau Tokyo paling deket dari Indonesia - Verify email + phone
Link: https://www.oracle.com/cloud/free/
AWS Free Tier (12 months)¶
Yang lo dapet (12 bulan pertama): - 750 jam/bulan t2.micro / t3.micro - 1 GB RAM, 1 vCPU - 30 GB EBS storage - 100 GB outbound/month
Setelah 12 bulan: - t3.micro ~$8.50/bulan - Storage masih dihitung - Total ~$10/bulan ongoing
Pros: - x86 architecture (semua software support) - Industry standard, docs lengkap - Banyak service ekstra free (S3 5GB, Lambda 1M req/bln, dll) - AWS CLI mature
Cons: - Kebatas 12 bulan, abis itu charged - RAM cuma 1GB — agent dengan banyak history bisa OOM - Disk cuma 30GB
Cocok buat: - Belajar VPS / Linux dasar - Bot kecil yang ga butuh banyak RAM - Backup target (S3)
Sign up tips: - Wajib credit card valid - Set budget alert di Billing Dashboard (alert kalo > $1) - Disable services yang ga dipake (jangan biarin running)
Link: https://aws.amazon.com/free/
Google Cloud (e2-micro forever)¶
Yang lo dapet (forever): - 1x e2-micro instance (0.25-1 vCPU, 1 GB RAM) - 30 GB standard persistent disk - 1 GB outbound/month (kecil banget) - Region: us-east1, us-west1, us-central1 (US only)
Pros: - Forever free (selama Google policy ga ganti) - x86, full software compat - GCP services lain ada free tier (BigQuery 1TB query, Cloud Functions 2M invocations)
Cons: - Region US only — latency dari Indonesia ~250ms (bot Telegram OK, tapi web tidak) - Outbound cuma 1 GB/bln — bot Telegram bisa habis kalo banyak media - RAM 1 GB ketat
Cocok buat: - Bot kecil dengan traffic rendah - Worker yang trigger by event (cron, webhook)
Sign up tips: - Wajib credit card valid - Aktifkan "Always Free" di account settings - Pilih region us-west1 (Oregon) buat latency paling rendah dari Asia
Link: https://cloud.google.com/free
Fly.io¶
Yang lo dapet (forever): - 3 shared-cpu-1x VMs (256 MB RAM each) - 3 GB persistent storage - 160 GB outbound/month
Pros: - Deploy via Dockerfile / Procfile (kayak Heroku) - Auto-scaling - Multi-region edge
Cons: - RAM 256 MB per VM — kecil. Bot Python dengan LLM SDK bisa habis di startup. - Free tier udah lebih restrictive dari sebelumnya (used to be 3 always-on) - Cold start kalo VM scale down
Cocok buat: - Bot yang stateless / minimal state - API server kecil
Tips: Pakai distroless image, minimize deps.
Link: https://fly.io/
Railway¶
Yang lo dapet: - $5 free credit per bulan - 500 jam execution (shared CPU) - 1 GB RAM, 1 GB disk
Pros: - Deploy via GitHub repo (push to deploy) - Modern UI - Bagus untuk hobby project
Cons: - Cuma $5/bulan, kalo lebih harus bayar - $5 cukup buat low-traffic bot (~10-15 jam runtime per bulan kalo continuous) - Untuk continuous run, butuh upgrade ke $5+/bulan
Cocok buat: - Bot trigger-based (cron, webhook) - Prototype yang ga continuous
Link: https://railway.app/
Render¶
Yang lo dapet (forever): - 1x web service free - 512 MB RAM - Spin down setelah 15 menit idle (cold start ~30 detik)
Pros: - Deploy via GitHub repo - Free SSL - Background workers (paid)
Cons: - Spin down idle = bot ga responsive sampai cold start. Tidak cocok untuk Telegram bot yang harus selalu online. - Background worker bayar ($7/bulan minimum)
Cocok buat: - Static site - Web API yang ga continuous
Tidak cocok: Telegram bot (karena spin down).
Link: https://render.com/
Koyeb¶
Yang lo dapet (forever): - 1x nano instance - 256 MB RAM, 0.1 vCPU - 50 GB transfer
Pros: - Tidak spin down idle (unlike Render) - Deploy via GitHub - Multi-region
Cons: - RAM kecil banget (256 MB) - vCPU shared 0.1 = slow
Cocok buat: - Bot stateless yang ringan - Worker simple
Link: https://www.koyeb.com/
Hetzner (Cheap, bukan gratis)¶
Yang lo dapet: CX11 €3.79/bulan (~$4.30) - 2 vCPU - 4 GB RAM - 40 GB disk - 20 TB traffic
Pros: - Resource paling banyak per dolar di antara provider mainstream - Reliable, datacenter Eropa - Bisa pakai virtual credit card untuk sign up
Cons: - Bayar (tapi murah) - Region Eropa + US (no Asia)
Kalo lo punya $5/bulan budget: Hetzner > AWS > Oracle (lebih reliable approval).
Link: https://www.hetzner.com/cloud
Recommendation per kebutuhan¶
Buat AI agent personal dengan akses penuh (Kai-style)¶
Pilihan 1 (gratis, maks resource): Oracle Cloud Always Free
- 4 OCPU ARM + 24 GB RAM = bisa run bot + LLM proxy + database
- 200 GB disk = banyak space buat history, credential, log
- 10 TB bandwidth = ga akan habis
- ⚠️ Risiko: account decline / suspend
Pilihan 2 (gratis, mainstream): AWS Free Tier 12 bulan
- Stabil, mainstream, full support
- 1 GB RAM agak sempit tapi cukup buat bot Python sederhana
- Setelah 12 bulan: $10/bulan untuk t3.micro
Pilihan 3 (gratis 100%, low-traffic): Google Cloud e2-micro
- Forever free
- Latency US-Asia ~250ms (OK untuk Telegram, bad untuk web)
Pilihan 4 (cheap, reliable): Hetzner CX11 €3.79/bulan
- Best value if you have small budget
- 4 GB RAM, 2 vCPU, plenty of headroom
Buat bot Telegram simple (chat only, ga butuh tool execution)¶
- Railway atau Koyeb cukup
- $5 credit Railway = ~3 minggu continuous run
Buat skripsi / experiment / prototype¶
- Fly.io 3x VMs gratis
- Cukup buat dev / staging environment
Setup di Oracle Cloud (Detail)¶
Step-by-step:
1. Sign up
- https://www.oracle.com/cloud/free/
- Pakai credit card valid (untuk verifikasi, ga di-charge)
- Verify email + SMS
- Wait approval (kadang instant, kadang 24 jam, kadang decline)
2. Create instance
- Compute → Instances → Create Instance
- Image: Ubuntu 24.04 LTS
- Shape: VM.Standard.A1.Flex
- Customize: 4 OCPU, 24 GB RAM (max free tier)
- Networking: public subnet, assign public IP
- SSH keys: upload pubkey lo (atau generate)
3. Open ports
- Networking → VCN → Security Lists → default
- Add Ingress Rules:
- TCP port 22 (SSH) from 0.0.0.0/0
- TCP port 80 (HTTP) if needed
- TCP port 443 (HTTPS) if needed
4. SSH masuk
5. Initial setup
6. Deploy agent
Ikutin Tutorial Setup dari Nol.
Tips ngirit resource¶
- Pakai SQLite bukan PostgreSQL — RAM hemat
- Avoid Docker kalo bisa — overhead tinggi
- Streaming history — jangan load full history per call
- Quantized LLM kalo selfhost —
llama.cppQ4 model muat di 4-6 GB RAM - Use systemd timer bukan cron — lebih efisien
- Log rotation aktif —
journalctl --vacuum-time=7ddi cron
Backup strategy buat free tier¶
VPS gratis sering di-suspend tanpa warning. Backup penting:
# Daily backup ke S3 (free 5GB)
0 3 * * * tar -czf /tmp/agent-backup.tar.gz ~/agent/data ~/agent/credentials && \
aws s3 cp /tmp/agent-backup.tar.gz s3://my-backups/$(date +%Y%m%d).tar.gz
Atau backup ke GitHub private repo (kalo data ga sensitive):
Final verdict¶
Kalo lo serius bikin agent yang jalan 24/7:
- Best free: Oracle Cloud (kalo bisa lolos approval)
- Most reliable free: AWS Free Tier 12 bulan, terus migrasi
- Best $5 budget: Hetzner CX11
Jangan over-rely on free tier. Worst case planning: budget $5-10/bulan, lo udah dapet VPS yang reliable. Free tier is a bonus.