ai
ChatGPT (self-hosted setup) open source alternatives
ChatGPT (self-hosted setup) starts at $20/mo. Here are 4 open-source alternatives — ranked, opinionated, and refreshed daily against the GitHub API. No paid placements in the rankings. No AI-slop lists.
Comparison table (live data)
GitHub metrics snapshot: 2026-08-24
| Project | Stars | Activity |
|---|---|---|
| Ollama Get up and running with large language models locally. | 179.3k | This week |
| Open WebUI Extensible, feature-rich, self-hosted ChatGPT-like WebUI. | 149.8k | This week |
| LobeChat Open-source, modern-design AI chat framework. | 82.0k | This week |
| LibreChat Enhanced ChatGPT clone with agents, DALL-E, RAG, and multi-modal chat. | 42.4k | This week |
The one thesis that will save you a week
"Self-hosted ChatGPT" is a misleading phrase. You can't self-host ChatGPT the product. What you can do is run open-weight models on your own hardware, and put a ChatGPT-shaped UI in front of them. Those are two different projects, and every guide that pretends they're one thing gets you lost. So the honest question isn't "which one replaces ChatGPT." It's which layer of the stack do you own, and which layer are you just borrowing a nice UI for?
Answer that and the four projects below sort themselves in about a minute.
Why teams are running local LLMs in 2026
The pattern in r/selfhosted and r/LocalLLaMA right now is unmistakable:
- Data sovereignty. Anything customer-, patient-, or client-facing that touches an LLM is a leak risk. "Zero data retention" contracts help. Owning the inference server helps more.
- Model choice. OpenAI has one product line. The open-weight world has hundreds — Llama 3.3, Qwen 3, DeepSeek, Mistral, Gemma. Different models are better for different jobs, and you can swap them without changing your app.
- Cost at scale. ChatGPT Team is $30/user/month. For a team of 20 that's $7,200/year. A modest GPU box amortises fast if the workload is real.
"Yesterday I used my weekend to set up local, self-hosted AI. Installed Ollama on my Fedora workstation, spun up Open WebUI in a container, and the open-source Android app Conduit gives me access from my smartphone. As long as my workstation is powered on I can use my self-hosted AI from anywhere." — r/selfhosted, Sep 2026 (663 upvotes)
That thread is the modal self-hosted-AI setup in 2026: Ollama for the model runtime, Open WebUI (or similar) for the interface. Everything on this page is a variation on that pattern.
The four that matter (and how they fit together)
Ollama — the model runtime, not the UI
Ollama (175k stars, pushed daily, MIT) is the base layer. It's not a chat interface. It's a local model server — you install it, run ollama pull llama3.3, and you have an OpenAI-compatible HTTP API on localhost. Everything else on this page talks to Ollama (or something like it) under the hood.
What makes Ollama the default: dead-simple install, GPU support that works out of the box on NVIDIA and increasingly on AMD, and a model library that stays roughly current with the open-weight landscape. It also handles quantization, so you can run a 70B-parameter model on a machine that couldn't possibly fit the full-precision weights.
Pick Ollama if: you want the standard base layer that every other tool on this page (and most homelab tutorials) assumes. It's the one you should install first, no matter which UI you end up on.
Skip Ollama if: you're on Kubernetes at scale and want a proper inference server with autoscaling — vLLM or TGI (Text Generation Inference) are better production-grade choices there. Ollama optimises for "one machine, works today," not fleet-scale inference.
Open WebUI — the default ChatGPT-shaped interface
Open WebUI (144k stars, pushed within days) is the modal ChatGPT clone in the self-hosted world. It plugs into Ollama, into any OpenAI-compatible endpoint, and increasingly into local providers like LM Studio. Multi-user auth, per-model access controls, RAG over uploaded documents, code interpreter (Python sandbox), image generation via ComfyUI or DALL-E, voice chat, web browsing — all of it lives here.
The polish is genuinely good. You can hand Open WebUI to a non-technical teammate and they'll navigate it without help. The license moved from MIT to a modified version in early 2025 that adds a branding restriction — you can still self-host commercially, but you can't rebrand and resell without a paid license.
Pick Open WebUI if: you want the biggest ecosystem, the most feature parity with ChatGPT out of the box, and you're fine with a source-available (rather than pure OSI) license for the polished bits.
Skip Open WebUI if: the branding-restriction clause disqualifies it for your procurement flow, or you want a smaller, more focused surface.
LibreChat — the developer-friendly, MIT-licensed option
LibreChat (40k stars, pushed within days, MIT) is what you pick when you want Open WebUI's shape but a fully permissive license. It's the closest project to a true ChatGPT clone in terms of intent — plugins, agents, RAG, code interpreter, tool use, multi-provider support (OpenAI, Anthropic, Google, plus any OpenAI-compatible endpoint like Ollama).
Feature-for-feature it's not as polished as Open WebUI. UX is more developer-oriented. Configuration is more YAML-first. But the license is boring, the community is active, and it doesn't have the "we might change the rules" tail risk.
Pick LibreChat if: MIT license matters for procurement, or you're a dev-heavy team that prefers configuring things in YAML files. Also pick it if you want first-class multi-provider support without any editorial preference for one vendor.
Skip LibreChat if: non-technical users will maintain it. The setup and admin surface expect you to be comfortable in a terminal.
LobeChat — the design-forward one
LobeChat (79k stars, pushed within hours, MIT for core with commercial add-ons) is the "we made it pretty" answer. Its interface is genuinely nicer than the others'. Chat organisation, prompt libraries ("agents"), plugin marketplace, voice interface, and vision are all first-class. Deploy target: Vercel by default, Docker for self-host.
The trade-off: LobeChat is opinionated about how you should use it. Multi-user management is thinner than Open WebUI. It optimises for one power user with taste, not a team with a shared admin.
Pick LobeChat if: you're deploying for yourself or a small team of design-conscious users. The UX will make you slightly happier every day than the alternatives.
Skip LobeChat if: you need serious multi-user management, per-user rate limits, and auditable per-user chat logs. That's Open WebUI's territory.
Decision framework: pick by who you are, not by feature count
Solo user with one machine and a GPU
Install Ollama + Open WebUI. It's the default setup for a reason. You'll be running Llama 3.3 or Qwen 3 through a ChatGPT-shaped interface in under an hour.
Small team, mixed technical skill, needs shared access
Ollama on a GPU box + Open WebUI in front. Set up auth, invite the team, done. Budget 4 GB VRAM minimum for a small model, 24 GB comfortably for a 30B-class model at reasonable quantization.
Compliance won't accept anything but MIT/Apache
Ollama (MIT) + LibreChat (MIT). Same shape, boring licenses, no branding restrictions.
Developer team wanting to plug into multiple providers
LibreChat. First-class OpenAI + Anthropic + Google + Ollama + LM Studio in one interface. Point it at all of them and let users pick per-conversation.
Design-forward personal setup
Ollama + LobeChat. It'll be prettier than anything else and you're the only one who has to maintain it.
Deploy difficulty and hardware
Software deploy is the easy part. Hardware is where "self-hosted ChatGPT" becomes real:
- Ollama: 15-30 min install on Linux, macOS, or WSL. GPU support is auto-detected.
- Open WebUI: single docker run, or docker-compose with Ollama in the same stack. Under 30 min.
- LibreChat: 1-2 hours. More services (Mongo, Meilisearch for search). Docker-compose in the repo.
- LobeChat: 15 min on Vercel, 30 min via Docker for self-host.
Hardware you actually need:
- 7B-8B models (Llama 3.3 8B, Qwen 3 8B): 6-8 GB VRAM. Consumer GPU (RTX 3060 12 GB, 4060 Ti 16 GB) is enough. Runs on CPU-only too but slowly.
- 14B-32B models (Qwen 3 32B, DeepSeek Coder 33B): 16-24 GB VRAM at 4-bit quantization. RTX 4090 or dual RTX 3090.
- 70B+ models (Llama 3.3 70B): Serious homelab. 48 GB VRAM (two RTX 3090s) at 4-bit, or dedicated inference boxes.
- The realistic middle: most people are happy on an 8B or 14B model with a single mid-range GPU. Don't buy hardware for a use case you don't have yet.
License and commercial-use notes
The self-hosted-AI world is a licensing minefield. Read this before deploying in a business:
- Ollama (MIT): Fully permissive. Use anywhere.
- LibreChat (MIT): Fully permissive. Same.
- Open WebUI (modified license, NOASSERTION on GitHub): Free to self-host commercially. Branding restriction applies if you plan to remove/replace the Open WebUI brand — that requires a paid enterprise license.
- LobeChat (MIT for core, commercial add-ons): Core is MIT. Some cloud-tier features are paid-only.
- The models themselves have their own licenses. Llama 3.3 (Meta's llama community license — mostly permissive with a >700M-users clause). Qwen 3 (Apache-2.0). DeepSeek (mostly permissive with model-card-level restrictions). Mistral (Apache-2.0 for open models). Read each model's card, not the runtime's license.
Cost math (real numbers)
Comparing 12 months of ChatGPT Team at 20 users vs a self-hosted stack:
- ChatGPT Team, 20 users: $7,200/year
- ChatGPT Enterprise, 20 users: phone call, budget $15-25/year per user times something
- Self-hosted, one RTX 4090 box (~$2,000 amortised over 3 years): ~$700/year hardware amortisation + ~$200/year power (moderate use) + your time
- Self-hosted on GPU-enabled infrastructure (GPU-enabled instances from ~$500/mo): ~$6,000/year — cheaper than Enterprise, roughly on par with Team, plus data ownership
- Hybrid: Ollama for internal Q&A, ChatGPT Plus for individuals doing frontier-model work: often the best cost profile in 2026
Rough rule: self-hosted wins on cost at 15+ users or when data-sovereignty is a hard requirement. Below that, the hardware and your time cost more than the SaaS.
Migration tips (things people forget)
- Start with an existing ChatGPT workload you can benchmark against. Don't migrate the whole team on day one — pick one use case (customer support drafts, internal Q&A, code review) and prove the local model is good enough before rolling out.
- Open-weight models are noticeably weaker than frontier models on hard reasoning tasks. They're competitive-to-better on drafting, summarisation, translation, and code completion. Set expectations accordingly.
- Chat history from ChatGPT does export (Settings → Data Controls → Export Data). Rebuilding it in Open WebUI or LibreChat is manual — there's no clean import.
- Custom GPTs don't port. Rewrite them as system prompts + tool integrations in the target platform.
- Set up RAG (retrieval-augmented generation) over your internal docs from day one if that was half of what you used ChatGPT for. All four projects on this page support it.
- Log every prompt for the first month. You'll discover your team's usage doesn't match your prediction. Adjust the model choice accordingly.
What you shouldn't do
Don't self-host if your entire use case is "GPT-5 for coding." Frontier models still lead on hard code generation. Pay OpenAI or Anthropic for that. Self-host the other 80% of workloads that don't need the frontier.
Don't buy a GPU before you've proven the workload. Rent one on Runpod, Vast.ai, or Lambda Labs for a month. Confirm your team actually uses it. Then buy.
Don't skip the eval step. Every open-weight model has strengths and weaknesses. What's great for Q&A may be terrible at math. Run your real prompts against 2-3 models before standardising.
Final recommendation matrix
- "I want ChatGPT at home for personal use" → Ollama + Open WebUI
- "Small team, shared access, non-technical users" → Ollama + Open WebUI
- "Team needs MIT-licensed everything" → Ollama + LibreChat
- "I want the prettiest interface" → Ollama + LobeChat
- "I need first-class multi-provider (OpenAI + Anthropic + local)" → LibreChat
- "Enterprise, thousands of users, need proper inference infra" → vLLM or TGI (not on this list — different tier)
See also
Teams that leave one SaaS usually leave a few. Related guides:
- Google Analytics open source alternatives — for privacy-friendly analytics on the same server.
- Zapier open source alternatives — to trigger LLM workflows from external events.
- Notion open source alternatives — for a knowledge base to feed into RAG over local models.
Frequently asked questions
Which open-source ChatGPT alternative is closest to ChatGPT in 2026?
Open WebUI is the closest in interface and feature breadth. LibreChat is close in shape with a friendlier license. Neither reproduces GPT-5's frontier reasoning — that's a model limitation, not a UI one.
Can I run these without a GPU?
Yes for small models (7-8B parameters) on modern CPUs — expect 5-15 tokens/sec, which is usable for personal use but sluggish for a team. A modest GPU (RTX 3060 12 GB, ~$300 used) transforms the experience.
How do the open-weight models compare to GPT-5 and Claude?
Frontier proprietary models still lead on hard reasoning, complex code, and nuanced instruction-following. The best open-weight models (Llama 3.3 70B, Qwen 3 72B, DeepSeek R1) are competitive on drafting, summarisation, translation, and standard code tasks. Assume a 6-12 month lag vs frontier on the hardest evals.
Is this really cheaper than ChatGPT Team?
Depends on team size and hardware amortisation. A 20-user team on ChatGPT Team is $7,200/year. A GPU box amortised over 3 years is ~$700-1,500/year plus power. Self-hosted wins the raw cost math above 15-20 users; below that, your time to maintain it exceeds the savings.
Can I plug these into ChatGPT and open-weight models at the same time?
Yes. LibreChat is best at this — it supports OpenAI, Anthropic, Google, and any OpenAI-compatible local endpoint (Ollama, LM Studio) in one interface with per-conversation model switching. Open WebUI supports it via configuration but is more Ollama-first by design.
How often is the comparison data on this page updated?
GitHub metrics refresh daily. Editorial content revisits at least quarterly, sooner if a project changes materially (relicensing, major release, ownership change). The header shows the last revisited date.
Ready to deploy?
The self-host options above all run cleanly on modern VPS providers. Our recommended stack:
Some links are affiliate. DigitalOcean, Vultr and Cloudways are hosts we run production workloads on; Hostinger we list on spec, not experience. Independent from OSS rankings above. Prices checked 25 Jul 2026 (Cloudways: DigitalOcean Basic, Standard CPU).