Khoj
A self-hosted AI second brain over your notes and documents.
Overview
Khoj indexes your documents, notebooks and chats into a searchable personal knowledge base, then answers questions with citations through a web UI, desktop app, Obsidian plugin or self-hosted agent.
AGPL-3.0 licensed and free to self-host. Optional hosted plans exist, and you can use local models through Ollama for a fully offline setup.
Capability Matrix
Pricing, Free Tier, Open-Source, Self-Host, API Access and Privacy Summary for Khoj.
| Pricing | Free and unlimited under AGPL-3.0 for self-hosted use |
|---|---|
| Free Tier | Full self-hosted experience is free under AGPL-3.0 |
| Open-Source | Yes |
| Self-Host | Yes |
| API Access | Yes |
| Privacy | Your documents stay on your machine and reach only the model you configure |
Strengths & Caveats
Strengths
- Semantic search across Markdown, PDFs, notebooks and chat history
- Answers include citations back to the exact source passage
- Plugins for Obsidian, Emacs and a headless API for automation
Caveats
- Indexing quality depends on good chunking for large archives
- Setup needs an embedding model and reasonable local compute
Verified links
- Khoj website — HTTPS link verified by the liveness checker.
- Khoj source repository — 38.3k GitHub Stars
Alternative to
Perplexity
An answer engine that searches the live web and cites its sources.
Research & RAG
Notion AI
AI writing and Q&A built into the Notion workspace.
Writing & Docs
NotebookLM
Google's research notebook that answers only from your sources.
Research & RAG
Pinecone
A managed vector database for production retrieval.
Research & RAG