Khoj
rag34,977AGPL-3.0

Khoj

Open-source, personal AI assistant that searches your notes, documents, and knowledge graph.

Updated Jun 7, 2026
Platforms
web, docker, macos, linux, windows
Pricing
free-tier
Status
active
License
AGPL-3.0

What it does

Core capabilities at a glance

  • Search across markdown, PDF, images, and code files
  • Natural language Q&A over your personal data
  • Automated knowledge graph construction
  • Plugs into Obsidian, Emacs, and desktop
  • Self-hostable with Docker
  • Works with Ollama, OpenAI, and any OpenAI-compatible API

Deep dive

The full breakdown - performance, comparisons, and setup

Khoj

Khoj is your personal AI search engine that works on your own data. It indexes your markdown notes, PDFs, images, and code files, then lets you ask questions in natural language.

What it is

Khoj is a self-hostable AI search application developed by Debanjum Singh. It focuses on personal knowledge management - connecting to Obsidian, Emacs, and your file system - and building a knowledge graph of your information automatically.

How it stacks up

KhojOnyxAnythingLLMRAGFlow
Personal focus✓✓EnterpriseGeneralDocument
Obsidian integration
Knowledge graph
Desktop app
Best forPersonal PKMEnterprise searchGeneral RAGComplex docs

Get started

docker run -d -p 42110:42110 \
  -e OPENAI_API_KEY=sk-your-key \
  ghcr.io/khoj-ai/khoj:latest

When to use something else

  • Enterprise with connectors: Onyx for Slack/Confluence/Drive
  • Better document parsing: RAGFlow for complex PDFs
  • Desktop document chat: AnythingLLM or GPT4All for local-only

Frequently asked

Quick answers to common questions

What is Khoj?

Khoj is a rag tool for local AI workloads. Open-source, personal AI assistant that searches your notes, documents, and knowledge graph.

Is Khoj free and open source?

Yes, Khoj has 34,977 GitHub stars and is licensed under AGPL-3.0. You can self-host it for free on web, docker, macos, linux, windows.

What platforms does Khoj support?

Khoj runs on web, docker, macos, linux, windows.

What hardware do I need for Khoj?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. Khoj has 34,977 GitHub stars and an active community.

Does Khoj support GPU acceleration?

Khoj supports GPU acceleration via CUDA, Metal, or Vulkan depending on your platform. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to Khoj?

Popular alternatives include other rag tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does Khoj cost?

Khoj is free-tier. There is a free tier available with paid upgrades for advanced features.

Pairs well with

Complementary tools, models, and hardware

Comments coming soon

Configure NEXT_PUBLIC_GISCUS_REPO_ID and NEXT_PUBLIC_GISCUS_CATEGORY_ID at giscus.app to enable.