Eigenes LLM auf einem VPS in Indien in 20 Minuten betreiben
Ein selbst betriebenes LLM auf einem VPS in Indien haelt Prompts und Dokumente auf einem eigenen Server ohne Token-Abrechnung. Die Anleitung beschreibt die Einrichtung von Ollama und Open WebUI auf Ubuntu 24.04 hinter HTTPS.

Wenn man sein eigenes LLM auf einem VPS in Indien betreibt, bleiben Prompts und Dokumente auf einem selbst kontrollierten Server innerhalb des Landes, ohne Abrechnung pro Token. Diese Anleitung richtet Ollama (den Model Runner) und Open WebUI (eine ChatGPT-artige Oberfläche) auf Ubuntu 24.04 ein, mit HTTPS, in etwa 20 Minuten.
Ohne GPU führt Ollama Modelle auf der CPU aus, und der Arbeitsspeicher entscheidet, was passt. Ein 4-bit-quantisiertes Modell benötigt ganz grob 0,6 bis 0,7 GB RAM pro Milliarde Parameter, plus Platz für System und Kontext.
Mehr vCPU-Kerne bedeuten schnellere Antworten. Für schnelle interaktive Antworten von Modellen der 70B-Klasse braucht man eine GPU.
sudo apt update && sudo apt -y upgrade curl -fsSL https://ollama.com/install.sh | sh ollama pull qwen2.5:7b ollama run qwen2.5:7b "Erkläre den GST Input Credit in zwei Zeilen" Vollbildmodus öffnen Vollbildmodus verlassen Das Installationsprogramm legt einen systemd-Dienst an. Standardmäßig lauscht die API nur auf 127.0.0.1:11434. So sollte man es belassen: Ein offener Ollama-Port erlaubt jedem im Internet die Nutzung des eigenen Servers.
curl -fsSL https://get.docker.com | sh sudo docker run -d --network=host \ -e OLLAMA_BASE_URL = http://127.0.0.1:11434 \ -v open-webui:/app/backend/data \ --name open-webui --restart always \ ghcr.io/open-webui/open-webui:main Vollbildmodus öffnen Vollbildmodus verlassen Mit Host-Networking lauscht Open WebUI auf Port 8080 und erreicht Ollama auf localhost.
Richte einen DNS-Eintrag (zum Beispiel ai.example.com) auf die VPS-IP-Adresse, dann:
sudo apt -y install caddy echo 'ai.example.com { reverse_proxy 127.0.0.1:8080 }' | sudo tee /etc/caddy/Caddyfile sudo systemctl reload caddy Vollbildmodus öffnen Vollbildmodus verlassen Caddy holt eigenständig ein Let's-Encrypt-Zertifikat.
sudo ufw default deny incoming sudo ufw allow 22/tcp sudo ufw allow 80,443/tcp sudo ufw enable Vollbildmodus öffnen Vollbildmodus verlassen Die Ports 8080 und 11434 bleiben für das Internet geschlossen. Öffne https://ai.example.com, lege das erste Konto an (es wird zum Admin-Konto) und deaktiviere die offene Registrierung in den Admin-Einstellungen.
Wähle einen KVM-VPS mit dediziertem RAM, aktuellen CPUs und Servern, die physisch in Indien stehen. Inservers betreibt KVM-VPS auf AMD EPYC 7C13 mit NVMe im Rechenzentrum Yotta D1 (Delhi NCR), hinter dauerhaft aktivem Cloudflare Magic Transit, mit Tarifen, die auf Ollama abgestimmt sind, von 16 GB bis 512 GB RAM: Ollama VPS in Indien.
Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.
Original (Englisch) anzeigen
Running your own LLM on a VPS in India keeps prompts and documents on a server you control, inside the country, with no per-token bill. This guide sets up Ollama (the model runner) and Open WebUI (a ChatGPT-style interface) on Ubuntu 24.04, behind HTTPS, in about 20 minutes.
Without a GPU, Ollama runs models on the CPU, and RAM decides what fits. A 4-bit quantised model needs very roughly 0.6 to 0.7 GB of RAM per billion parameters, plus room for the system and context:
More vCPU cores mean faster replies. For fast interactive answers from 70B-class models you need a GPU.
sudo apt update && sudo apt -y upgrade curl -fsSL https://ollama.com/install.sh | sh ollama pull qwen2.5:7b ollama run qwen2.5:7b "Explain GST input credit in two lines" Enter fullscreen mode Exit fullscreen mode The installer creates a systemd service. By default the API listens only on 127.0.0.1:11434. Keep it that way: an open Ollama port lets anyone on the internet use your server.
curl -fsSL https://get.docker.com | sh sudo docker run -d --network=host \ -e OLLAMA_BASE_URL = http://127.0.0.1:11434 \ -v open-webui:/app/backend/data \ --name open-webui --restart always \ ghcr.io/open-webui/open-webui:main Enter fullscreen mode Exit fullscreen mode With host networking, Open WebUI listens on port 8080 and reaches Ollama on localhost.
Point a DNS record (for example ai.example.com ) at your VPS IP, then:
sudo apt -y install caddy echo 'ai.example.com { reverse_proxy 127.0.0.1:8080 }' | sudo tee /etc/caddy/Caddyfile sudo systemctl reload caddy Enter fullscreen mode Exit fullscreen mode Caddy fetches a Let's Encrypt certificate on its own.
sudo ufw default deny incoming sudo ufw allow 22/tcp sudo ufw allow 80,443/tcp sudo ufw enable Enter fullscreen mode Exit fullscreen mode Ports 8080 and 11434 stay closed to the internet. Open https://ai.example.com, create the first account (it becomes the admin), and turn off open sign-ups in the admin settings.
Pick a KVM VPS with dedicated RAM, current CPUs and servers physically in India. Inservers runs KVM VPS on AMD EPYC 7C13 with NVMe at Yotta D1 (Delhi NCR), behind always-on Cloudflare Magic Transit, with plans sized for Ollama from 16 GB to 512 GB RAM: Ollama VPS in India.