ChatGPT alternatives compared
| Project | Licence | Type | Self-host | Cloud option | GitHub stars |
|---|---|---|---|---|---|
| Ollama | MIT | Desktop app | — | ✓ Yes | ★ 189k |
| llama.cpp | MIT | Developer tool | — | — | ★ 137k |
| AnythingLLM | MIT | Desktop app | — | ✓ Yes | ★ 68.9k |
| Cherry Studio | AGPL-3.0 | Desktop app | — | — | ★ 54.1k |
| LocalAI | MIT | Self-hosted | ✓ Yes | — | ★ 50.7k |
| LibreChat | MIT | Self-hosted | ✓ Yes | — | ★ 47.9k |
| Jan | Apache-2.0 | Desktop app | — | — | ★ 46.4k |
The 7 open source alternatives to ChatGPT
Ollama makes it simple to download and run open-weight language models such as Llama, Mistral, Gemma, Qwen and DeepSeek locally. It provides a desktop app, command line and an OpenAI-compatible API that many other tools use.
- One-command model downloads
- OpenAI-compatible local API
- Runs on macOS, Windows and Linux
- Used by Open WebUI, Continue and many others
llama.cpp runs large language models efficiently on CPUs, Apple Silicon and GPUs. It defines the GGUF model format and powers many local AI apps, and it includes its own web UI and OpenAI-compatible server.
- GGUF quantised models
- CPU, Metal, CUDA, Vulkan
- Built-in server and web UI
- Basis for many local AI apps
AnythingLLM is a desktop and self-hosted app for building a private ChatGPT over your documents, with built-in RAG, agents and support for local and cloud models.
- Chat with PDFs, docs and websites
- Built-in vector database
- AI agents and tools
- Desktop app or Docker server
Cherry Studio is a desktop chat client that connects to OpenAI, Anthropic, Gemini, DeepSeek, local Ollama models and dozens of other providers. It adds assistants, a knowledge base for your files and MCP tools.
- 50+ model providers
- Local knowledge base
- MCP tool support
- Windows, macOS and Linux
LocalAI exposes an OpenAI-compatible API for text, image, audio and embedding models running on your own hardware, with or without a GPU. Apps written for the OpenAI API can switch by changing the base URL.
- OpenAI-compatible API
- LLMs, images, speech and embeddings
- Runs on CPU or GPU
- Model gallery
LibreChat is a ChatGPT-like web interface you can host for your team. It connects to OpenAI, Anthropic, Google, Mistral, local models via Ollama and more, with agents, file uploads and multi-user support.
- Works with many model providers
- Agents, tools and MCP support
- Multi-user with authentication
- Docker deployment
Jan is a desktop app for chatting with AI models that run 100% offline on your computer. It can also connect to cloud APIs, and exposes a local OpenAI-compatible server.
- Runs models fully offline
- Model hub with one-click downloads
- Local OpenAI-compatible API
- Windows, macOS and Linux
How to choose an open source alternative to ChatGPT
Decide whether you want to run models locally (privacy, works offline, needs a decent computer) or a self-hosted chat interface for any model provider.
If you want your data on your own server, look at LocalAI and LibreChat. If you'd rather just install an app, Ollama, AnythingLLM and Cherry Studiorun directly on your device. Don't want to run a server? Ollama and AnythingLLMoffer an official hosted version.
Not sure where to start? Browse all ai & llm tools projects.
ChatGPT alternatives: FAQ
What is the best open source alternative to ChatGPT?
Ollama is the most complete open source alternative to ChatGPT on our list, followed by llama.cpp and AnythingLLM. The best choice depends on what you need: Decide whether you want to run models locally (privacy, works offline, needs a decent computer) or a self-hosted chat interface for any model provider.
Is there a free alternative to ChatGPT?
Yes. Every alternative listed here is open source, so the software itself is free to use. Some, such as Ollama and AnythingLLM, also sell an optional hosted version if you don't want to run it yourself.
Can I self-host an alternative to ChatGPT?
Yes: LocalAI and LibreChat can all be installed on your own server, so your data stays on infrastructure you control.
Is there an open source ChatGPT alternative I can install as an app?
Ollama (desktop app), AnythingLLM (desktop app), Cherry Studio (desktop app) and Jan (desktop app) run directly on your device, with no server needed.
Why switch from ChatGPT to open source software?
ChatGPT is proprietary software owned by OpenAI: you can't see the code, and pricing, features and terms can change at any time. Open source alternatives publish their code under licences such as MIT, AGPL-3.0 and Apache-2.0, can be audited by anyone, and can't lock you in, because the software can always be forked or self-hosted.