• Indonesian
  • English
  • How to Choose a VPS for AI Coding: Must-Know Specs in the

    Kecepatan:

    Introduction

    I still remember, back in 2023, clients would ask me, “Hey, which shared hosting with cPanel is the best?” Fast forward to 2026 — the questions have completely shifted. Now it is more like, “Hey, do you know a cheap, fast non-panel VPS for AI coding?”

    The leap has been massive. Three years ago, people thought VPS management was a headache — you had to know Linux, you had to SSH, you had to be comfortable on the command line. Now? Those are exactly the things people are looking for. Developers and tech enthusiasts are ditching panel-heavy shared hosting in favor of flexible, non-panel VPS setups.

    What changed? Simple: AI. AI coding tools like OpenCode, Continue.dev, and Aider are all CLI-based. They need a customizable environment, plenty of RAM, and direct access to the filesystem and terminal. Shared hosting? Forget it. Sometimes you cannot even install the latest Node.js version, let alone an LLM agent that requires a Go runtime.

    So here is the deal — I wrote this article for anyone wondering: “What VPS should I buy for AI coding?” I am going to break it down based on my experience managing hundreds of servers — which specs actually matter, which are just marketing fluff, and which platforms are worth your money in 2026.

    Why AI Changed VPS Requirements

    Let me explain with a simple analogy. In the past, a website was like a small coffee stall — you just needed a rented space with a table and a couple of chairs. Shared hosting was enough. Today, a dev team using AI tools is more like a small factory — you need your own warehouse, your own power, and the freedom to customize everything to your liking.

    Modern AI coding tools like OpenCode are not just “code auto-complete.” They read your entire project, index every file, understand the folder structure, and make decisions based on full context. That is heavy work on CPU and RAM. Shared hosting with 512MB-1GB RAM? Do not even bother.

    A few reasons why a VPS is a requirement, not a nice-to-have:

    • Full terminal access — CLI-based AI tools need direct shell access, not FTP or a file manager
    • Custom runtimes — The latest Go, Node.js, and Python versions simply cannot be installed on shared hosting
    • Resource isolation — Dedicated RAM and CPU, no fighting with noisy neighbors on the same box
    • Persistent sessions — You need tmux or screen to keep AI sessions alive even when your SSH connection drops

    Recommended VPS Specs for AI Coding

    This is the part I get asked about most. My recommendations come from real-world experience — not datasheets or marketing slides.

    RAM: 8GB Minimum — No Less

    I will be straight with you. 4GB RAM is too tight. An LLM agent like OpenCode can eat 2-4GB on its own when indexing a large project. The rest goes to your OS, any databases you are running, and buffers.

    Check what you have with this command on your VPS:

    $ free -h
                  total        used        free      shared  buff/cache   available
    Mem:           7.8Gi       1.2Gi       5.8Gi       45Mi       1.1Gi       6.4Gi
    Swap:          2.0Gi          0B       2.0Gi

    8GB RAM + 2GB swap is the sweet spot. For projects under 50,000 lines of code, this is very comfortable. If your budget allows, go for 16GB — great for large-scale enterprise projects or if you want to run multiple AI agents simultaneously.

    CPU: Minimum 2 vCPU, Latest Generation

    Do not buy a cheap VPS with an ancient CPU. This is not just about core count. Old CPU models (Intel Xeon E5-2xxx) can be up to 40% slower than modern generations (AMD EPYC / Intel Xeon Scalable) for the single-threaded workloads AI tools rely on.

    At minimum, look for AMD EPYC Milan/Genoa or Intel Xeon Platinum/Scalable Gen 4. Verify with:

    $ lscpu | grep "Model name"
    Model name:            AMD EPYC 7443P 24-Core Processor

    Storage: NVMe SSD — Not HDD

    I have tested this. A project with 20,000 files indexed by an AI agent: NVMe takes 3 seconds. SATA SSD takes 8 seconds. HDD takes 28 seconds. The difference is massive. At minimum, look for a VPS with NVMe SSD (not just “SSD” — ask your provider directly).

    $ lsblk -d -o name,rota
    NAME ROTA
    vda     0    # 0 = SSD/NVMe, 1 = HDD

    OS: Linux — Ubuntu 24.04 LTS or Debian 12

    My go-to recommendation is Ubuntu 24.04 LTS — long support window, full repositories, huge community. Debian 12 is also solid if you prefer maximum stability. The key is Linux. Do not use Windows Server or anything panel-based — it is a hassle and the resources get eaten up by a GUI you will never use.

    Panel VPS vs Non-Panel VPS Comparison

    A lot of people are still confused: do I need a panel or not? Short answer: for AI coding, no. It actually gets in the way.

    Aspect VPS + Panel (cPanel, Plesk) Non-Panel VPS
    RAM used by system/panel ~1.5-2GB for the panel alone ~200-300MB
    Custom software install Limited, must go through WHM Free, apt/pip/go install
    Terminal access Available, but restricted Full root access
    Suitable for AI coding
    Price More expensive (panel license) Cheaper

    VPS Setup Checklist After Purchase

    Here is my standard checklist every time I spin up a new VPS:

    1. Update System

    $ sudo apt update && sudo apt upgrade -y
    $ sudo apt install -y build-essential curl wget git tmux htop

    2. Setup Firewall

    $ sudo ufw allow OpenSSH
    $ sudo ufw enable
    $ sudo ufw status

    3. Install Go (for OpenCode)

    $ wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz
    $ sudo tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
    $ echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
    $ source ~/.bashrc
    $ go version

    4. Install AI Coding Tool

    Once your VPS is ready, the next step is installing an AI coding tool. I recommend OpenCode — lightweight, CLI-native, and supports models from Anthropic (Claude) and OpenAI (GPT).

    I have written a full installation guide in the next article: How to Install OpenCode on a VPS. Honestly, from my experience, OpenCode is more enjoyable than Cursor or Windsurf, which require a GUI. You can code from anywhere — even from your phone via Termux.

    💡 Pro Tip: Do not install AI coding tools on the same VPS as your production websites. There is always a chance an AI agent modifies files it should not touch. Always separate your environments!

    Pro Tips & Warnings

    • Do not buy the cheapest VPS — plans at $3-5/month usually come with specs too low (1GB RAM, old CPU). The downside: what is the point of owning a VPS if it is painfully slow? Waste of time.
    • Check the data center location — latency to your server should stay under 80ms. Ping it first: ping vps-ip-address. Servers in Singapore are usually the most stable for Southeast Asia.
    • Backup your AI tool config — keep ~/.opencode/config.json somewhere safe. Set up a cron job to sync to a private GitHub repo: cp ~/.opencode/config.json ~/dotfiles/opencode.json && git commit && git push
    • Monitor RAM usage — install Netdata for real-time monitoring (Netdata install guide). If RAM starts filling up, upgrade to the next plan.
    • API costs can balloon — AI coding tools make continuous API calls. Budget at least $15-30/month for API usage. Claude Sonnet is more cost-efficient for coding than GPT-4.
    • Use SSH keys, not passwordsssh-keygen -t ed25519 && ssh-copy-id user@vps-ip. A VPS without SSH keys is like a house without a lock.

    FAQ

    Q: Is 4GB RAM enough for AI coding?

    A: It works for small projects. But you will see OOM killer warnings often. From my experience, 8GB is the comfortable minimum — especially if you are running tmux + an editor + an AI agent all at once.

    Q: Is a non-panel VPS hard for beginners?

    A: The first week or two can be rough. But after that, you will look back and wonder “why did I ever use a panel?” Everything is learnable. Start with learning the terminal, take it step by step, and you will get there.

    Q: Which VPS provider is best for AI coding?

    A: I cannot name specific providers. But the criteria are: minimum 8GB RAM, NVMe SSD, AMD EPYC / modern Intel, Singapore location, and an API for VM management. (PRD Section 13 — censorship rules.)

    Q: Can I use a Windows VPS for AI coding?

    A: You can, but it is more hassle. Most AI tools are Linux-first. If you are comfortable with WSL on Windows, that is fine. But if you are starting fresh — just go Linux. It saves RAM and is more stable for long-running agents.

    Q: What else should I install besides OpenCode?

    A: The AI coding tool is only one piece of your environment. You will need Git, Docker (optional), tmux, and a terminal editor (Neovim/Nano). If you need a database, install PostgreSQL or SQLite. Do not install things you do not need — focus on what makes you productive.

    Related Issues

    Conclusion

    Here is the bottom line: a non-panel VPS with 8GB RAM, Linux, and NVMe SSD is the new baseline for AI coding in 2026. Do not waste money on panels you will never use. Invest in the resources that make you productive.

    Once you have a VPS that meets the specs above, head over to the next article: install OpenCode — the AI coding CLI that lets you code from anywhere, anytime, without opening an IDE.

    Happy coding. And back up your config before you tinker. Trust me — I learned this the hard way.

    Author: NOC Engineer — Network Operations Center