Free, open-source alternatives to ChatGPT

OpenAI's AI chat assistant. 5 apps you can run yourself instead of ChatGPT, sorted by how well they replace it. Each one is open source, so your data stays with you.

  1. Open-WebUIBest match

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

    155k starsBSD-3-ClauseUpdated 10 October 2026
  2. LibreChat

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

    45.6k starsMITUpdated 6 October 2026
  3. AnythingLLM

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

    67k starsMITUpdated 12 October 2026
  4. LobeHub

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

    83.2k stars⊘ ProprietaryUpdated 13 October 2026
  5. Ollama

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

    183k starsMITUpdated 13 October 2026

Side by side

AppStarsLicenseActivityRuns on
Open-WebUI155,162BSD-3-ClauseDocker, Python
LibreChat45,599MITNode.js, Docker
AnythingLLM66,995MITNode.js, Docker
LobeHub83,185⊘ ProprietaryNode.js, Docker
Ollama182,934MITDocker, Python

Why replace ChatGPT?

ChatGPT works, but your data lives in someone else's account, the price can change at any time, and features can disappear. An open-source app you run yourself is yours: you choose where it runs, who can see the data, and when to update.

Guides

Questions

What is the best free alternative to ChatGPT?

Open-WebUI is the closest open-source replacement for ChatGPT in our list. LibreChat and AnythingLLM are worth a look too, depending on what you need.

Can I self-host an alternative to ChatGPT?

Yes. All 5 apps on this page are open source and can run on your own server, usually with Docker, or on a managed host that installs them for you.