How to run your own ChatGPT on a VPS
Updated 11/29/2026
You can have your own ChatGPT-style interface on a VPS, in two ways: with models that run locally on the server, or with an interface that uses your own API keys. In both cases, the conversations stay on your server.
Option 1: local models with Ollama
Ollama + Open WebUI runs open-source models (Llama, Mistral and others) directly on the server, with no per-message cost and without data leaving the server. You need more RAM (at least 8 GB recommended for small models). It installs with one click from the app catalog.
Option 2: interface with your own API keys
LibreChat gives you a ChatGPT-style interface for your team, but uses your own API keys from OpenAI, Anthropic or other providers. Ideal if you want the large commercial models, but with a single shared account and the history on your server, not at the provider.
Which plan you need
- Interface with API keys (LibreChat): a small plan is enough; the heavy lifting is done by the AI provider\'s servers.
- Local models (Ollama): pick a plan with more RAM; the larger the model, the more memory you need.
Why self-hosted
Running the AI on your server keeps your data and keys with you, you have no usage limits imposed by a subscription, and the cost is predictable, billed hourly for as long as the server runs. You can even stop the server when you are not using it, so you do not pay for nothing.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
A helpdesk for your team with FreeScout
Turn support emails into tickets: the support mailbox, colleagues, saved replies and backups.
Updated 11/29/2026GuidesGetting started with Twenty CRM on your own server
A modern CRM with no per-seat price: signing in, your team, importing contacts, email and backing up the data.
Updated 11/29/2026GuidesElectronic document signing with DocuSeal
Send contracts for signature from your own server: templates, fields, signers, email and keeping the documents.
Updated 11/29/2026