Khoj
A self-hosted "second brain": Khoj indexes your own files and answers questions from them,
parsing Markdown (whole Obsidian vaults included), org-mode, PDF, Word, plain text, Notion
pages, GitHub repositories, and images described by a vision model, then embedding everything
with sentence-transformers into a vector index for semantic search and RAG with cited sources.
Any LLM backend works: local models like Llama, Qwen, or Mistral via Ollama, or cloud models
like GPT, Claude, and Gemini. You can build custom agents, each with its own persona, scoped
knowledge base, chat model, and tools such as web search and code execution. Scheduled
automations run recurring research and deliver newsletters or notifications to your inbox, and
research mode performs multi-hop web searches with inline citations. Access it from a browser,
the Obsidian plugin, Emacs, desktop, or WhatsApp - all clients connect to the same self-hosted
instance, making Khoj one of the few AI assistants Emacs users can point at decades of org
files. Semantic search means recall works without exact keywords: "that paper about
forecasting with transformers" surfaces the right PDF even when you cannot remember its title.
Switching LLM backends never requires re-indexing your documents, and with a local model via
Ollama, even inference stays on hardware you control - journals, research, and private notes
are never sent anywhere. Python/FastAPI stack, AGPL-licensed, with PostgreSQL storage.
Deploy