Skip to content

Khoj

Self-hostable AI assistant that answers from the web and your own documents

Copyleft (OSI) · AGPL-3.0 AI-native
  • Self-hosted

Listed by , founder & editor

38

Health

Slowing

Overview

Stars

38,229

Last commit

4 months ago

Aug 2026

Repository age

5 years

since Aug 2021

Latest version

2.0.0-beta.28

Mar 2026

Contributors

–

Releases

5

last 12 months

Language

Python

Khoj is a personal AI app written in Python and licensed AGPL-3.0. You chat with local or online language models such as Llama, Qwen, Mistral, GPT, Claude, Gemini and DeepSeek. It answers from the internet and from your files, including PDF, Markdown, org-mode, Word and Notion documents.

You can reach it from a browser, Obsidian, Emacs, a desktop app, a phone or WhatsApp. It lets you build agents with their own knowledge, persona, chat model and tools. It also offers semantic search over your documents, scheduled research with newsletters and notifications, image generation and voice output.

You can run it on your own machine with Docker or use the hosted cloud app. Enterprise deployments on-premises or hybrid are also offered.

Khoj is a direct replacement for Perplexity if you want web search plus your own notes in one self-hosted tool.

Who it's for

Obsidian and Emacs note-takers

Plugins let you search and chat with your notes inside the editor you already use.

Skip if: You keep notes in tools Khoj does not read.

Privacy-minded users running local models

You can pair it with a local LLM and keep documents on your own machine.

Skip if: You need a polished, citation-first answer interface like Perplexity's.

Small teams building custom agents

Agents can carry their own knowledge, persona and model choice.

Skip if: You need a project with active, regular development right now.

The problem it solves

Web-search assistants do not know your notes, and note tools do not search the web. Khoj combines both in one assistant you can host yourself and point at the model you choose.

Strengths

  • Works with local and hosted models from many vendors
  • Reads PDF, Markdown, org-mode, Word and Notion files
  • Clients for browser, Obsidian, Emacs, desktop, phone and WhatsApp
  • Custom agents with their own knowledge, persona and tools
  • Docker support for self-hosting

Trade-offs

  • No recent contributor activity; maintenance is dormant
  • Latest release is still a 2.0.0 beta
  • Lacks Perplexity's source-focused answer layout
  • Deep research reports are weaker than Perplexity's

Self-host Khoj

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Frequently asked questions

Can I self-host Khoj?

Yes. It is open source and self-hostable, and Docker is supported.

Can I use it without self-hosting?

Yes. A hosted cloud app is available.

Which documents can it read?

PDF, Markdown, Notion, Word and org-mode files, among others.

How is it licensed?

AGPL-3.0.

Similar tools in AI chat interfaces

DeepTutor

AI chat interfaces

Self-hostable AI tutor that builds personalized learning from your documents

62k 7.5k yesterday Active Apache-2.0

LibreChat

AI chat interfaces

Self-hosted ChatGPT-style interface that works with many AI providers, for teams

47k 9.8k 4 days ago Active MIT

Replaces ChatGPTClaudeGrok

astrbot

AI chat interfaces

47k 3.7k today Thriving AGPL-3.0

chatbox

AI chat interfaces

43k 4.4k 6 days ago Thriving GPL-3.0

SillyTavern

AI chat interfaces

36k 6.8k 4 days ago Active AGPL-3.0