8 self-hosted options
Self-hosted alternatives to ChatGPT
The best open-source alternative to ChatGPT is Ollama (MIT, 184,802 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 (3,910).
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 Oct 26, 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 Oct 25, 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 Oct 26, 2026
AI & LLM ToolsGoDockerStands out for the most commits in the last 12 months (3,910).
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 | 184,802 | 1,259 | Oct 26, 2026 | Yes |
| AnythingLLM | a permissive MIT license | MIT | 67,570 | 986 | Oct 25, 2026 | Yes |
| LocalAI | the most commits in the last 12 months (3,910) | MIT | 49,964 | 3,910 | Oct 26, 2026 | Yes |
| LibreChat | AI features named in its own description | MIT | 46,330 | 3,206 | Oct 26, 2026 | Yes |
| Khoj | its Python codebase | AGPL-3.0 | 37,831 | 120 | Aug 2, 2026 | Yes |
| Dify.ai | – | source-available, Dify Open Source License (modified Apache 2.0) | 159,572 | 6,809 | Oct 26, 2026 | Yes |
| Open-WebUI | – | source-available, Open WebUI License (BSD-3-Clause plus branding clause) | 156,775 | 6,068 | Oct 26, 2026 | Yes |
| LobeHub | – | source-available, LobeHub Community License | 83,495 | 8,542 | Oct 26, 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 184,802 GitHub stars, uses the MIT license, ships a Docker image and had 1,259 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 67,570 GitHub stars, uses the MIT license, ships a Docker image and had 986 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 (3,910). LocalAI has 49,964 GitHub stars, uses the MIT license, ships a Docker image and had 3,910 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 46,330 GitHub stars, uses the MIT license, ships a Docker image and had 3,206 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 37,831 GitHub stars, uses the AGPL-3.0 license, ships a Docker image and had 120 commits in the last year.
- 6
Dify.ai
Build, test and deploy LLM applications.
Source-availableLow-code & BackendDockerAI-nativeDify.ai has 159,572 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 6,809 commits in the last year.
- 7
Open-WebUI
User-friendly AI Interface, supports Ollama, OpenAI API.
Source-availableAI & LLM ToolsDockerAI-nativeOpen-WebUI has 156,775 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,068 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 83,495 GitHub stars, is source-available under the LobeHub Community License (not an open-source license), ships a Docker image and had 8,542 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 8,542 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.