# Open-source alternatives to ChatGPT

> ChatGPT: OpenAI's conversational AI assistant. The best self-hosted alternatives are Open-WebUI, LibreChat and LobeHub. All of them can run on your own server, so your data stays under your control. 5 of the 8 apps here are open source; 3 are source-available.

## Key facts

| Fact | Value |
|---|---|
| Commercial product | ChatGPT |
| Category | AI & LLM Tools |
| Alternatives listed | 8 |
| Top pick | Open-WebUI (154,037 stars, Open WebUI License) |
| Canonical URL | https://appsgit.com/alternatives/chatgpt |

## Alternatives, in recommended order

- [Open-WebUI](https://appsgit.com/apps/open-webui): User-friendly AI Interface, supports Ollama, OpenAI API. (154,037 stars, Open WebUI License, source-available, Python, Docker)
- [LibreChat](https://appsgit.com/apps/librechat): Enhanced ChatGPT-compatible AI chat interface supporting multiple AI providers, with multi-user auth, message search, and plugin support. (45,318 stars, MIT, TypeScript, Docker)
- [LobeHub](https://appsgit.com/apps/lobehub): Modern design AI chat framework supporting multiple AI providers, one click install MCP Marketplace and Artifacts / Thinking. (83,008 stars, LobeHub Community License, source-available, TypeScript, Docker)
- [AnythingLLM](https://appsgit.com/apps/anythingllm): All-in-one desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more. (66,738 stars, MIT, JavaScript, Docker)
- [Ollama](https://appsgit.com/apps/ollama): Get up and running with Llama 3.3, DeepSeek-R1, Phi-4, Gemma 3, and other large language models. (182,289 stars, MIT, Go, Docker)
- [LocalAI](https://appsgit.com/apps/localai): Run your AI models locally and generate images and audio (alternative to OpenAI and Claude). (49,405 stars, MIT, Go, Docker)
- [Khoj](https://appsgit.com/apps/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. (37,565 stars, AGPL-3.0, Python, Docker)
- [Dify.ai](https://appsgit.com/apps/dify-ai): Build, test and deploy LLM applications. (157,921 stars, Dify Open Source License, source-available, TypeScript, Docker)

## Comparisons

- [Ollama vs LocalAI](https://appsgit.com/compare/ollama-vs-localai)
- [Open WebUI vs LibreChat](https://appsgit.com/compare/open-webui-vs-librechat)

More in this category: [AI & LLM Tools](https://appsgit.com/categories/ai-tools)

---

Canonical page: https://appsgit.com/alternatives/chatgpt
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
