Skip to content

Open-source ChatGPT alternatives

A hosted AI chat assistant from OpenAI. Use the approved catalog below to weigh license, hosting, and repository activity for chatting with AI models and your documents.

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 set

Available ChatGPT alternatives

AnythingLLM provides workspaces for chatting with documents and running AI agents.

Stars
68,444
Updated
License
MIT
Hosting
Self-hosted
Category
AI

Often instead of Chatgpt

Website

LibreChat is a self-hosted AI chat interface with model selection, agents, and custom endpoints.

Stars
47,354
Updated
License
MIT
Hosting
Self-hosted
Category
AI

Often instead of Chatgpt

Website

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

Stars
38,178
Updated
License
AGPL-3.0
Hosting
Self-hosted
Category
AI

Often instead of Chatgpt

Website

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

ChatGPT replacements: recorded capabilities and tradeoffs
AttributeAnythingLLMLibreChatkhoj
PurposeAnythingLLM 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 capabilitiesDocument chat, AI agents, Multi-user workspacesModel selection, Custom endpoints, AI agentsAccess 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 workflowAnythingLLM 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 choosingCheck 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 optionsSee repository installation guideDockerSee repository installation guide
GitHub stars68,44447,35438,178
LicenseMITMITAGPL-3.0
Self-hostedYesYesYes
Docker notedNot recordedYesNot recorded
Cloud / hostedNot recordedNot recordedNot recorded
Primary languageJavaScriptTypeScriptPython
Last commit2026-11-192026-11-202026-08-02
DifficultyNot assessedNot assessedNot assessed
Content sourceEditorial catalog entryEditorial catalog entryEditorial catalog entry
Metadata checked2026-11-202026-11-202026-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 source

    MIT · 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 source

    MIT · 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 source

    AGPL-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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.