AnythingLLM provides workspaces for chatting with documents and running AI agents.
Open-source ChatGPT alternatives
For a deeper comparison, read our guide: How to Pick the Right Open-Source LLM for Your Project.
AnythingLLM has the most GitHub stars in this list (68k, MIT). AnythingLLM, LibreChat, and khoj can be self-hosted. None records a hosted option.
Compare the setAvailable ChatGPT alternatives
LibreChat is a self-hosted AI chat interface with model selection, agents, and custom endpoints.
Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your pers
Choosing a ChatGPT replacement
The catalog lists 3 reviewed open-source alternatives to ChatGPT for chatting with AI models and your documents: AnythingLLM (MIT, self-hosted), LibreChat (MIT, self-hosted), and khoj (AGPL-3.0, self-hosted). GitHub metadata last checked November 20, 2026.
What must a ChatGPT replacement cover?
Start with your workflow for chatting with AI models and your documents. The alternatives below can cover different parts of it; a listing here does not establish complete feature parity with ChatGPT.
- Model choice
- Document search
- Where chats are stored
Compare ChatGPT replacements by capabilities and operating needs
| Attribute | AnythingLLM | LibreChat | khoj |
|---|---|---|---|
| Purpose | AnythingLLM provides workspaces for chatting with documents and running AI agents. | LibreChat is a self-hosted AI chat interface with model selection, agents, and custom endpoints. | Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your pers |
| Documented capabilities | Document chat, AI agents, Multi-user workspaces | Model selection, Custom endpoints, AI agents | Access it from your Browser, Obsidian, Emacs, Desktop, Phone or Whatsapp, Create agents with custom knowledge, persona, chat model and tools to take on any role, Find relevant docs quickly and easily using our advanced semantic search, Generate images, talk out loud, play your messages, Khoj is open-source, self-hostable. Always, Run it privately on your computer or try it on our cloud app |
| Best-fit workflow | AnythingLLM provides workspaces for chatting with documents and running AI agents. | LibreChat is a self-hosted AI chat interface with model selection, agents, and custom endpoints. | Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your pers |
| Check before choosing | Check the project's current installation requirements and license terms before adoption. | Check the project's current installation requirements and license terms before adoption. | Check the project's current installation requirements and license terms before adoption. |
| Deployment options | See repository installation guide | Docker | See repository installation guide |
| GitHub stars | 68,444 | 47,354 | 38,178 |
| License | MIT | MIT | AGPL-3.0 |
| Self-hosted | Yes | Yes | Yes |
| Docker noted | Not recorded | Yes | Not recorded |
| Cloud / hosted | Not recorded | Not recorded | Not recorded |
| Primary language | JavaScript | TypeScript | Python |
| Last commit | 2026-11-19 | 2026-11-20 | 2026-08-02 |
| Difficulty | Not assessed | Not assessed | Not assessed |
| Content source | Editorial catalog entry | Editorial catalog entry | Editorial catalog entry |
| Metadata checked | 2026-11-20 | 2026-11-20 | 2026-11-20 |
The table shows up to six catalog entries. Missing information means not recorded, not unsupported. Capability lists are not hands-on benchmarks or guarantees of ChatGPT compatibility.
Where each ChatGPT alternative fits
- AnythingLLM
Workspaces for chatting with documents and running agents.
Check first: Check the project's current installation requirements and license terms before adoption.
AnythingLLM documentation and sourceMIT · Self-hosted · Ai
- LibreChat
A self-hosted chat interface with model selection and agents.
Check first: Check the project's current installation requirements and license terms before adoption.
LibreChat documentation and sourceMIT · Self-hosted · Ai
- khoj
A self-hostable assistant that answers from the web or your documents.
Check first: Check the project's current installation requirements and license terms before adoption.
khoj documentation and sourceAGPL-3.0 · Self-hosted · Ai
Before switching from ChatGPT
Use this proposed pilot to test chatting with AI models and your documents. It is an evaluation plan, not a completed product test.
- Write down the ChatGPT features your current workflow depends on. Use model choice, document search, where chats are stored as the initial review criteria; mark each requirement essential or optional.
- Shortlist AnythingLLM, LibreChat, khoj by the fit notes above. Reproduce one representative workflow with sample data, and record which requirements work in the exact version and edition you would deploy.
- Check your ChatGPT export against the replacement’s documented import format. Verify records, attachments and access controls that your workflow uses before moving live data; keep the original available until you can recover the pilot.
- If you self-host AnythingLLM, LibreChat, khoj, assign an owner for updates, backups and restore testing. Compare that operating work with the hosted options and license conditions before deciding.
Related categories
Compare alternatives
ChatGPT alternatives: questions
- What is the most popular open-source alternative to ChatGPT?
- AnythingLLM has the most GitHub stars in this list, with 68k (MIT). Other reviewed options include LibreChat and khoj.
- Is there a self-hosted alternative to ChatGPT?
- Yes. AnythingLLM, LibreChat, and khoj can run on your own server. Check each license before commercial use.
- Which ChatGPT alternatives have a hosted version?
- None of the listed alternatives records a hosted option. Check the official websites before deciding how to deploy.
- What should you check before switching from ChatGPT?
- Compare model choice, document search, where chats are stored. Confirm the license, who will operate the install, and how you will export your data from ChatGPT.
Repository activity is a signal, not a security or quality guarantee.