Looking to replace ChatGPT with something free and open-source? These 5 tools are the best open alternatives in 2026 — most are self-hostable, so you keep full control of your data and pay no subscription.





Click a column to sort — the best one depends on what matters to you.
| Alternative | Stars | Language | License | Last commit | In one line |
|---|---|---|---|---|---|
| Ollama | ★ 184.7k | Go | MIT | 6 days ago | Runs open language models locally with a single command, on Windows, macOS and Linux. |
| Open WebUI | ★ 156.7k | Python | Custom (branding clause) | 6 days ago | Self-hosted chat interface for Ollama and any OpenAI-compatible API, with accounts, history and document search. |
| llama.cpp | ★ 132.3k | C++ | MIT | 6 days ago | Runs language models on ordinary CPUs and consumer GPUs; the engine behind most local AI apps. |
| Jan | ★ 45.1k | Rust | Apache-2.0 | 6 days ago | Desktop app that runs open models offline, and can also connect to remote providers when you want. |
| LibreChat | ★ 46.3k | TypeScript | MIT | 6 days ago | Self-hosted chat interface that talks to several model providers at once, with agents, presets and file uploads. |
Runs open language models locally with a single command, on Windows, macOS and Linux. Its MIT license is permissive — free to use commercially, embed and modify. Because it is self-hostable, your data can stay entirely on your own infrastructure.
Self-hosted chat interface for Ollama and any OpenAI-compatible API, with accounts, history and document search. Its Custom (branding clause) license is source-available rather than open-source: the code is public, but commercial use is restricted. Read the license before you build on it. Because it is self-hostable, your data can stay entirely on your own infrastructure.
Runs language models on ordinary CPUs and consumer GPUs; the engine behind most local AI apps. Its MIT license is permissive — free to use commercially, embed and modify. Because it is self-hostable, your data can stay entirely on your own infrastructure.
Desktop app that runs open models offline, and can also connect to remote providers when you want. Its Apache-2.0 license is permissive — free to use commercially, embed and modify. Because it is self-hostable, your data can stay entirely on your own infrastructure.
Self-hosted chat interface that talks to several model providers at once, with agents, presets and file uploads. Its MIT license is permissive — free to use commercially, embed and modify. Because it is self-hostable, your data can stay entirely on your own infrastructure.
The top open-source alternative is Ollama — Runs open language models locally with a single command, on Windows, macOS and Linux. The full ranked list is above.
Yes. Every tool listed is open-source and free to use; most can be self-hosted so you keep full control of your data.
Most of these tools are designed to run on your own server or machine, giving you privacy and no subscription fees.
Browse open-source replacements for dozens of popular tools — design, productivity, dev, analytics and more.
See all alternatives →