Skip to content
appsgit

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

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.

ChatGPT alternatives compared, data as of 2026-11-16
AppStands out forLicenseGitHub starsCommits (12 mo)Last commitDocker image
Ollamathe most GitHub starsMIT187,1731,204Nov 16, 2026Yes
AnythingLLMa permissive MIT licenseMIT68,3331,115Nov 13, 2026Yes
LocalAIthe most commits in the last 12 months (5,080)MIT50,3905,080Nov 16, 2026Yes
LibreChatAI features named in its own descriptionMIT47,1763,581Nov 16, 2026Yes
Khojits Python codebaseAGPL-3.038,145104Aug 2, 2026Yes
Dify.ai–source-available, Dify Open Source License (modified Apache 2.0)161,2567,414Nov 16, 2026Yes
Open-WebUI–source-available, Open WebUI License (BSD-3-Clause plus branding clause)158,7986,475Nov 16, 2026Yes
LobeHub–source-available, LobeHub Community License85,6109,189Nov 16, 2026Yes

Full list

All 8 ChatGPT alternatives

Open any app for live stats, license details and a deploy option.

  1. 1

    Ollama

    Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models.

    AI-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. 2

    AnythingLLM

    All-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

    AI-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. 3

    LocalAI

    Run your AI models locally and generate images and audio (alternative to OpenAI and Claude).

    AI-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. 4

    LibreChat

    Enhanced ChatGPT-compatible AI chat interface supporting multiple AI providers, with multi-user auth, message search, and plugin support.

    AI-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. 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-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. 6

    Dify.ai

    Build, test and deploy LLM applications.

    AI-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. 7

    Open-WebUI

    User-friendly AI Interface, supports Ollama, OpenAI API.

    AI-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. 8

    LobeHub

    Modern design AI chat framework supporting multiple AI providers, one click install MCP Marketplace and Artifacts / Thinking.

    AI-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.

FAQ

ChatGPT alternatives: FAQ

Still curious? Email info@appsgit.com.

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.