Awesome Open Source AI

Open source alternatives to ChatGPT

A self-hosted alternative to ChatGPT is a three-part stack: a chat interface such as Open WebUI, a model runner such as Ollama, and an open-weight model such as Qwen or Llama. On suitable local hardware, it gives you a private chat setup that you control.

Updated July 11, 2026

Flat illustration of a llama relaxing in a blue armchair with a coffee mug, inside a thin house outline

The short answer

You wantRun this
chatgpt.com, but on your own machineOpen WebUI logo Open WebUI+Ollama logo Ollama
One desktop app, no Docker, no serverJan logo Jan
Chat over your own documentsAnythingLLM logo AnythingLLM
One server for a whole teamvLLM logo vLLM+LibreChat logo LibreChat
An assistant that knows your notesKhoj logo Khoj

Why people replace ChatGPT

Hosted plans can be a good fit when you want a service with no local setup. Review the current plan details directly before comparing them with the cost and effort of running your own stack.

For many people who switch, the sticking point is data rather than price. Hosted services have their own retention policies and legal obligations. Self-hosting gives you more control, but you must still manage access, backups, and deletion yourself.

The stack, layer by layer

Nobody ships a single "open source ChatGPT". The replacement is three layers that talk to each other over one shared API convention, which means you can swap any layer later without redoing the others.

The interface

The part you look at. All three speak the OpenAI-compatible API, so they work with any runner below.

open-webui/open-webui GitHub social preview

The default. It reproduces ChatGPT's layout closely enough that nobody at home will ask questions, and it grew RAG, web search, and multi-user support long ago. If you want chatgpt.com on your own domain, start here.

danny-avila/LibreChat GitHub social preview

Closest to feature parity, with agents, a code interpreter, and connections to every major provider. That last part makes it a natural hybrid setup: local models for private work, an API key for the hardest questions.

The runner

The part that executes the model on your hardware.

ollama/ollama GitHub social preview

One-line install, a model registry that works like Docker's, and an OpenAI-compatible API. The runner most people should start with, even though it carries overhead compared to raw llama.cpp.

ggml-org/llama.cpp GitHub social preview

The C/C++ engine underneath half the local-AI ecosystem, Ollama included. Run it directly when you want control over quantization and context size that Ollama's defaults hide from you.

vLLM logo
vLLM 82k Apache-2.0 in the registry
vllm-project/vllm GitHub social preview

Built for throughput. When several people share one server, its continuous batching serves them concurrently instead of queueing them.

The model

Open-weight model families you can download and run. Quality per gigabyte improves every few months, so check release notes before committing VRAM.

openai/gpt-oss GitHub social preview

OpenAI's own open-weight models. The option for people who trust the ChatGPT name but need local deployment.

Shortcuts and specialists

Projects that collapse the stack into one install, or go past plain chat.

janhq/jan GitHub social preview

A desktop app that bundles interface and runner with no Docker involved. The shortest path from download to a first local conversation.

Mintplex-Labs/anything-llm GitHub social preview

A workspace for chatting over your own documents, with RAG built in rather than bolted on.

khoj-ai/khoj GitHub social preview

A personal assistant over your notes and files that can also run scheduled automations.

What your hardware can run

Quantization trades some output quality for lower memory use. Longer context windows need additional memory, so test the model and settings you actually plan to use. GPUs with limited memory get a full breakdown on running local LLMs on 8 GB of VRAM, and machines with no discrete GPU at all are covered in running a local LLM without a GPU.

HardwareWhat fitsHow it compares
Entry-level discrete GPUSmaller quantized modelsA practical starting point for local chat
More VRAM or unified memoryLarger models and more room for contextUseful when model quality matters more than minimal setup
Server-class hardwareLarger deployments or shared useChoose this when operational control is the priority

What you give up

Maintenance is real. Drivers, runner defaults, model formats, and context settings all need occasional attention. Local inference suits people who value control and can tolerate some setup; a hosted service is simpler when you want an appliance.

Quality gaps show up in specific places. Test local models on everyday chat, coding, document parsing, and multi-step reasoning before committing. A hybrid setup can keep private work local while retaining a hosted option for tasks where it performs better. Chatting over your own files is a stack of its own, covered on the self-hosted RAG page. There is also no integrated equivalent of ChatGPT's voice mode, and image generation means standing up a second stack of its own.

Then the money. Buying hardware solely for occasional chat may not be the cheapest option. Self-hosting makes the most sense when you already own suitable hardware, need more control over the service, or cannot send data outside your network.

Questions people actually ask

Can an open model really match ChatGPT?

It depends on the model and the task. Test a local model on representative prompts before replacing a hosted service.

What is the fastest way to try this?

Ollama's quickstart documents local installation and serving, and its model library lists available models.

Do I need a GPU?

No. Ollama and llama.cpp support local inference on CPU and supported GPU backends. Hardware determines which models and settings are practical.

Does self-hosting actually fix the privacy problem?

Self-hosting gives you control over where the model service runs, but you remain responsible for logs, backups, and network access. Review hosted retention policies when comparing options.

Sources

Every project above is one row in the Awesome Open Source AI registry, which resyncs twice a day from the curated GitHub list. The User Interfaces & Self-hosted Platforms category holds a dozen more chat UIs and platforms that didn't make this shortlist.

by Alvin