AI and models · Independent · 22 Oct 2026

khoj-ai/khoj

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 personal, autonomous AI (gpt, claude, gemini, llama, qwen, mistral). Get started - free.

← AI and models
Khoj: personal AI second brain. Searches your local files and chats with language models.

In simple English

This tool acts as a personal research assistant that connects to your own files and notes. You can ask questions and get answers drawn straight from your private documents. It lets you chat with different artificial intelligence models, both online and offline. You can run it on your own server for total privacy or use the hosted web version. It is free and open-source, though running it locally needs a powerful computer.

What it is

Khoj is a self-hosted artificial intelligence platform that indexes your notes, PDFs, and documents to answer questions through semantic search (a way for a program to understand the meaning of your words rather than just matching exact keywords). It connects to popular text models, web search, and chat apps like WhatsApp.

What it is good for

Solo builders and researchers who want an intelligent search engine over their personal knowledge base without sending private notes to third-party servers.

Stars38k
LicenceAGPL-3.0
Latest2.0.0-beta.28 (2026-03-26)checked 22 Oct 2026
Last code change2026-08-02
Written inPython
Setup effort
3 / 5
Payoff
5 / 5
Good
  • Searches across your local files, notes, and the internet at the same time.
  • Connects to many different language models, including local options that keep your data private.
  • Accessible through a web browser, desktop apps, and chat tools like WhatsApp.
Watch for
  • Requires Docker (a way to run a program inside its own sealed box, so it cannot break anything else on your server) or a Python setup to run yourself.
  • Running local language models requires a computer with a powerful graphics card and plenty of memory.
  • Uses the AGPL-3.0 licence, which has strict rules if you modify and host it as a commercial web service.
Replaces

Manual file searching and commercial hosted chat assistants that require uploading private notes to the cloud.

Works well with

Obsidian for note-taking and Docker for running services locally.

Similar repositories
  • LibreChat-AI/LibreChat46k stars

    Provides a multi-model chat interface with support for local and online artificial intelligence providers.

  • open-webui/open-webui156k stars

    Offers a feature-rich self-hosted web interface for interacting with local language models and documents.

Also reviewed on Repo Radar
  • ggml-org/llama.cpp132k stars

    A C and C++ library and command-line tool for running language models locally.

  • EleutherAI/lm-evaluation-harness14k stars

    Runs standard question sets against a language model and reports the scores.

  • mudler/LocalAI50k stars

    Serves text, vision, speech, image and video models from one self-hosted service that imitates the paid interfaces.

Install
docker pull ghcr.io/khoj-ai/khoj
docker run -p 8000:8000 ghcr.io/khoj-ai/khoj

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Productivity & Collaboration › Documents, Notes & Knowledge › Document Search & Indexing.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.