8 self-hosted options
Self-hosted alternatives to ChatGPT
The best open-source alternative to ChatGPT is Ollama (MIT, 187,173 GitHub stars, Docker image). AnythingLLM stands out for a permissive MIT license, and LocalAI stands out for the most commits in the last 12 months (5,080).
Dify.ai, Open-WebUI and LobeHub are also listed but are source-available, so they come after the open-source picks.
About ChatGPT: OpenAI's conversational AI assistant.
Updated · data from GitHub, refreshed daily
Top picks
- Rank 1:
Ollama
ollama/ollama
Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models.
Active · last commit Nov 16, 2026
AI & LLM ToolsGoDockerStands out for the most GitHub stars.
- Rank 2:
AnythingLLM
Mintplex-Labs/anything-llm
All-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Active · last commit Nov 13, 2026
AI & LLM ToolsJavaScriptDockerStands out for a permissive MIT license.
- Rank 3:
LocalAI
mudler/LocalAI
Run your AI models locally and generate images and audio (alternative to OpenAI and Claude).
Active · last commit Nov 16, 2026
AI & LLM ToolsGoDockerStands out for the most commits in the last 12 months (5,080).
At a glance
ChatGPT alternatives compared
Open-source apps come first, then source-available ones and apps whose license appsgit could not verify; within each group, projects with at least 12 commits in the last 12 months come before less active or archived ones, then by GitHub stars.
| App | Stands out for | License | GitHub stars | Commits (12 mo) | Last commit | Docker image |
|---|---|---|---|---|---|---|
| Ollama | the most GitHub stars | MIT | 187,173 | 1,204 | Nov 16, 2026 | Yes |
| AnythingLLM | a permissive MIT license | MIT | 68,333 | 1,115 | Nov 13, 2026 | Yes |
| LocalAI | the most commits in the last 12 months (5,080) | MIT | 50,390 | 5,080 | Nov 16, 2026 | Yes |
| LibreChat | AI features named in its own description | MIT | 47,176 | 3,581 | Nov 16, 2026 | Yes |
| Khoj | its Python codebase | AGPL-3.0 | 38,145 | 104 | Aug 2, 2026 | Yes |
| Dify.ai | – | source-available, Dify Open Source License (modified Apache 2.0) | 161,256 | 7,414 | Nov 16, 2026 | Yes |
| Open-WebUI | – | source-available, Open WebUI License (BSD-3-Clause plus branding clause) | 158,798 | 6,475 | Nov 16, 2026 | Yes |
| LobeHub | – | source-available, LobeHub Community License | 85,610 | 9,189 | Nov 16, 2026 | Yes |
Full list
All 8 ChatGPT alternatives
Open any app for live stats, license details and a deploy option.
- 1
Ollama
Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models.
AI & LLM ToolsDockerAI-nativeStands out for the most GitHub stars. Ollama has 187,173 GitHub stars, uses the MIT license, ships a Docker image and had 1,204 commits in the last year.
- 2
AnythingLLM
All-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
AI & LLM ToolsDockerAI-nativeStands out for a permissive MIT license. AnythingLLM has 68,333 GitHub stars, uses the MIT license, ships a Docker image and had 1,115 commits in the last year.
- 3
LocalAI
Run your AI models locally and generate images and audio (alternative to OpenAI and Claude).
AI & LLM ToolsDockerAI-nativeStands out for the most commits in the last 12 months (5,080). LocalAI has 50,390 GitHub stars, uses the MIT license, ships a Docker image and had 5,080 commits in the last year.
- 4
LibreChat
Enhanced ChatGPT-compatible AI chat interface supporting multiple AI providers, with multi-user auth, message search, and plugin support.
AI & LLM ToolsDockerAI-nativeStands out for AI features named in its own description. LibreChat has 47,176 GitHub stars, uses the MIT license, ships a Docker image and had 3,581 commits in the last year.
- 5
Khoj
Your AI second brain. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI.
AI & LLM ToolsDockerAI-nativeStands out for its Python codebase. Khoj has 38,145 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 104 commits in the last year.
- 6
Dify.ai
Build, test and deploy LLM applications.
Source-availableLow-code & BackendDockerAI-nativeDify.ai has 161,256 GitHub stars, is source-available under the Dify Open Source License (modified Apache 2.0) (not an open-source license), ships a Docker image and had 7,414 commits in the last year.
- 7
Open-WebUI
User-friendly AI Interface, supports Ollama, OpenAI API.
Source-availableAI & LLM ToolsDockerAI-nativeOpen-WebUI has 158,798 GitHub stars, is source-available under the Open WebUI License (BSD-3-Clause plus branding clause) (not an open-source license), ships a Docker image and had 6,475 commits in the last year.
- 8
LobeHub
Modern design AI chat framework supporting multiple AI providers, one click install MCP Marketplace and Artifacts / Thinking.
Source-availableAI & LLM ToolsDockerAI-nativeLobeHub has 85,610 GitHub stars, is source-available under the LobeHub Community License (not an open-source license), ships a Docker image and had 9,189 commits in the last year.
Is there a free alternative to ChatGPT?
Yes. 5 of the 8 apps on this page are open source; 3 are source-available. The open-source ones are free to self-host without per-user fees; source-available licenses add conditions such as user caps or limits on hosted use, so read them before you commit.
Can I self-host an alternative to ChatGPT with Docker?
Yes. All 8 apps here publish a Docker image, including Ollama, AnythingLLM and LocalAI, so you can run them on a home server or VPS with Docker Compose.
Which ChatGPT alternative is the most actively developed?
LobeHub (source-available) (source-available, LobeHub Community License), with 9,189 commits in the last 12 months. Activity is a good sign that bugs and security issues get fixed.
How is this list ranked?
Open-source apps come first, then source-available ones and apps whose license appsgit could not verify; within each group, projects with at least 12 commits in the last 12 months come before less active or archived ones, then by GitHub stars.