Your AI second brain
open sourceAGPL-3.0-or-laterself-hostablefree
Khoj is an open source (AGPL-3.0-or-later) personal AI app that you host yourself. It indexes your notes and documents (Markdown, org-mode, PDF, Word and plain-text files, Notion pages and GitHub repositories) for semantic search, and chats about them and the web with local models through Ollama or LM Studio, or with OpenAI, Anthropic and Google models. It builds custom agents with their own knowledge, persona, chat model and tools, runs scheduled automations that email you the results, executes Python for analysis and charts in a sandbox, generates images and talks by voice. You reach it from its web app, a desktop app that keeps chosen folders in sync, an Obsidian plugin, an Emacs package and an Android app. Khoj Cloud, the hosted service, shut down on 15 April 2026; its makers now work on Open Paper and Pipali, and Khoj stays open source to self-host.
Problems it solves
- search my Markdown and org-mode notes by meaning instead of exact keywords
- chat with an AI that answers from my own notes and PDFs, running on my own server
- a private ChatGPT-like assistant over my personal documents using a local LLM so nothing leaves my machine
- ask questions about my Obsidian vault from inside Obsidian and get answers that cite my notes
- use an AI assistant that knows my org-mode files from inside Emacs
- get an AI research summary on a topic emailed to me on a schedule
- create AI agents with their own persona, knowledge files and chat model for different jobs
- an AI assistant that combines web search results with my own documents and shows the sources
- have a self-hosted AI run Python on my data to make charts and reports
- index my Notion workspace and GitHub repos so a self-hosted AI can answer questions about them
- keep a folder on my laptop synced to a self-hosted AI so it answers from the latest versions of my files
- talk to my personal AI assistant by voice and hear its answers read out
Features
- semantic search over Markdown, org-mode, PDF, Word and plain-text files, Notion pages and GitHub repositories
- chat with local models (Ollama, LM Studio, any OpenAI-compatible server) or OpenAI, Anthropic and Google models
- online search through a bundled SearXNG, with sources shown
- custom agents with their own knowledge, persona, chat model and tools
- automations: scheduled research jobs that email you the results
- code execution: Python in a Terrarium sandbox (or E2B) for analysis, plots and reports
- image generation and voice chat
- shareable chat links
- clients: web app, desktop app with folder sync and Khoj Mini quick chat, Obsidian plugin, Emacs package, Android
- admin panel to configure models and agents for every user of a server
View 1 more
- self-hosting with Docker Compose or pip (khoj[local]) with an embedded database
Limitations
- No hosted version any more: Khoj Cloud shut down on 15 April 2026, so you have to self-host Khoj1
Alternatives
The same job
These do what Khoj does.
- AnythingLLM The all-in-one AI app you were looking for
- QMD An on-device search engine for your notes, docs and meeting transcripts
- Open WebUI One interface for every AI model. Private, extensible, and built for teams.
- NotebookLM (Gemini Notebook) An AI research notebook that answers from the sources you upload, with inline citations
- Onyx The context layer powered by all your apps
- LibreChat Brings together all your AI conversations in one unified, customizable interface
