Chat UIs, RAG & agentsAGPL-3.0Python

Khoj

Self-hostable AI second brain that searches and chats over your notes and the web.

Stars
38.3K
Forks
2.6K
Open issues
180
Last commit
2026-08-02

Live from the GitHub API · updated 2026-11-30

What is Khoj?

Khoj is a personal AI assistant that answers questions from your documents (PDF, Markdown, Org-mode, Notion, Word) and the internet. It offers custom agents, scheduled research automations and clients for the browser, desktop, Obsidian, Emacs and WhatsApp, with local or cloud LLMs.

Key features

  • Chat and semantic search over personal documents
  • Online research with citations
  • Custom agents and scheduled automations
  • Obsidian, Emacs, desktop and web clients
  • Works with local (Ollama, llama.cpp) or cloud models

System requirements

Platforms
Docker · Windows · macOS · Linux
RAM
8 GB+ recommended

How to install Khoj

Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.

Docker Compose

  1. 1
    Download the compose file and start Khoj.
    mkdir ~/.khoj && cd ~/.khoj
    wget https://raw.githubusercontent.com/khoj-ai/khoj/master/docker-compose.yml
    docker compose up
  2. 2
    Open http://localhost:42110 and configure a chat model.

pip

  1. 1
    Install and start the server with the embedded database.
    pip install 'khoj'
    USE_EMBEDDED_DB="true" khoj --anonymous-mode

Strengths

  • Many client integrations
  • Good for personal knowledge bases

Limitations

  • AGPL license
  • Self-hosting has many moving parts

Khoj alternatives compared

SoftwareStarsLicensePlatformsVRAM
Khoj

Self-hostable AI second brain that searches and chats over your notes and the web.

38.3KAGPL-3.0—
AnythingLLM

All-in-one desktop and Docker app for private document chat and agents.

68.8KMIT—
PrivateGPT

Ask questions about your documents with LLMs, 100% offline.

57.7KApache-2.0—
Open WebUI

Self-hosted ChatGPT-style interface for Ollama and OpenAI-compatible APIs.

159.8KOpen WebUI License (BSD-3-Clause based)—
Onyx

Self-hosted AI chat and enterprise search over your team’s documents and apps.

33.6KMIT—
LibreChat

Open-source ChatGPT clone supporting every major AI provider.

47.7KMIT—

FAQ

Is Khoj free?

Yes — Khoj is open-source software released under the AGPL-3.0 license. Check the license (and any model weight licenses) before commercial use.

Does Khoj run on Windows, Mac and Linux?

Khoj supports: Docker, Windows, macOS, Linux.

What hardware do I need for Khoj?

RAM: 8 GB+ recommended

How do I install Khoj?

1. Download the compose file and start Khoj. 2. Open http://localhost:42110 and configure a chat model.

What are the best Khoj alternatives?

Popular alternatives include AnythingLLM, PrivateGPT, Open WebUI, Onyx. See the comparison table on this page.