
Khoj
Self-hosted AI assistant that searches your notes and web
Replaces Microsoft Copilot, Google Gemini, Glean, Muse

Who it's for
Use Khoj to ask questions across PDFs, markdown, web research, and Notion exports while keeping the deployment under your control.
Skip if your documents are few enough to paste into a normal AI chat.
Use custom agents and scheduled notifications to turn recurring research into personal newsletters or alerts.
Skip if you need enterprise-wide knowledge governance and admin analytics first.
The problem
Generic AI chat loses context unless users repeatedly upload files, paste notes, or rebuild prompts. Teams and individuals also need control over which local or online models read private PDFs, markdown, Notion exports, images, and research material.
How it works
Khoj can answer from the internet and user documents, including PDFs, markdown, org-mode, Word, Notion files, and images.
The README lists local and hosted model families, including Llama, Qwen, Gemma, Mistral, GPT, Claude, Gemini, and DeepSeek.
Users can create agents with custom knowledge, persona, chat model, and tools, then schedule newsletters and smart notifications.
Features
- Chat with docs and web
- Local or online LLM support
- Custom agents and automation
Recommended for this setup
Strengths
- Private deployment path: Khoj is AGPL-3.0 licensed and self-hostable, giving users a way to run personal AI over private knowledge without defaulting to a vendor cloud.
- Works across personal tools: Browser, Obsidian, Emacs, desktop, phone, and WhatsApp access make Khoj useful as a daily assistant rather than only a web app.
Trade-offs
- Model quality depends on your setup: Self-hosting Khoj still requires selecting models, configuring integrations, and managing compute. Cloud AI tools may feel simpler for casual use.
Tech stack
FAQ
Yes. The README describes Khoj as open source and self-hostable, with setup docs for running it privately.
The README lists image, PDF, markdown, org-mode, Word, Notion files, and web sources.
No. Khoj can work with local and online LLMs, including several open model families and hosted providers.