How to Run Ollama on a VPS: A Private AI Chat Without a GPU
Install Ollama on a cheap VPS, pull a small open model and talk to it privately over an SSH tunnel. No GPU needed for small models, and here is where the limits are.
You can run Ollama on a plain VPS with no GPU: install it with one command, pull a small open model such as Llama 3.2 3B, and chat with it from your terminal or through its local API. This guide gives you the exact commands, a private way to reach the server, and an honest view of what a CPU-only machine can and cannot do.
What a CPU-only VPS can run (and what it cannot)
Ollama runs open language models on your own server, so your prompts never go to a third-party API. On a CPU, small models work fine. Big ones do not.
The deciding resource is RAM, not CPU speed. The whole model has to fit in memory, with room left for the operating system. If it does not fit, the server swaps to disk and becomes unusable.
- Small models (1B to 3B parameters) - answer in a few seconds to start and are fine for summaries, rewriting, simple Q&A and testing an app against a local API.
- Mid-size models (7B to 8B) - run on a CPU with plenty of RAM, but replies are slow. Treat it as a demo, not a daily tool.
- Large models - need a GPU. Do not try to squeeze them onto a CPU VPS.
Speed on a CPU is modest and depends on the plan and the model. Test with your own prompts before you build anything on top of it.
Which Neckrez server fits local AI
Start with a VPS that has 4 GB of RAM or more for a 1B to 3B model. That is the default choice for experiments and light private use. If you want steady, predictable CPU for heavier use, the step up is Dedicated CPU (cores reserved for you). For bigger models and fast replies you need GPU: Neckrez GPU servers run on Vultr and Linode, can be ordered when the provider has capacity, and start from about $0.66 per hour. See GPU servers for details.
One honest caveat: a CPU VPS will not feel like a hosted chatbot. It is for privacy, learning and small automations.
How to do it on Neckrez
- Sign up - use an email (no KYC, no ID, no phone, no card).
- Top up the balance in crypto - from $15. USDT on BEP20, TON, Polygon or Solana costs only cents in fees; the payment page shows the exact minimum.
- Pick plan, location and OS - Ubuntu on a plan with 4 GB of RAM or more, in the city closest to you.
- Server ready in about a minute - with full root and a dedicated IPv4.
- Billed hourly - destroy the server anytime and billing stops. See self-hosting on a VPS.
Connect over SSH, update the system, turn on the firewall and install Ollama. The installer sets up a systemd service for you.
ssh root@YOUR_SERVER_IPapt update && apt -y upgrade
ufw allow OpenSSH
ufw enable
curl -fsSL https://ollama.com/install.sh | sh
systemctl status ollama --no-pagerNow pull a small model and chat with it. The first pull downloads the model file, so it takes a while.
ollama pull llama3.2:3b
ollama run llama3.2:3bType a prompt, press Enter, and use /bye to leave. If the server runs out of memory, pick a smaller model such as llama3.2:1b or move to a bigger plan. A swap file helps as a safety net, and the swap calculator shows a sensible size.
Call the model from your own apps
Ollama listens on port 11434 and offers a simple HTTP API. From the server itself you can test it like this:
curl http://127.0.0.1:11434/api/generate -d '{
"model": "llama3.2:3b",
"prompt": "Explain what a reverse proxy does in two sentences.",
"stream": false
}'Ollama also exposes an OpenAI-compatible endpoint under /v1, so many tools that expect an OpenAI-style API can point at your server instead. Check the Ollama documentation for the exact paths your tool needs.
Keep it private: SSH tunnel instead of an open port
By default Ollama binds only to 127.0.0.1, so nobody on the internet can reach it. Keep it that way. Ollama has no login of its own, so an open port would let anyone use your CPU.
To use the API from your laptop, forward the port over SSH. While this command runs, http://127.0.0.1:11434 on your laptop talks to the server.
ssh -L 11434:127.0.0.1:11434 root@YOUR_SERVER_IPss -tlnp | grep 11434The second command should show the port bound to 127.0.0.1 only. If you later add a web interface, put it behind HTTPS and a login.
When to move to a GPU server
Move up when replies feel too slow, when you need a larger model, or when several people use it at once. Order a GPU server only when you know what you need, because it costs far more than a small VPS. A good path is to prove your workflow on the cheap VPS first, then rent a GPU by the hour for the heavy work and destroy it when done.
Rule of thumb: 1B to 3B model on a 4 GB VPS to learn and automate; anything bigger on a GPU server.
FAQ
Do I need a GPU to run Ollama? No. Small models run on a CPU. Large models need a GPU to be usable.
How much RAM do I need? The model has to fit in memory with room for the system. For a 1B to 3B model start with 4 GB and go up if it struggles.
Is my data private? Prompts stay on your server and are not sent to an AI provider. Keep the port closed and reach it through an SSH tunnel.
Get started
VPS from $6/month, billed hourly. Deploy a server and run your first local model today. Neckrez rents VPS, Dedicated CPU and bare metal servers, and GPU servers when the provider has capacity, all on one crypto balance billed by the hour.