Self-hosted AI: run your own private ChatGPT with open source tools
How to self-host AI with Ollama, Open WebUI, LocalAI, LibreChat and Jan: what each part does, the hardware you need, licenses and a simple starter setup. Checked December 2026.
Self-hosted AI means running language models on hardware you control, a laptop, a desktop with a good graphics card or a home server, instead of sending every prompt to a cloud service. Your chats and documents stay private, there is no per-message bill, and nothing changes unless you change it. The trade-off is that open models you can run at home are smaller than the largest cloud models, and speed depends on your hardware.
A self-hosted setup usually has two layers: an engine that runs the model and a chat interface people actually use. This guide explains which project fits which layer. We read each license on December 5, 2026. If you mainly want a chat app, our open source ChatGPT alternatives roundup goes deeper on the interfaces.
Quick comparison
| Project | Layer | License | Best for |
|---|---|---|---|
| Ollama | Model engine with an API | MIT | The simplest way to run models locally |
| LocalAI | Model engine with an OpenAI-compatible API | MIT | Text, images, speech and embeddings behind one API |
| Open WebUI | Chat interface | Open WebUI License (BSD-3 with a branding clause) | A polished ChatGPT-style interface for a household or team |
| LibreChat | Chat interface | MIT | Teams mixing local and paid cloud models |
| Jan | Desktop app with a built-in engine | Apache-2.0 | One person, one computer, no server |
Ollama: the easiest engine
Ollama downloads and runs open models with one command, such as ollama run followed by a model name. It handles quantized model files, uses your GPU when it finds one, and exposes a local API that dozens of apps can connect to, including every interface in this guide. It runs on macOS, Windows and Linux, and in Docker. It is MIT licensed.
Choose Ollama as your default engine. Model licenses are separate from Ollama’s own license, so check the terms of each model you download, especially for commercial use.
LocalAI: one API for many kinds of models
LocalAI is a drop-in replacement for the OpenAI API that runs on your own hardware. Besides chat models, it can generate images, transcribe and synthesize speech, and produce embeddings for search, through a range of backends. Because the API matches OpenAI’s, many existing apps work by changing one base URL. It runs on CPUs as well as GPUs and is MIT licensed.
Choose LocalAI when you are building or connecting software that already expects the OpenAI API, or when you need more than text chat from one service.
Open WebUI: the most popular chat interface
Open WebUI looks and feels like ChatGPT. It connects to Ollama or any OpenAI-compatible API, supports multiple users with roles, and adds chat with your documents, web search, voice input, image generation and custom model presets. It installs in one Docker container.
Read its license before you deploy it widely. The Open WebUI License is based on BSD-3 but forbids removing or changing the Open WebUI branding for deployments with more than 50 users in a 30-day period, unless you have permission or an enterprise license. For a household or small team, that rarely matters.
LibreChat: one interface for local and cloud models
LibreChat gives a team one chat interface across many providers: local models through Ollama or LocalAI, plus paid APIs from the major AI labs when you need a bigger model. It supports sign-in with SSO, agents, file uploads, code interpretation and conversation search. It is MIT licensed.
Choose LibreChat when some work needs a top cloud model and some must stay local, and you want both in one place with clear usage controls.
Jan: everything in one desktop app
Jan is a desktop app that downloads open models and runs them offline, with a built-in engine, so there is nothing to install on a server. It can also connect to remote APIs and expose a local API of its own. It is Apache-2.0 licensed.
Choose Jan if you are the only user and want private AI on your laptop in five minutes.
What hardware do you need?
- A recent laptop with 16 GB of memory runs small models, around 3 to 8 billion parameters, at a usable speed. Apple Silicon Macs do well because the GPU shares system memory.
- A desktop GPU with 12 to 24 GB of video memory runs mid-sized models comfortably and serves a few people at once.
- Larger models need more video memory, several GPUs or a lot of patience. Quantized versions trade a little quality for much lower memory use.
Start with a small model, measure how fast it answers, and only then decide whether to buy hardware.
A simple starter setup
- Install Ollama on the computer with the most memory or the best GPU.
- Pull one small and one medium model, and compare their answers on your own tasks.
- Run Open WebUI or LibreChat in Docker and point it at Ollama’s local API.
- Keep it on your network. If you need access from outside, use a VPN rather than exposing the interface to the internet.
- Back up the interface’s data, which holds your users, chats and uploaded documents.
How to choose
- You want private chat on your own computer, today: Jan.
- You want a ChatGPT-style interface for your household or team: Ollama plus Open WebUI.
- Your team mixes local models with paid cloud APIs: Ollama plus LibreChat.
- You are building apps against the OpenAI API: LocalAI.
Want to automate work with your models? See our Zapier alternatives, or browse the directory.
In the directory
Ollama on GitHub (opens in a new tab)
Run supported language models on your own machine and connect them to applications through an API.
Good to know +
Good for: Local model experiments and developer prototypes.
Model licenses and hardware requirements vary independently.
Open WebUI on GitHub (opens in a new tab)
Chat with local or remote models in a ChatGPT-style interface with users, documents and web search.
Good to know +
Good for: Households and teams running models with Ollama.
Its license forbids removing the branding for deployments over 50 users.
LocalAI on GitHub (opens in a new tab)
Run text, image, speech and embedding models behind an OpenAI-compatible API on your own hardware.
Good to know +
Good for: Apps that already expect the OpenAI API.
Model licenses and hardware needs vary by model.
LibreChat on GitHub (opens in a new tab)
Chat with many AI models from one self-hosted interface with agents, search, and multi-user sign-in.
Good to know +
Good for: Teams that want one chat interface over several model providers.
You still pay each model provider for API usage.
Jan on GitHub (opens in a new tab)
Download open models and chat with them offline in a desktop app, or connect to remote APIs.
Good to know +
Good for: Private, local AI chat on a laptop or desktop.
Local model quality and speed depend on your hardware.