Free, open-source alternatives to Glean

AI search across a company's apps. 3 apps you can run yourself instead of Glean, sorted by how well they replace it. Each one is open source, so your data stays with you.

  1. Onyx Community EditionBest match

    Chat UI that works with any LLM. It comes loaded with advanced features like agents, web search, RAG, MCP, deep research, Connectors to 40+ knowledge sources, and more.

    32.4k starsMITUpdated 13 October 2026
  2. 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
  3. Khoj

    Your AI second brain. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI.

    37.7k starsAGPL-3.0Updated 2 August 2026

Side by side

AppStarsLicenseActivityRuns on
Onyx Community Edition32,427MITDocker, Kubernetes
AnythingLLM66,995MITNode.js, Docker
Khoj37,664AGPL-3.0Python, Docker

Why replace Glean?

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

Questions

What is the best free alternative to Glean?

Onyx Community Edition is the closest open-source replacement for Glean in our list. AnythingLLM and Khoj are worth a look too, depending on what you need.

Can I self-host an alternative to Glean?

Yes. All 3 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.