About Khoj
Khoj is a personal AI app that you can run on your own machine or scale up to an enterprise cloud deployment. You can chat with local or online models, such as Llama, Qwen, Gemma, Mistral, GPT, Claude, Gemini and DeepSeek, and get answers drawn from the internet and from your own documents, including images, PDFs, Markdown, org-mode files, Word documents and Notion pages.
It can be reached from a browser, Obsidian, Emacs, a desktop app, a phone or WhatsApp. Users create agents with their own knowledge, persona, chat model and tools, set up automations that deliver personal newsletters and smart notifications by email, and use advanced semantic search to find relevant documents. It can also generate images and speak responses aloud. The README highlights benchmark results for retrieval and reasoning and introduces Pipali, a separate open-source AI coworker for your own computer.
Khoj is written in Python and licensed under AGPL-3.0. You can self-host it, with offline models via llama.cpp, or use the hosted app. It suits individuals and teams who want an AI assistant grounded in their notes and files while keeping a choice of model.
Key features
- Chat with local or online LLMs
- Answers from the web and your documents
- Access from Obsidian, Emacs, WhatsApp and browser
- Custom agents with their own knowledge and tools
- Scheduled automations and newsletters
- Semantic search over personal documents
Good fit for
- →A personal second brain over notes and files
- →Automated recurring research
- →Private AI assistant using local models
- Built with
- Python
- Tags
- ai-assistant
- second-brain
- llm
- rag
- semantic-search
- self-hosted
- obsidian
- agents
- python
Khoj: questions and answers
- What is Khoj used for?
- Khoj is a self-hostable personal AI app that chats with local or cloud LLMs, answers from the web and your documents, builds custom agents and automates research. It is a good fit for a personal second brain over notes and files, automated recurring research, and private AI assistant using local models.
- Is Khoj open source?
- Yes. Khoj is open source under the AGPL-3.0 licence. Its source code is on GitHub at khoj-ai/khoj and is written mainly in Python.
- Is Khoj free?
- Yes. Khoj is open source, so the software itself is free to use. A managed cloud version is also available.
- Can I self-host Khoj?
- Yes. Khoj can be self-hosted on your own server or infrastructure.
- What is Khoj an alternative to?
- Khoj is an open-source alternative to ChatGPT, Perplexity, Google Gemini and NotebookLM. Other open-source alternatives to ChatGPT include AnythingLLM, Open WebUI and LobeHub.
- Is Khoj actively maintained?
- Yes. The most recent commit to Khoj was on 2 August 2026, and the latest release is 2.0.0-beta.28, published on 26 March 2026. The project has 38k stars on GitHub.
Open-source alternatives to Khoj
See all
AnythingLLM
AI Tools
Stop renting your intelligence. Own it with AnythingLLM. Everything you need for a powerfu
MITvs ChatGPT★ 67k
Open WebUI
AI Tools
Run AI on your own terms. Connect any model, extend with code, and protect what matters wi
OSSvs ChatGPT★ 154k
LobeHub
AI Tools
🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hi
OSSvs ChatGPT★ 83k
LibreChat
AI Tools
Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Re
MITvs ChatGPT★ 45k
Big-AGI
AI Tools
AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. Inclu
MITvs ChatGPT★ 7.1k
Jan
AI Tools
Jan is an open-source alternative to ChatGPT. Run open-source AI models locally or connect
OSSvs ChatGPT★ 45k
SaaS alternatives to Khoj
See all
ChatGPT
AI Tools
ChatGPT is OpenAI's conversational AI assistant for answering questions, writing, coding and analysis through web and mobile apps.
SaaS
Perplexity
AI Tools
Perplexity is an AI answer engine that responds to questions with summarized answers and cited web sources.
SaaS
Google Gemini
AI Tools
Google AI assistant for chat, writing, coding, research and image generation
SaaS
NotebookLM
AI Tools
Google AI research assistant that answers questions grounded in uploaded sources
SaaS
DeepSeek
AI Tools
AI chat assistant and API built on DeepSeek reasoning and language models
SaaS
Microsoft Copilot
AI Tools
Microsoft's AI chat assistant with web search, image creation and Office integration
SaaS

