Analysis updated 2026-06-20
Chat with your own PDFs, notes, and work documents using any AI model, without uploading files to a third-party service.
Build a private second brain that searches your Obsidian vault or Notion pages before answering questions.
Set up a daily automated briefing that researches topics on the web and emails you a summary newsletter.
Create specialized AI agents for different projects, each with its own persona and access to specific documents.
| khoj-ai/khoj | facebookresearch/detectron2 | posthog/posthog | |
|---|---|---|---|
| Stars | 34,411 | 34,450 | 34,321 |
| Language | Python | Python | Python |
| Setup difficulty | moderate | hard | hard |
| Complexity | 3/5 | 4/5 | 4/5 |
| Audience | general | researcher | developer |
Figures from each repo's GitHub metadata at analysis time.
Easiest start is Docker. Requires choosing an AI model (Ollama for local, or an API key for cloud). Document indexing is configured after setup.
Khoj is a self-hostable personal AI assistant that acts as a second brain, a single place to chat with AI models, search across your own documents, automate research tasks, and build custom AI agents. The core problem it addresses is that commercial AI assistants like ChatGPT only know what's in their training data: they cannot search your personal notes, PDFs, or work documents, and you cannot run them on your own hardware for privacy. Khoj bridges that gap. The system connects to a wide range of AI models, local models running on your machine through tools like Ollama, as well as cloud models like GPT, Claude, Gemini, or Llama, and lets you chat with whichever you prefer. Beyond plain conversation, Khoj indexes your documents (PDFs, Markdown files, Word documents, Notion pages, Obsidian vaults) and uses semantic search to find relevant passages before answering your question, so the AI can ground its answers in your actual files. You can create custom agents with a specific persona, a specific model, and a specific subset of your documents, essentially building a specialized assistant for different roles or projects. Scheduled automations let you set up recurring research tasks, for example, a daily briefing that searches the web, summarizes findings, and emails you a newsletter. Access is available through a web interface, a desktop app, a mobile app, Obsidian and Emacs plugins, and WhatsApp. You can self-host it on your own computer for complete privacy, or use the hosted cloud version at app.khoj.dev for a no-setup experience. You would use Khoj if you want an AI assistant that knows your personal knowledge base, respects your data privacy, and works with the AI model of your choice. It is a Python application, open-source under an open license, and deployable via Docker.
Khoj is a self-hostable personal AI assistant that chats with your own documents, PDFs, and notes, and works with local or cloud AI models. Think of it as a private second brain that knows your files, not just the internet.
Mainly Python. The stack also includes Python, Docker, Ollama.
Open-source license, you can use, modify, and self-host it freely. Check the repo for exact license terms.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly general.
This repo across BitVibe Labs
Verify against the repo before relying on details.